Disclosure of Invention
The invention provides the method for searching the data of the electronic map by the aid of the data query, and aims to solve the problems that a searcher searches through some existing searching methods, the obtained searched content is few, and the searched data is inaccurate.
In order to solve the technical problems, the invention provides the following technical scheme:
in one aspect, the present invention provides a medical data retrieval method based on dialectical mapping rules, where the method is implemented by an electronic device, and the method includes:
s1, obtaining a text to be retrieved.
And S2, inputting the text to be retrieved into a synonym standard database to obtain the keywords with the classified attributes.
And S3, inputting the keywords after attribute classification into a mapping rule base to obtain a medicine data retrieval result of the text to be retrieved.
Optionally, the text to be retrieved in S1 is a professional descriptive information text or a non-professional descriptive information text.
Optionally, the step S2 of inputting the text to be retrieved into the synonym criterion database, and obtaining the attribute category of the keyword of the text to be retrieved includes:
s21, inputting the text to be retrieved into the synonym standard database, and obtaining the keywords of the text to be retrieved according to the synonym standard table of the synonym standard database.
And S22, obtaining the attribute category of the key word of the text to be retrieved according to the key word and the multiple sub-databases of the synonym standard database.
Optionally, the step S21 of inputting the text to be retrieved into the synonym standard database, and obtaining the keywords of the text to be retrieved according to the synonym standard table of the synonym standard database includes:
and S211, automatically segmenting the text to be retrieved.
S212, information comparison is carried out on the segmented text and a synonym standard table preset in a synonym standard database, and keywords of the text to be retrieved are obtained.
Optionally, the synonym criteria database in S21 includes a plurality of pieces of structured information.
Each piece of structural information in the plurality of pieces of structural information comprises a positive name of a keyword, a different name of the keyword and an attribute category of the keyword.
Wherein the attribute categories include disease category, symptom category, syndrome category, efficacy category and prescription category.
Optionally, the plurality of sub-databases of the synonym criteria database in S22 includes a disease database, a symptom database, a syndrome database, an efficacy database, and a prescription database.
Optionally, obtaining attribute categories of the keywords of the text to be retrieved according to the multiple sub-databases of the keyword and the synonym standard database in S22 includes:
and S221, classifying the keywords according to the attribute types.
S222, respectively inputting the classified keywords into a sub-database of the synonym standard database for retrieval, and obtaining the attribute categories of the keywords of the text to be retrieved.
Optionally, the building process of the mapping rule base in S3 includes:
s31, acquiring the number of the series of the linguistic variables and the number of the mapping rules, and establishing the form of the mapping rules according to the number of the series of the linguistic variables and the number of the mapping rules.
S32, acquiring the mapping relation among the disease category, the symptom category, the syndrome category, the treatment category and the prescription category.
And S33, constructing a mapping rule base according to the form of the mapping rule and the mapping relation.
Optionally, the step of inputting the attribute category into the mapping rule base in S3 to obtain a medical data search result of the text to be searched includes:
constructing an index based on a syndrome differentiation mapping reasoning rule according to the mapping relation of the mapping rule base and the parent-child hierarchical conceptual structure of the keyword classification;
and obtaining a medicine data retrieval result of the text to be retrieved according to the attribute category and the index based on the dialectical mapping reasoning rule.
The medical data retrieval result comprises prescription suggestions obtained based on disease categories, symptom categories, syndrome categories, treatment categories and prescription categories of texts to be retrieved.
In another aspect, the present invention provides a medical data retrieval device based on dialectical mapping rules, which is applied to implement a medical data retrieval method based on dialectical mapping rules, and the device includes:
and the acquisition module is used for acquiring the text to be retrieved.
And the database module is used for inputting the text to be retrieved into the synonym standard database to obtain the attribute category of the key word of the text to be retrieved.
And the rule base module is used for inputting the attribute types into the mapping rule base to obtain a medicine data retrieval result of the text to be retrieved.
Optionally, the text to be retrieved is a professional descriptive information text or a non-professional descriptive information text.
Optionally, the database module is further configured to:
s21, inputting the text to be retrieved into the synonym standard database, and obtaining the keywords of the text to be retrieved according to the synonym standard table of the synonym standard database.
And S22, obtaining the attribute category of the key word of the text to be retrieved according to the key word and the plurality of sub-databases of the synonym standard database.
Optionally, the database module is further configured to:
and S211, automatically segmenting the text to be retrieved.
S212, information comparison is carried out on the segmented text and a synonym standard table preset in a synonym standard database, and keywords of the text to be retrieved are obtained.
Optionally, the synonym criteria database includes a plurality of pieces of structured information.
Each piece of structural information in the plurality of pieces of structural information comprises a positive name of a keyword, a different name of the keyword and an attribute category of the keyword.
Wherein the attribute categories include disease category, symptom category, syndrome category, efficacy category and prescription category.
Optionally, the plurality of sub-databases of the synonym criteria database includes a disease database, a symptom database, a syndrome database, an efficacy database, and a prescription database.
Optionally, the database module is further configured to:
and S221, classifying the keywords according to the attribute types.
S222, respectively inputting the classified keywords into a sub-database of the synonym standard database for retrieval, and obtaining the attribute categories of the keywords of the text to be retrieved.
Optionally, the rule base module is further configured to:
s31, acquiring the number of the series of the linguistic variables and the number of the mapping rules, and establishing the form of the mapping rules according to the number of the series of the linguistic variables and the number of the mapping rules.
S32, acquiring the mapping relation among the disease category, the symptom category, the syndrome category, the treatment category and the prescription category.
And S33, constructing a mapping rule base according to the form and the mapping relation of the mapping rule.
Optionally, the rule base module is further configured to:
constructing an index based on a syndrome differentiation mapping reasoning rule according to the mapping relation of the mapping rule base and the parent-child hierarchical concept structure of the keyword classification;
and obtaining a medicine data retrieval result of the text to be retrieved according to the attribute category and the index based on the dialectical mapping reasoning rule.
The medical data retrieval result comprises prescription suggestions obtained based on disease categories, symptom categories, syndrome categories, treatment categories and prescription categories of texts to be retrieved.
In one aspect, an electronic device is provided, and the electronic device includes a processor and a memory, where the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the medical data retrieval method based on the syndrome differentiation mapping rule.
In one aspect, a computer-readable storage medium is provided, where at least one instruction is stored, and the at least one instruction is loaded and executed by a processor to implement the medical data retrieval method based on dialectical mapping rules.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
in the scheme, the synonym standard database is constructed to realize the matching retrieval of the professional keywords, which is data retrieval based on basic knowledge of traditional Chinese medicine, so that the content of inspection is more accurate and professional. In addition, the synonym standard table database comprises obscure and unintelligible professional terms and popular and easily understood daily terms, so that the range of the standard words is as comprehensive as possible, multiple invalid searches of a user are avoided, and the search efficiency of the user is effectively improved.
By utilizing the rule base based on dialectical mapping and establishing indexes during retrieval according to the relations, a method of 'disease-symptom-syndrome-method' staggered association mapping is adopted, and mapping retrieval words of other categories are retrieved based on the dialectical mapping rule base according to the categories of retrieval keywords, so that an accurate and comprehensive dialectical retrieval model can be constructed, the ambiguity during dialectical treatment is reduced, the accuracy and the efficiency of dialectical retrieval are improved, and the retrieval recall ratio is ensured.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
As shown in fig. 1, an embodiment of the present invention provides a medical data retrieval method based on a dialectical mapping rule, and the method may be implemented by an electronic device. As shown in fig. 1, a flow chart of a medical data retrieval method based on syndrome differentiation mapping rules may include the following steps:
s1, obtaining a text to be retrieved.
Optionally, the text to be retrieved in S1 is a professional descriptive information text or a non-professional descriptive information text.
And S2, inputting the text to be retrieved into the synonym standard database to obtain the attribute category of the keyword of the text to be retrieved.
Optionally, the step S2 of inputting the text to be retrieved into the synonym criterion database, and obtaining the attribute category of the keyword of the text to be retrieved includes:
s21, inputting the text to be retrieved into the synonym standard database, and obtaining the keywords of the text to be retrieved according to the synonym standard table of the synonym standard database.
Optionally, the step S21 of inputting the text to be retrieved into the synonym standard database, and obtaining the keywords of the text to be retrieved according to the synonym standard table of the synonym standard database includes:
and S211, automatically segmenting the text to be retrieved.
S212, information comparison is carried out on the segmented text and a synonym standard table preset in a synonym standard database, and keywords of the text to be retrieved are obtained.
Optionally, the synonym criteria database in S21 includes a plurality of pieces of structured information.
Each piece of structural information in the plurality of pieces of structural information comprises a positive name of a keyword, a different name of the keyword and an attribute category of the keyword.
Wherein the attribute categories include disease category, symptom category, syndrome category, efficacy category and prescription category.
In a possible implementation, according to the input text searched by the user, the text may be professional or non-professional description information, the system automatically performs word segmentation on the input information, and performs information comparison with a synonym standard table preset in a synonym standard database, so as to extract matched keywords, and each keyword has a corresponding attribute category (including disease, symptom, syndrome, efficacy and prescription). Each piece of structure standardization information stored in the synonym standard database is a professional keyword in the traditional Chinese medicine field, and comprises a positive name, a synonym and corresponding attribute categories of the keyword. They are extracted from a large number of authoritative medical books and existing traditional Chinese medicine databases.
Further, when structuring the criteria table in the synonym criteria database, it is not limited to the arrangement of written words, but is expanded to spoken language descriptions. In order to make syndrome differentiation, diagnosis and treatment more accurate, the standard table also creates a multi-level father-son concept during sorting, so that the scope of standard words is enlarged, and the proper names and different names can be more accurately corresponding.
And S22, obtaining the attribute category of the key word of the text to be retrieved according to the key word and the plurality of sub-databases of the synonym standard database.
Optionally, the plurality of sub-databases of the synonym criteria database in S22 includes a disease database, a symptom database, a syndrome database, an efficacy database, and a prescription database.
Optionally, obtaining the attribute category of the keyword of the text to be retrieved according to the keyword and the multiple sub-databases of the synonym standard database in S22 includes:
and S221, classifying the keywords according to the attribute types.
S222, respectively inputting the classified keywords into a sub-database of the synonym standard database for retrieval, and obtaining the attribute categories of the keywords of the text to be retrieved.
In one possible embodiment, the matched keywords are searched in the sub-databases (disease, symptom, syndrome, efficacy, and prescription databases) of the respective synonym criteria database according to the corresponding attribute categories.
Further, when the keywords are searched in the synonym standard database, the corresponding relation between the professional written vocabulary and the spoken vocabulary is established, for example, when the user searches for ' I don't want to eat ' or ' poor appetite ', the system can automatically match the keywords with corresponding attributes- ' poor appetite ' after word segmentation.
In addition, a multi-level father-son concept is created, wherein the father-son concept can also be called a top-level concept, a bottom-level concept, a ' 1, 2, 3 ', 8230a ' level concept and other level concepts, and the main function of the hierarchical concept is to subdivide the matched keywords to the maximum extent and enable the synonyms and the standard words to correspond more accurately.
For example, when the input information submitted by the user is a father concept, namely "sweating", the search is performed at all levels, and clinically, the description of various levels such as "sweating, head sweating, hand sweating, virtual sweating" of sweating conditions needs to be performed at all levels as sub-concepts; <xnotran> — "" , " , " "" , , "" , , "" ", , , , , , , , , , , , " , . </xnotran>
And S3, inputting the attribute types into a mapping rule base to obtain a medicine data retrieval result of the text to be retrieved.
Optionally, the building process of the mapping rule base in S3 includes:
s31, acquiring the number of the series of the linguistic variables and the number of the mapping rules, and establishing the form of the mapping rules according to the number of the series of the linguistic variables and the number of the mapping rules.
S32, acquiring the mapping relation among the disease category, the symptom category, the syndrome category, the treatment category and the prescription category.
And S33, constructing a mapping rule base according to the form and the mapping relation of the mapping rule.
Optionally, the step of inputting the attribute category into the mapping rule base in S3 to obtain a medical data search result of the text to be searched includes:
constructing an index based on a syndrome differentiation mapping reasoning rule according to the mapping relation of the mapping rule base and the parent-child hierarchical conceptual structure of the keyword classification;
and obtaining a medicine data retrieval result of the text to be retrieved according to the attribute category and the index based on the dialectical mapping reasoning rule.
The medicine data retrieval result comprises prescription suggestions obtained based on the disease category, symptom category, syndrome category, treatment category and prescription category of the text to be retrieved.
In a feasible implementation mode, the mapping relationship among disease categories, symptom categories, syndrome categories, therapeutic categories and prescription categories is determined according to the basic principle of treatment based on syndrome differentiation of traditional Chinese medicine and by combining with the standard established by professional authoritative books and industries. The disease name terms belong to the disease category, the symptom name terms belong to the symptom category, the syndrome name terms belong to the syndrome category, the therapeutic rules, the therapeutic methods and the treatment name terms belong to the therapeutic methods category, the prescription name terms belong to the prescription category, a professional mapping rule base is formed, and indexes during retrieval are established according to the relations.
The index based on dialectical mapping inference rule is established on the basis of mapping rule library, and its mapping rule form is "IF \8230; THEN \8230;" 8230; "statement" in computer program language. The mapping rules are determined by the number of input and output physical quantities and the required accuracy. In designing the mapping rule base, it is necessary to determine the appropriate number of linguistic variable series and mapping rules, and to establish the correct rule form. The mapping rule base is established according to the mutual mapping relation among related disease names, symptoms, syndromes, treatment methods and prescriptions, is used for searching disease names through the symptom names, searching syndrome names through the symptom names/disease names, searching treatment method names through the syndrome names, searching prescription names through the disease names, and establishing the index based on the unified objective syndrome-differentiation mapping reasoning rule on the basis of the index and the father-son hierarchical concept structure classified according to the keywords and the mapping relation among the disease names, the symptom names, the syndrome names, the treatment method names and the prescription names, so that the disease-symptom-syndrome-method-prescription can be effectively combined, and the disease names, the syndromes and the treatment methods are synthesized based on the symptoms to give suggestions to the prescription, thereby improving the retrieval accuracy and efficiency. If the symptom of nasal obstruction is searched, the disease name of cold is found, the treatment method of dispelling cold and dredging orifices is found, the syndrome of wind-cold is found, and the prescription of magnolia flower powder is found.
The invention adopts a method for extracting effective information from a simple to a complex multilayer to preprocess indexes of syndrome, symptom, disease name, efficacy and prescription to form a related synonym standard table and a mapping word table, and professionally expands and maps related information of syndrome, disease and the like to associate the information of a disease and symptom prescription method, thereby forming a search method based on a syndrome differentiation mapping rule aiming at traditional Chinese medicine and pharmacy information. The technical problems solved by the invention comprise the following points:
(1) The invention discloses a keyword query method, which is used for acquiring an input text of a user, automatically segmenting words and extracting keywords through a synonym standard database. Each piece of structured information in the synonym standard database comprises the proper name and the different name of the keyword and the corresponding attribute category, and the attribute category comprises diseases, symptoms, syndromes, efficacies and prescriptions, so that the efficiency of traditional Chinese medicine retrieval can be greatly improved.
(2) After the keywords are subjected to attribute classification, professional expansion and mapping are performed on each attribute of the keywords through a mapping word database, information of a disease syndrome method is associated, mapping relations from symptoms to syndromes, syndromes to treatment methods, symptoms to diseases, diseases to symptoms, treatment methods to prescriptions, diseases to prescriptions and the like are formed, and comprehensive and accurate syndrome differentiation mapping reasoning relations are constructed.
In the embodiment of the invention, the synonym standard database is constructed to realize the matching retrieval of the professional keywords, which is a data retrieval based on the basic knowledge of the traditional Chinese medicine, so that the inspected content is more accurate and professional. In addition, the synonym standard table database comprises obscure and unintelligible professional terms and popular and easily understood daily terms, so that the range of the standard words is as comprehensive as possible, multiple invalid searches of a user are avoided, and the search efficiency of the user is effectively improved.
By utilizing the rule base based on dialectical mapping and establishing indexes during retrieval according to the relations, a method of 'disease-symptom-syndrome-method' staggered association mapping is adopted, and mapping retrieval words of other categories are retrieved based on the dialectical mapping rule base according to the categories of retrieval keywords, so that an accurate and comprehensive dialectical retrieval model can be constructed, the ambiguity during dialectical treatment is reduced, the accuracy and the efficiency of dialectical retrieval are improved, and the retrieval recall ratio is ensured.
As shown in fig. 2, an embodiment of the present invention provides a medical data retrieving apparatus 200 based on dialectical mapping rules, where the apparatus 200 is applied to implement a medical data retrieving method based on dialectical mapping rules, and the apparatus 200 includes:
and the acquisition module is used for acquiring the text to be retrieved.
And the database module is used for inputting the text to be retrieved into the synonym standard database to obtain the attribute category of the key word of the text to be retrieved.
And the rule base module is used for inputting the attribute types into the mapping rule base to obtain the medicine data retrieval result of the text to be retrieved.
Optionally, the text to be retrieved is a professional descriptive information text or a non-professional descriptive information text.
Optionally, the database module is further configured to:
s21, inputting the text to be retrieved into the synonym standard database, and obtaining the keywords of the text to be retrieved according to the synonym standard table of the synonym standard database.
And S22, obtaining the attribute category of the key word of the text to be retrieved according to the key word and the plurality of sub-databases of the synonym standard database.
Optionally, the database module is further configured to:
and S211, automatically segmenting the text to be retrieved.
S212, information comparison is carried out on the segmented text and a synonym standard table preset in a synonym standard database, and keywords of the text to be retrieved are obtained.
Optionally, the synonym criteria database includes a plurality of pieces of structured information.
Each piece of structural information in the plurality of pieces of structural information comprises a positive name of a keyword, a different name of the keyword and an attribute category of the keyword.
Wherein the attribute categories include disease category, symptom category, syndrome category, efficacy category and prescription category.
Optionally, the plurality of sub-databases of the synonym criteria database includes a disease database, a symptom database, a syndrome database, an efficacy database, and a prescription database.
Optionally, the database module is further configured to:
and S221, classifying the keywords according to the attribute types.
S222, respectively inputting the classified keywords into a sub-database of the synonym standard database for retrieval, and obtaining the attribute categories of the keywords of the text to be retrieved.
Optionally, the rule base module is further configured to:
s31, acquiring the number of the series of the linguistic variables and the number of the mapping rules, and establishing the form of the mapping rules according to the number of the series of the linguistic variables and the number of the mapping rules.
S32, acquiring the mapping relation among the disease category, the symptom category, the syndrome category, the treatment category and the prescription category.
And S33, constructing a mapping rule base according to the form of the mapping rule and the mapping relation.
Optionally, the rule base module is further configured to:
constructing an index based on a syndrome differentiation mapping reasoning rule according to the mapping relation of the mapping rule base and the parent-child hierarchical concept structure of the keyword classification;
and obtaining a medicine data retrieval result of the text to be retrieved according to the attribute category and the index based on the dialectical mapping reasoning rule.
The medical data retrieval result comprises prescription suggestions obtained based on disease categories, symptom categories, syndrome categories, treatment categories and prescription categories of texts to be retrieved.
In the embodiment of the invention, the synonym standard database is constructed to realize the matching retrieval of the professional keywords, which is a data retrieval based on the basic knowledge of the traditional Chinese medicine, so that the inspected content is more accurate and professional. In addition, the synonym standard table database comprises obscure and unintelligible professional terms and popular and easily understood daily terms, so that the range of the standard words is as comprehensive as possible, multiple invalid searches of a user are avoided, and the search efficiency of the user is effectively improved.
By utilizing the rule base based on dialectical mapping and establishing indexes during retrieval according to the relations, a method of 'disease-symptom-syndrome-method' staggered association mapping is adopted, and mapping retrieval words of other categories are retrieved based on the dialectical mapping rule base according to the categories of retrieval keywords, so that an accurate and comprehensive dialectical retrieval model can be constructed, the ambiguity during dialectical treatment is reduced, the accuracy and the efficiency of dialectical retrieval are improved, and the retrieval recall ratio is ensured.
Fig. 3 is a schematic structural diagram of an electronic device 300 according to an embodiment of the present invention, where the electronic device 300 may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 301 and one or more memories 302, where the memory 302 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 301 to implement the following medical data retrieval method based on the syndrome mapping rule:
s1, obtaining a text to be retrieved.
And S2, inputting the text to be retrieved into the synonym standard database to obtain the attribute category of the keyword of the text to be retrieved.
And S3, inputting the attribute types into a mapping rule base to obtain a medicine data retrieval result of the text to be retrieved.
In an exemplary embodiment, a computer-readable storage medium, such as a memory, including instructions executable by a processor in a terminal to perform the medical data retrieval method based on the dialectical mapping rule is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.