Abstract: Objective: To analyze the medication rules of Shaoxing school physician SHEN Yuanliang in the treatment of insomnia using the Traditional Chinese Medicine Inheritance Support System (TCMISS,V3.5). Methods: Medical cases of insomnia patients diagnosed and treated by Professor SHEN Yuanliang at the Outpatient Department of Shaoxing TCM Hospital Affiliated to Zhejiang Chinese Medical University from January 1, 2022, to November 30, 2025, were collected. The standardized prescription data were entered into the TCMISS (V3.5) for statistics of medication frequency,properties,flavors,and meridian tropisms,efficacy analysis,association rule analysis,and cluster analysis, in order to explore the medication rules. Results: A total of 231 prescriptions were included, involving 213 distinct Chinese herbal medicines. The high-frequency herbal medicines included Polygalae Radix, Sclerotium Poriae Pararadicis, Ziziphi Spinosae Semen, Atractylodis Macrocephalae Rhizoma, Codonopsis Radix , and Angelicae Sinensis Radix. The medicinal properties were primarily warm and neutral,followed by cold;the flavors were mainly sweet, bitter, and pungent; and the meridian tropisms were mainly the spleen and heart meridians, followed by the liver and lung meridians. Association rule analysis yielded 14 commonly used herbal pairs and 11 association rules for herbal combinations,and cluster analysis extracted 3 types of core prescriptions. Conclusion: Professor SHEN Yuanliang's treatment of insomnia has the primary actions of "simultaneous treatment of the heart and spleen, " taking nourishing the heart and calming the mind as the foundation, and also has the auxiliary effect on benefiting qi and strengthening the spleen,regulating qi and harmonizing blood,and soothing the liver and relieving depression, thus forming a syndrome differentiation and treatment system that combines replenishing deficiency and purgating excess,and treating both symptom and root cause simultaneously.