Diabetes mellitus type 1 factors include having a family member with the condition. The underlying mechanism involves an autoimmune destruction of the insulin-producing beta cells in the pancreas. Diabetes is diagnosed by testing the level of sugar or glycated hemoglobin (HbA1C) in the blood. Type 1 diabetes can be distinguished from type 2 by testing for the presence of autoantibodies. There is no known way to prevent type 1 diabetes. Treatment with insulin is required for survival. Insulin therapy is usually given by injection just under the skin but can also be delivered by an insulin pump. A diabetic diet and exercise are important
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