In this study, we integrated various advanced techniques, including WGCNA, PPI network analysis, and machine learning algorithms, to identify the key gene MSR1 and assess its diagnostic value for obesity and THCA patients, ensuring the depth and breadth of the research findings. The gene discussed is MSR1; the disease is obesity due to melanocortin 4 receptor deficiency.