To break down the frequency and related risk elements of sorrow in patients with type 2 diabetes mellitus in the nearby local area and give logical references to clinical anticipation and treatment of diabetes mellitus with wretchedness. Proposed strategies use AI more than 58 patients with type 2 diabetes mellitus were chosen by efficient inspecting, and pertinent surveys examined segment factors and related clinical variables and misery sub-scale (PHQ) was utilized to assess the level of sadness. Social help scale was utilized to survey the patients. SSRS are utilized to assess individual social help levels and lead measurable investigation. After assessment it's seen that among the 58 patients with type 2 diabetes, the rate of consolidated melancholy was 58%; the age, conjugal status, training level, occupation, family ancestry, term of diabetes, entanglements, work out. The distinction in friendly help was genuinely critical. The impacting elements of type 2 diabetes confounded with gloom incorporate age, conjugal status, training level, occupation, and family ancestry, span of diabetes, presence or nonappearance of confusions, exercise and social help. They have a high gamble of muddled sorrow and influence the improvement of diabetes.