In the high occupational stress group and the mental disorders group as the control group, the results showed that the interaction between IL-2 and moderate occupational stress (OR = 0.778, 95% CI: 0.778–0.942), IL-2 and non-mental disorders (OR = 0.398, 95% CI: 0.398–0.468) were protective factors for the occurrence of sleep disorders. Here, IL2 is linked to psychiatric disorder.