<abstract>
<p>Prescription data is an important focus and breakthrough in the study of clinical treatment rules, and the complex multidimensional relationships between Traditional Chinese medicine (TCM) prescription data increase the difficulty of extracting knowledge from clinical data. This paper proposes a complex prescription recognition algorithm (MTCMC) based on the classification and matching of TCM prescriptions with classical prescriptions to identify the classical prescriptions contained in the prescriptions and provide a reference for mining TCM knowledge. The MTCMC algorithm first calculates the importance level of each drug in the complex prescriptions and determines the core prescription combinations of patients through the Analytic Hierarchy Process (AHP) combined with drug dosage. Secondly, a drug attribute tagging strategy was used to quantify the functional features of each drug in the core prescriptions; finally, a Bidirectional Long Short-Term Memory Network (BiLSTM) was used to extract the relational features of the core prescriptions, and a vector representation similarity matrix was constructed in combination with the Siamese network framework to calculate the similarity between the core prescriptions and the classical prescriptions. The experimental results show that the accuracy and F1 score of the prescription matching dataset constructed based on this paper reach 94.45% and 94.34% respectively, which is a significant improvement compared with the models of existing methods.</p>
</abstract>