Through analyses of the calcium signalling pathway (hsa04020), cyclic adenosine monophosphate (cAMP) signalling pathway (hsa04024), apoptosis (hsa04210), interleukin-17 signalling pathway (hsa04657), phosphatidylinositol 3-kinase-protein kinase B (PI3K-Akt) signalling pathway (hsa04151), TNF signalling pathway (hsa04668), and other pathways, we found that TNF, JUN, HSP90αA1, and other core target genes ameliorate insomnia by interfering with the above target genes related to apoptosis/survival, cell cycle regulation, cytokines, and inflammation. This evidence concerns the gene JUN and insomnia.