In the PDR group, a higher insomnia risk was observed in the group with a DM duration >5 years, insulin therapy group, and CKD group when compared with their counterparts. This evidence concerns the gene INS and diabetes mellitus.