Diabetes mellitus type 2 state may occur; however, ketoacidosis is uncommon. Type 2 diabetes primarily occurs as a result of obesity and lack of exercise. Some people are more genetically at risk than others. Type 2 diabetes makes up about 90% of cases of diabetes, with the other 10% due primarily to diabetes mellitus type 1 and gestational diabetes. In diabetes mellitus type 1 there is a lower total level of insulin to control blood glucose, due to an autoimmune induced loss of insulin-producing beta cells in the pancreas. Diagnosis of diabetes is by blood tests such as fasting plasma glucose, oral glucose tolerance
Lifestyle causes of diabetes mellitus type 2 and 2000s is believed to have led to the increase in type 2 diabetes in children and adolescents. Studies have shown that a reduction in sleep is associated with a significant increase in the incidence of type 2 diabetes. This could account for the increased incidence of diabetes in developed countries in the last decades, since "the causes of this pandemic are not fully explained by changes in traditional lifestyle factors such as diet and physical activity", and "one behavior that seems to have developed during the past few decades and has become highly prevalent, particularly amongst Americans, is sleep