Ketoacidosis occurs when there is not sufficient insulin in the body due to skipped insulin shots, or the body needs more insulin.