These factors, followed by the respective β coefficient was bariatric surgery (− 0.942), myopia (− 0.357), lipid-lowering drug follow-up < 3y (− 0.994), lipid-lowering drug follow-up > 3y (− 0.223), course of T2DM (0.174), HbA1c (0.372), fasting plasma glucose (0.223), insulin therapy (0.688), rural residence (0.199), smoking (− 0.083), hypertension (0.405), male (0.548), intensive glycemic control (− 0.400) with constant term α (− 0.949) in the constructed model. Here, INS is linked to myopia.