Abstract:Objective:To study the formulation rules and mechanism of Chinese medicinal formulae in the treatment fo subarachnoid hemorrhage based on R language data mining,network pharmacology and molecular docking methods, in order to provide guidance for clinical application. Methods: Using R language for data mining,association rules,and cluster analysis methods,study the formulation rules of subarachnoid hemorrhage. Further,network pharmacology and molecular docking methods were used to analyze GO and KEGG pathways to study the biological pathways of core drug combinations and their binding ability to receptors,and clarify their mechanisms of action. Results:A total of 8 567 articles were selected, including 52 articles, 56 prescriptions, and 113 Chinese medicinals. Through analysis of frequency,meridian tropism,four qi and five flavors,it was found that high-frequency drugs were mostly drugs for promoting blood circulation and resolving blood stasis, and drugs for calming the liver and extinguishing wind. They mostly belong to the liver and heart meridians, with cold, calm and warm natures, as well as pungent, bitter and sweet flavors. Correlation analysis and cluster analysis identified the four core drugs of Chuanxiong Rhizoma,Carthami Flos,Persicae Semen,and Paeoniae Radix Rubra. Using network pharmacology methods,50 effective components and 66 targets were screened,including 7 main components and 6 core targets. These drugs mainly play a therapeutic role in preventing neuronal damage,protecting the blood-brain barrier,and reducing brain edema by participating in inhibition of cell apoptosis, inflammatory response, and oxidative stress. Molecular docking showed that Quercetin, Luteolin, Kaempferol, IL- 6, CASP3, MAPK1 had good binding activity, all of which were superior to Nimodipine. Conclusion: The core drug group for treating subarachnoid hemorrhage obtained through prescription data mining is Chuanxiong Rhizoma, Carthami Flos, Persicae Semen, and Paeoniae Radix Rubra, which plays a role in preventing neuronal damage and protecting the blood- brain barrier through related pathways such as inflammatory response,oxidative stress,and cell apoptosis,providing a basis for clinical application and experimental research.