Risky drug identification method and system based on drug feedback mining

The drug feedback text and knowledge data are analyzed through the deep learning model and risk factor mining network, which solves the shortcomings of traditional drug risk identification methods in data mining and multi-angle analysis, achieves accurate and comprehensive identification of drug risks, and improves The scientific nature and efficiency of drug risk management.

CN118230983BActive Publication Date: 2024-10-01SUN YAT SEN UNIVERSITY CANCER CENTER (CANCER HOSPITAL AFFILIATED TO SUN YAT SEN UNIVERSITY CANCER RESEARCH INSTITUTE OF SUN YAT SEN UNIVERSITY)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410301042.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-15
Publication Date
2024-10-01
Estimated Expiration
2044-03-15

AI Technical Summary

Technical Problem

Traditional drug risk identification methods lack the ability to mine and analyze large-scale real-time data, making it difficult to accurately identify drug risks in new drugs or complex drug feedback situations. Moreover, single-angle analysis can easily ignore other risk information, resulting in incomplete and inaccurate results.

Method used

The drug feedback mining method based on the deep learning model is used to extract the drug risk vector by obtaining the drug feedback text set and attribute knowledge data, and uses the risk factor mining network and risk knowledge relationship network to conduct multi-dimensional drug risk identification, and generates the risk factor association vector and Knowledge relationship vector, comprehensive analysis to identify drug risks.

Benefits of technology

It achieves efficient processing of drug feedback text data, accurately extracts drug risk vectors, comprehensively reveals the potential relationships between drug risk factors, significantly improves the accuracy and efficiency of drug risk identification, and enhances the scientificity and effectiveness of drug risk management. sex.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118230983B_ABST
    Figure CN118230983B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a risk drug identification method and system based on drug feedback mining, which uses a deep learning model to extract drug risk vectors, and based on the risk factor mining network corresponding to multiple drug risk factors, conducts risk factor mining and generates a risk factor association vector sequence, and then performs risk knowledge relationship analysis on the drug risk vector sequence according to the risk knowledge relationship network to generate a risk knowledge relationship vector sequence, and finally performs multi-dimensional drug risk identification based on the risk factor association vector sequence and the risk knowledge relationship vector sequence to generate drug risk identification results corresponding to each drug risk factor. Therefore, by using a variety of tools such as deep learning models, risk factor mining networks, and risk knowledge relationship networks, drug risks can be analyzed comprehensively and in-depth, the accuracy and reliability of drug risk identification are enhanced, and the risk level corresponding to each drug risk factor can be fully reflected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular, to a method and system for identifying risky drugs based on drug feedback mining. Background Art

[0002] In the process of drug development, production and use, it is very important to effectively identify and manage the risks that may arise from drugs. This not only helps to protect the health of patients and prevent adverse reactions, but also helps drug manufacturers improve product quality and reduce economic risks.

[0003] Traditional drug risk identification methods mainly rely on clinical trial results and doctors' experience and judgment, and lack the ability to mine and analyze large-scale real-time data. Therefore, when faced with new drugs or complex drug feedback situations, it is often difficult to accurately identify drug risks. At the same time, traditional methods are inefficient when processing large-scale drug feedback text data and are difficult to meet actual needs.

[0004] In addition, existing drug risk identification methods usually only analyze from a single perspective, such as focusing only on a certain type of risk factor, or only analyzing based on a certain risk knowledge relationship. This can easily ignore other possible risk information, resulting in risk identification results that are not comprehensive and accurate enough.

[0005] Therefore, how to design a method that can effectively mine drug feedback text data and comprehensively analyze drug risks is an urgent problem to be solved in the current field of drug risk management. Summary of the invention

[0006] In order to at least overcome the above-mentioned deficiencies in the prior art, the purpose of the present application is to provide a method and system for identifying risky drugs based on drug feedback mining.

[0007] In a first aspect, the present application provides a risk drug identification method based on drug feedback mining, which is applied to a drug feedback mining system. The method comprises:

[0008] Obtaining a drug feedback text set corresponding to the target drug feedback event and drug attribute knowledge data corresponding to the risky drug to be identified;

[0009] Extracting drug risk vectors from the drug feedback text set and the drug attribute knowledge data according to multiple deep learning models, and generating drug risk vector sequences extracted by each of the deep learning models;

[0010] Performing risk factor mining on the drug risk vector sequences extracted by each of the deep learning models according to the risk factor mining networks corresponding to the multiple drug risk factors, and generating risk factor association vector sequences extracted by each of the risk factor mining networks;

[0011] The drug risk vector sequences extracted by each of the deep learning models are analyzed for risk knowledge relations according to the risk knowledge relation network to generate risk knowledge relation vector sequences extracted by the risk knowledge relation network; the drug risk factor reflects the potential physical risk of the target drug feedback event on the risk drug to be identified; and there is a risk knowledge relation between the plurality of drug risk factors;

[0012] Multi-dimensional drug risk identification is performed based on the risk factor association vector sequence and the risk knowledge relationship vector sequence to generate drug risk identification results corresponding to each of the drug risk factors.

[0013] In a second aspect, an embodiment of the present application further provides a drug feedback mining system, which includes a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores a computer program, and the computer program is loaded and executed according to the processor to implement the risk drug identification method based on drug feedback mining of the above first aspect.

[0014] Based on any one of the above aspects, the beneficial effects of this application are as follows:

[0015] This application can obtain the drug feedback text set corresponding to the target drug feedback event and the drug attribute knowledge data corresponding to the risk drug to be identified, and use the deep learning model to extract the drug risk vector. Then, according to the risk factor mining network corresponding to multiple drug risk factors, risk factor mining is performed and a risk factor association vector sequence is generated. According to the risk knowledge relationship network, the drug risk vector sequence is parsed for risk knowledge relationships to generate a risk knowledge relationship vector sequence. Finally, multi-dimensional drug risk identification is performed based on the risk factor association vector sequence and the risk knowledge relationship vector sequence to generate drug risk identification results corresponding to each drug risk factor. Thus, potential risk drugs can be effectively mined from the drug feedback text set, and various tools such as deep learning models, risk factor mining networks, and risk knowledge relationship networks can be used to comprehensively and deeply analyze drug risks, thereby enhancing the accuracy and reliability of drug risk identification. In addition, through multi-dimensional drug risk identification, the risk level corresponding to each drug risk factor can be more comprehensively reflected, further improving the scientificity and effectiveness of drug risk management.

[0016] That is, this application combines the deep learning model with the risk factor mining network to achieve efficient processing of drug feedback text sets and drug attribute knowledge data, and accurately extract drug risk vectors. Furthermore, the extracted drug risk vectors are deeply analyzed using the risk knowledge relationship network to generate a sequence of risk knowledge relationship vectors, thereby fully revealing the potential relationship between drug risk factors. Ultimately, multi-dimensional drug risk identification can accurately generate drug risk identification results corresponding to each drug risk factor, thereby significantly improving the accuracy and efficiency of risk drug identification. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of a process for identifying risky drugs based on drug feedback mining provided in an embodiment of the present application;

[0018] Figure 2 A schematic block diagram of the functional structure of a drug feedback mining system for implementing the above-mentioned risk drug identification method based on drug feedback mining provided in an embodiment of the present application. DETAILED DESCRIPTION

[0019] See also Figure 1 As shown, the present application provides a method for identifying risky drugs based on drug feedback mining, comprising the following steps.

[0020] Step S110, obtaining a drug feedback text set corresponding to a target drug feedback event and drug attribute knowledge data corresponding to the risky drug to be identified.

[0021] In this embodiment, the drug feedback mining system receives a target drug feedback event about a certain drug (assuming it is "drug A"). This target drug feedback event contains feedback texts from multiple users, forming a drug feedback text set. At the same time, the drug feedback mining system also obtains attribute knowledge data about "drug A", such as ingredients, efficacy, side effects, etc.

[0022] Specifically, the target drug feedback event refers to feedback or reporting events about a specific drug, which usually include information such as the actual effect, adverse reactions, and user experience after using the drug. For example, a newly launched anticancer drug may receive multiple feedback events about its side effects, which constitute target drug feedback events.

[0023] The drug feedback text set refers to a collection of text information collected about the target drug feedback event, and these drug feedback texts may come from multiple channels such as patients, doctors, and drug regulatory agencies. For example, suppose a drug feedback text set contains multiple user feedbacks such as "feeling dizzy after use" and "feeling slightly nauseous".

[0024] The so-called unidentified risk drugs refer to drugs that need to be risk-assessed, that is, drugs that need to be determined whether they have potential risks or adverse reactions. For example, if a new drug has been on the market for a short time and its long-term effects and potential risks are not yet clear, then this new drug can be regarded as an unidentified risk drug.

[0025] The drug attribute knowledge data refers to various attribute information about the drug, such as chemical composition, mechanism of action, indications, contraindications, known side effects, etc. For example, the attribute knowledge data of an antibiotic drug may include its main ingredients, antibacterial spectrum, usage methods, common side effects, etc.

[0026] Step S120, extracting drug risk vectors from the drug feedback text set and the drug attribute knowledge data according to multiple deep learning models, and generating a sequence of drug risk vectors extracted by each of the deep learning models.

[0027] In this embodiment, the drug feedback mining system can use multiple pre-trained deep learning models (such as convolutional neural networks, recurrent neural networks, etc.) to process the acquired drug feedback text set and drug attribute knowledge data. Each deep learning model extracts features related to drug risk from the drug feedback text set and the drug attribute knowledge data to form a drug risk vector. These drug risk vectors are organized into sequences, and each deep learning model generates a drug risk vector sequence.

[0028] Specifically, drug risk vector extraction is a process of converting drug feedback text sets and drug attribute knowledge data into numerical vectors that can reflect the characteristics of drugs in different risk dimensions. For example, through a deep learning model, text feedback such as "feeling dizzy after use" can be converted into a numerical vector representing the severity of dizziness.

[0029] The drug risk vector sequence refers to a sequence composed of multiple drug risk vectors, each of which corresponds to a specific risk dimension or the output of a deep learning model. For example, if there are three deep learning models focusing on the risks of the heart, liver, and kidneys, each model will generate a risk vector, and these risk vectors are combined to form a drug risk vector sequence.

[0030] Step S130, performing risk factor mining on the drug risk vector sequences extracted by each of the deep learning models according to the risk factor mining networks corresponding to the multiple drug risk factors, and generating risk factor association vector sequences extracted by each of the risk factor mining networks.

[0031] In detail, the drug risk factors refer to potential risk factors associated with drug use, which may lead to adverse reactions, side effects or other health problems. For example, if a drug may damage liver function, then "liver damage" is a risk factor for this drug.

[0032] The risk factor mining network is a deep learning network structure, which may be constructed based on advanced deep learning techniques such as graph convolutional networks and self-attention mechanisms, and is used to identify and extract information related to specific risk factors from drug risk vector sequences. For example, suppose there is a risk factor mining network for "cardiotoxicity", which can analyze the features related to cardiac function in the drug risk vector sequence and output a vector representing the degree of cardiotoxicity risk.

[0033] The risk factor association vector sequence is a series of numerical vectors generated by the risk factor mining network, each vector representing the degree of existence and association of a specific risk factor in a given drug risk vector sequence. For example, if multiple risk factor mining networks are used to process the same drug risk vector sequence, each risk factor mining network will output an association vector related to its corresponding risk factor. These vectors are combined to form a risk factor association vector sequence.

[0034] During the implementation process, the drug feedback mining system uses multiple pre-trained risk factor mining networks to process the drug risk vector sequence extracted from the deep learning model. Each risk factor mining network focuses on identifying and extracting information related to its corresponding risk factor. These risk factor mining networks generate risk factor association vectors by analyzing the characteristic patterns, correlations, and trends in the drug risk vector sequence. Finally, the drug feedback mining system combines the association vectors output by each risk factor mining network into a risk factor association vector sequence for subsequent multi-dimensional drug risk identification and analysis. For example, each risk factor mining network focuses on mining information related to specific drug risk factors (such as cardiotoxicity, liver damage, etc.), and the mining results are presented in the form of risk factor association vectors.

[0035] Step S140, performing risk knowledge relationship analysis on the drug risk vector sequences extracted by each of the deep learning models according to the risk knowledge relationship network, and generating a risk knowledge relationship vector sequence extracted by the risk knowledge relationship network. The drug risk factor reflects the potential physical risk of the target drug feedback event to the risk drug to be identified. There is a risk knowledge relationship between the multiple drug risk factors.

[0036] In detail, the risk knowledge relationship network is a pre-constructed network structure that reflects the known or inferred relationships and dependencies between different drug risk factors. This risk knowledge relationship network can be constructed based on expert knowledge, historical data, medical literature, etc. For example, assuming there is a risk knowledge relationship network about drug side effects, it may reveal a positive correlation between "liver damage" and "slowed drug metabolism", or a co-occurrence relationship between "cardiotoxicity" and "hypertension".

[0037] Risk knowledge relationship analysis is the process of analyzing drug risk vector sequences using risk knowledge relationship networks, with the goal of identifying actual connections and interactions between different risk factors. For example, if a drug’s risk vector sequence shows signs of liver and kidney dysfunction, risk knowledge relationship analysis may reveal whether these two abnormalities often occur together, whether one is a direct or indirect cause of the other, or whether they are both associated with a common risk factor.

[0038] The risk knowledge relationship vector sequence is a series of numerical vectors generated after risk knowledge relationship analysis, and each vector represents the degree of specific relationship or interaction between risk factors in the drug risk vector sequence. For example, when processing a drug risk vector sequence involving multiple potential side effects, the risk knowledge relationship vector sequence may include a vector representing the "relationship between liver damage and drug metabolism", a vector representing the "relationship between cardiotoxicity and blood pressure", etc.

[0039] The potential physical risk refers to the potential harm or adverse consequences that may be caused to the body when using the drug. These risks may not necessarily appear immediately, but may become significant after long-term use or under certain conditions. For example, an antihypertensive drug may effectively lower blood pressure in the early stage of use, but long-term use may increase the patient's risk of diabetes. This increased risk of diabetes is a potential physical risk.

[0040] Therefore, the drug feedback mining system uses the risk knowledge relationship network to process the drug risk vector sequence extracted from the deep learning model. This risk knowledge relationship network can identify and parse the complex relationships between different risk factors, such as co-occurrence, causality, correlation, etc. By analyzing these relationships, the drug feedback mining system can generate a sequence of risk knowledge relationship vectors, each of which represents the strength and importance of a specific relationship between risk factors, which is crucial for a comprehensive understanding of the potential risks of drugs and the formulation of safer and more effective medication strategies. For example, in this embodiment, this risk knowledge relationship network can capture complex relationships such as "a certain ingredient may increase the risk of cardiac toxicity" or "two drugs may produce a synergistic effect of liver damage when used simultaneously", and the analysis results are encoded as a sequence of risk knowledge relationship vectors.

[0041] Step S150, performing multi-dimensional drug risk identification based on the risk factor association vector sequence and the risk knowledge relationship vector sequence, and generating a drug risk identification result corresponding to each of the drug risk factors.

[0042] Finally, the drug feedback mining system comprehensively considers the information in the risk factor association vector sequence and the risk knowledge relationship vector sequence, and performs multi-dimensional drug risk identification. This means that the drug feedback mining system not only considers the presence or absence of a single risk factor, but also considers their interactions and overall impact. Ultimately, the drug feedback mining system generates specific drug risk identification results for each risk factor of "Drug A" (such as cardiac toxicity, liver damage, etc.), which can provide important medication references for medical professionals and patients.

[0043] In other words, multidimensional drug risk identification refers to the use of information from multiple dimensions or angles to comprehensively assess the risks of drugs, which involves considering different risk factors, the relationships between risk factors, and the changes in these relationships in different situations. For example, when conducting multidimensional drug risk identification, in addition to considering each risk factor individually (such as hepatotoxicity, cardiotoxicity, etc.), it is also necessary to consider the possible interactions between these risk factors (such as one risk factor may aggravate the impact of another risk factor) and their differences in performance in different patient groups.

[0044] The drug risk identification result is the output of multi-dimensional drug risk identification, which provides a comprehensive assessment of the potential risks of the drug. This result may include information such as the existence and severity of risk factors, and the correlation between them. For example, for a specific drug, its risk identification result may indicate that the drug has a higher risk of hepatotoxicity, but a lower correlation with cardiotoxicity. Such results can help doctors and patients better understand the risk spectrum of the drug and make more informed medication decisions accordingly.

[0045] In the process of realizing multi-dimensional drug risk identification, the drug feedback mining system comprehensively considers the information in the risk factor association vector sequence and the risk knowledge relationship vector sequence. The risk factor association vector sequence provides information about the presence and relevance of each risk factor in a given drug, while the risk knowledge relationship vector sequence reveals the known or inferred relationships and dependencies between these risk factors.

[0046] Based on the above steps, this embodiment can obtain the drug feedback text set corresponding to the target drug feedback event and the drug attribute knowledge data corresponding to the risk drug to be identified, and use the deep learning model to extract the drug risk vector. Then, according to the risk factor mining network corresponding to multiple drug risk factors, risk factor mining is performed and a risk factor association vector sequence is generated. According to the risk knowledge relationship network, the drug risk vector sequence is parsed for risk knowledge relationship to generate a risk knowledge relationship vector sequence. Finally, multi-dimensional drug risk identification is performed based on the risk factor association vector sequence and the risk knowledge relationship vector sequence to generate drug risk identification results corresponding to each drug risk factor. Thus, potential risk drugs can be effectively mined from the drug feedback text set, and various tools such as deep learning models, risk factor mining networks, and risk knowledge relationship networks can be used to comprehensively and deeply analyze drug risks, thereby enhancing the accuracy and reliability of drug risk identification. In addition, through multi-dimensional drug risk identification, the risk level corresponding to each drug risk factor can be more comprehensively reflected, further improving the scientificity and effectiveness of drug risk management.

[0047] That is, this application combines the deep learning model with the risk factor mining network to achieve efficient processing of drug feedback text sets and drug attribute knowledge data, and accurately extract drug risk vectors. Furthermore, the extracted drug risk vectors are deeply analyzed using the risk knowledge relationship network to generate a sequence of risk knowledge relationship vectors, thereby fully revealing the potential relationship between drug risk factors. Ultimately, multi-dimensional drug risk identification can accurately generate drug risk identification results corresponding to each drug risk factor, thereby significantly improving the accuracy and efficiency of risk drug identification.

[0048] In a possible implementation, step S120 may include:

[0049] Step S121, performing drug description semantic encoding on the drug feedback text set and the drug attribute knowledge data respectively according to the drug semantic encoding unit, and generating drug feedback semantic features corresponding to the drug feedback text set and drug attribute knowledge semantic features corresponding to the drug attribute knowledge data.

[0050] In this embodiment, in order to extract useful information from these unstructured drug feedback text sets and drug attribute knowledge data, the drug feedback mining system first uses the drug semantic coding unit to encode the drug feedback text set. This encoding process is similar to converting human language into a format that can be understood by a machine. For example, the drug feedback mining system may encode feedback text such as "dizziness occurs after use" into a series of numbers indicating the severity of dizziness symptoms. Similarly, drug attribute knowledge data, such as "the ingredients contain two chemical substances A and B", will also be encoded into corresponding numbers or vectors to represent the properties and possible effects of these chemical substances.

[0051] Step S122, performing drug semantic integration on the drug feedback semantic features and the drug attribute knowledge semantic features according to the drug semantic integration unit to generate an integrated drug semantic feature.

[0052] In this embodiment, after completing the semantic encoding, the drug feedback mining system determines two sets of semantic features from different sources but interrelated: one set comes from the user's real feedback, and the other set comes from the attribute knowledge of the drug itself. In order to fuse these features together for a more comprehensive analysis of the risks of the drug, the drug feedback mining system uses a drug semantic integration unit. This drug semantic integration unit is like an information fusion center, combining semantic features from different channels to form a more complete and richer integrated drug semantic feature. For example, a user's dizziness feedback may be related to a chemical substance in the drug, and this correlation is reflected in the integration process.

[0053] Step S123, loading the integrated drug semantic features into the multiple deep learning models to extract drug risk vectors, and generating drug risk vector sequences extracted by each deep learning model.

[0054] Now, the drug feedback mining system has determined the integrated drug semantic features. In order to further extract specific information related to drug risks from these integrated drug semantic features, the drug feedback mining system loads these integrated drug semantic features into multiple deep learning models. These deep learning models are pre-trained and specifically used to identify and analyze drug risks. For example, one deep learning model may focus on identifying risks related to liver function, while another deep learning model focuses on heart health. Each deep learning model extracts a risk vector from the integrated drug semantic features based on its expertise. This risk vector is a series of numbers that represents the performance of the drug in a specific risk dimension. Finally, the drug feedback mining system obtains a sequence of drug risk vectors extracted by multiple deep learning models, which provide the basis for subsequent multi-dimensional drug risk identification.

[0055] In this way, we can make full use of user feedback and knowledge of drug properties to comprehensively and accurately assess the risks of drugs and provide more valuable medication recommendations to doctors and patients.

[0056] In a possible implementation, step S130 may include:

[0057] Step S131, determine the first feature selection parameter data corresponding to each of the deep learning models based on the first feature selection unit corresponding to each of the drug risk factors, and perform feature selection on the drug risk vector sequence extracted by each of the deep learning models based on the first feature selection parameter data corresponding to each of the deep learning models to generate a first drug risk vector selection sequence corresponding to each of the drug risk factors.

[0058] In this embodiment, the drug feedback mining system has extracted the drug risk vector sequence through the deep learning model in the process of processing drug risk identification. In order to further focus on the features related to specific drug risk factors, the drug feedback mining system can use the corresponding first feature selection unit to determine the first feature selection parameter data applicable to each deep learning model according to the characteristics of each drug risk factor. These first feature selection parameter data can be understood as a filter or gating unit that can help the drug feedback mining system filter out the features most relevant to specific risk factors from the original drug risk vector sequence.

[0059] For example, if the drug feedback mining system is focusing on a risk factor related to "liver toxicity", the corresponding first feature selection unit may select feature parameters related to liver function indicators, drug metabolism pathways, etc. The drug feedback mining system will screen the drug risk vector sequence extracted by each deep learning model based on these feature parameters, and only retain those features that are closely related to the "liver toxicity" risk factor, thereby generating a first drug risk vector selection sequence specifically for this risk factor.

[0060] Step S132, performing risk factor mining on each of the first drug risk vector selection sequences according to the plurality of risk factor mining networks, and generating a risk factor association vector sequence extracted by each of the risk factor mining networks.

[0061] In this embodiment, after completing feature selection, the drug feedback mining system has multiple first drug risk vector selection sequences for different drug risk factors. Next, the drug feedback mining system uses the pre-built risk factor mining network to perform in-depth risk factor mining on these first drug risk vector selection sequences. Each risk factor mining network is designed specifically for a specific risk factor and can identify and analyze complex patterns and correlations related to the risk factor.

[0062] Taking the "liver toxicity" risk factor as an example, the drug feedback mining system inputs the corresponding first drug risk vector selection sequence into the risk factor mining network specifically for liver toxicity. This risk factor mining network will extract the association vector closely related to the liver toxicity risk by analyzing the features in the first drug risk vector selection sequence, their interactions, and their changing trends in the time series. This association vector is a series of numerical values ​​that reflects the degree of association between the drug and the liver toxicity risk in different dimensions.

[0063] The drug feedback mining system performs similar operations on each drug risk factor, and finally generates a series of risk factor association vector sequences. These risk factor association vector sequences provide an important basis for subsequent multi-dimensional drug risk identification, helping the drug feedback mining system to more comprehensively understand the performance of drugs in different risk dimensions.

[0064] As a result, the various potential risks of drugs can be more accurately identified and assessed, providing more valuable medication recommendations to medical professionals and patients.

[0065] In a possible implementation, step S140 may include:

[0066] Step S141, determine the second feature selection parameter data corresponding to each of the deep learning models based on the second feature selection units corresponding to each of the drug risk factors, and perform feature selection on the drug risk vector sequences extracted by each of the deep learning models based on the second feature selection parameter data corresponding to each of the deep learning models to generate a second drug risk vector selection sequence corresponding to each of the drug risk factors.

[0067] In this embodiment, in order to more deeply understand the relationship between these risk vectors and known risk knowledge, the drug feedback mining system can use the second feature selection units corresponding to each drug risk factor. The role of these second feature selection units is to determine the second feature selection parameter data suitable for each deep learning model according to the characteristics of risk knowledge.

[0068] For example, consider a risk factor related to "cardiotoxicity". The drug feedback mining system uses the second feature selection unit corresponding to "cardiotoxicity" to extract key features from the known risk knowledge of cardiotoxicity, such as specific biomarkers, physiological reactions, etc. Then, based on these key features, the drug feedback mining system sets the second feature selection parameter data to further screen the drug risk vector sequence extracted by the deep learning model. In this way, the drug feedback mining system can obtain a second drug risk vector selection sequence that focuses on the "cardiotoxicity" risk factor, and the features in this second drug risk vector selection sequence are closely related to the risk knowledge of cardiotoxicity.

[0069] Step S142, performing risk knowledge relationship analysis on each of the second drug risk vector selection sequences according to the risk knowledge relationship network, and generating a risk knowledge relationship vector sequence extracted from the risk knowledge relationship network.

[0070] After determining the second drug risk vector selection sequence for each drug risk factor, the drug feedback mining system can use the risk knowledge relationship network to analyze the risk knowledge relationship. This risk knowledge relationship network is a complex model that contains a lot of knowledge about the relationship between drug risk factors, their mechanism of action, and their connection with disease states.

[0071] Take the two risk factors of "cardiotoxicity" and "hepatotoxicity" as examples. The drug feedback mining system inputs the second drug risk vector selection sequence corresponding to these two risk factors into the risk knowledge relationship network. The risk knowledge relationship network analyzes how the features in the two sequences interact with each other and how they jointly affect the overall risk of the drug based on the knowledge stored in it. This process may involve complex biochemical reactions, drug metabolic pathways, and interactions between different organs.

[0072] Finally, the risk knowledge relationship network outputs a risk knowledge relationship vector sequence. This risk knowledge relationship vector sequence not only reflects the performance of the drug in different risk dimensions, but also reveals the deep connection and interaction between these risk dimensions. Such information is of great value for comprehensively evaluating the safety of drugs, formulating personalized medication plans, and predicting potential drug side effects.

[0073] In this way, known risk knowledge and risk vectors extracted by deep learning models can be fully utilized to provide more accurate and comprehensive drug risk information to medical professionals and patients.

[0074] In a possible implementation, the plurality of drug risk factors include a first drug risk factor and a second drug risk factor, and the first drug risk factor is located before the second drug risk factor in the set having a risk knowledge relationship.

[0075] Step S142 may include:

[0076] Step S1421, performing risk knowledge relationship analysis on the second drug risk vector selection sequence corresponding to the first drug risk factor based on the risk knowledge relationship network to generate a risk knowledge relationship vector sequence corresponding to the first drug risk factor, and performing risk knowledge relationship analysis on the second drug risk vector selection sequence corresponding to the first drug risk factor and the second drug risk vector selection sequence corresponding to the second drug risk factor based on the risk knowledge relationship network to generate a risk knowledge relationship vector sequence corresponding to the second drug risk factor.

[0077] In this scenario, consider two drug risk factors: the first drug risk factor and the second drug risk factor. There is a risk knowledge relationship between the two, and in this risk knowledge relationship, the first drug risk factor is before the second drug risk factor in terms of logic or knowledge flow. In other words, the analysis of the first drug risk factor may have an impact on or provide context for the analysis of the second drug risk factor.

[0078] In this embodiment, the drug feedback mining system first processes data related to the first drug risk factor. For example, the risk knowledge relationship network can be used to select a sequence of second drug risk vectors corresponding to the first drug risk factor for analysis. This analysis process may involve identifying patterns unique to the risk factor, associations with other biomarkers or physiological responses, etc.

[0079] For example, if the first drug risk factor is related to the inhibition of a specific enzyme activity, the drug feedback mining system will analyze the features related to the enzyme activity in the second drug risk vector selection sequence, and how these features interact with other biological systems to affect the safety and effectiveness of the drug. In this way, the drug feedback mining system generates a risk knowledge relationship vector sequence corresponding to the first drug risk factor.

[0080] Next, the drug feedback mining system considers the data of the first drug risk factor and the second drug risk factor at the same time. It again uses the risk knowledge relationship network, but this time it inputs the second drug risk vector selection sequence corresponding to the two risk factors into the network for parsing. This process aims to reveal the interaction and joint influence between the two risk factors.

[0081] Taking the previous example of enzyme activity inhibition, if the second drug risk factor is related to liver metabolism, the drug feedback mining system will analyze how these two risk factors jointly affect the drug's metabolic process. It may find that the inhibition of enzyme activity leads to a slowdown in the metabolism of the drug in the liver, thereby increasing the drug's retention time in the body and potential toxicity. Through this joint analysis, the drug feedback mining system generates a risk knowledge relationship vector sequence corresponding to the second drug risk factor.

[0082] Step S1422: outputting the risk knowledge relationship vector sequence corresponding to the first drug risk factor and the risk knowledge relationship vector sequence corresponding to the second drug risk factor as the risk knowledge relationship vector sequence extracted from the risk knowledge relationship network.

[0083] Finally, the drug feedback mining system integrates the risk knowledge relationship vector sequences corresponding to the two risk factors as the final output extracted from the risk knowledge relationship network. This output is a comprehensive, multi-dimensional drug risk profile that not only reflects the impact of a single risk factor, but also reveals the interactions and joint impacts between different risk factors. Such information is very valuable to medical professionals because it can help them more accurately assess the safety of drugs and thus develop more personalized medication plans for patients.

[0084] In a possible implementation, the risk knowledge relationship network includes at least one risk knowledge relationship sub-network, and each of the risk knowledge relationship sub-networks includes a feature focusing unit and a progressive thinking chain structure unit.

[0085] Step S142 may further include:

[0086] Step S1423, loading each of the second drug risk vector selection sequences into the feature focusing unit to extract focusing features, and generating focusing feature data corresponding to each of the second drug risk vector selection sequences.

[0087] In this scenario, the risk knowledge relationship network consists of at least one risk knowledge relationship sub-network. Each risk knowledge relationship sub-network contains a feature focus unit and a progressive thinking chain structure unit. These units work together to deeply analyze the risk knowledge relationship in the drug risk vector sequence.

[0088] In this embodiment, the drug feedback mining system starts to process each second drug risk vector selection sequence. First, these second drug risk vector selection sequences are loaded into the feature focusing unit. The function of the feature focusing unit is to extract the most relevant focused features with specific risk knowledge relationship from the complex vector data.

[0089] For example, if a second drug risk vector selection sequence is related to the risk factor of "renal toxicity", the feature focusing unit will identify and extract features in the sequence that are related to kidney function, drug metabolism pathways, biomarker changes, etc. These focused feature data are the basis for the subsequent construction of risk knowledge relationships.

[0090] Step S1424, loading the focused feature data corresponding to each of the second drug risk vector selection sequences into the progressive thinking chain structure unit to construct risk knowledge relationships, and generating a risk knowledge relationship vector sequence extracted from the risk knowledge relationship network.

[0091] Once the feature focusing unit has completed the extraction of focused features, the drug feedback mining system will load these feature data into the progressive thinking chain structure unit. The role of this progressive thinking chain structure unit is to gradually build a deep relationship between drug risk factors based on known risk knowledge and biomedical logic.

[0092] Taking the risk factor of "kidney toxicity" as an example, the progressive thinking chain structure unit may analyze the changes in kidney function indicators in the focused feature data, the accumulation of drugs in the kidneys, and how these changes interact with other physiological systems. Through this progressive analysis, the drug feedback mining system can reveal the complex relationship between drug risk factors, such as a certain drug may cause a decline in kidney function, which in turn affects the health of the cardiovascular system.

[0093] After processing the progressive thinking chain structural units, the drug feedback mining system finally generates a risk knowledge relationship vector sequence. This sequence not only contains the information of each drug risk factor itself, but also reflects the interaction and joint impact between them. For medical professionals, such information helps to more comprehensively evaluate the safety of drugs, predict potential side effects, and develop more appropriate medication plans for patients.

[0094] Therefore, the feature focusing units and progressive thinking chain structure units in the risk knowledge relationship network can be fully utilized to conduct in-depth risk knowledge relationship analysis on the second drug risk vector selection sequence.

[0095] In a possible implementation, step S1423 may include:

[0096] Step S1423-1, standardize each of the second drug risk vector selection sequences to eliminate the dimensional differences between different features, and screen out a target contribution feature subset that contributes to the risk knowledge relationship analysis from each of the second drug risk vector selection sequences after standardization based on the information gain strategy.

[0097] In this embodiment, in order to eliminate the dimensional differences between different features, the drug feedback mining system standardizes these second drug risk vector selection sequences to ensure that each feature is on the same scale.

[0098] Next, the drug feedback mining system uses the information gain strategy to screen features. Information gain is an indicator that measures the contribution of a feature to a classification or regression task. The drug feedback mining system calculates the information gain value of each feature and screens out a subset of target contribution features that contribute significantly to the analysis of risk knowledge relationships based on these values. For example, if a feature shows a high information gain in multiple drug risk vector selection sequences, it is more likely to be selected as a target contribution feature.

[0099] Step S1423-2, using the attention mechanism of the feature focusing unit, assigns attention weights to different features in each of the target contribution feature subsets, and based on the attention weights, performs weighted fusion on different features in each of the second drug risk vector selection sequences to generate fused initial focused feature data.

[0100] After selecting the target contribution feature subset, the drug feedback mining system further processes these features using the attention mechanism of the feature focusing unit. The attention mechanism imitates the way humans allocate attention when processing information, that is, paying more attention to important information.

[0101] The drug feedback mining system assigns an attention weight to each feature in the target contribution feature subset, which reflects the importance of the feature in the risk knowledge relationship analysis. Then, based on these weights, the drug feedback mining system performs weighted fusion on different features in the second drug risk vector selection sequence. In this way, important features will occupy a larger proportion in the fused initial focused feature data.

[0102] Step S1423-3, using the t-distribution neighborhood embedding algorithm to perform dimensionality reduction processing on the generated initial focusing feature data, and using the feature intersection strategy and feature derivation strategy to enhance the reduced dimensionality initial focusing feature data to generate the corresponding focusing feature data.

[0103] After obtaining the initial focused feature data, the drug feedback mining system uses the t-distributed neighbor embedding algorithm (t-SNE) for dimensionality reduction. t-SNE is a nonlinear dimensionality reduction method that can visualize high-dimensional data while maintaining the local structure of the data. Through dimensionality reduction, the drug feedback mining system can remove redundant information in the data and improve the efficiency of subsequent processing.

[0104] After dimensionality reduction, the drug feedback mining system further uses feature crossover strategy and feature derivation strategy to enhance the initial focused feature data. Feature crossover refers to combining different features to form new features to capture the interactions between them. Feature derivation, on the other hand, generates new features from existing features through mathematical transformation or statistical methods. These enhancement processing steps help the drug feedback mining system to mine deeper drug risk knowledge relationships.

[0105] Finally, after the above processing flow, the drug feedback mining system generates focused feature data corresponding to each second drug risk vector selection sequence. These data not only remove redundant information, but also highlight the features that have important contributions to the analysis of risk knowledge relationships, providing a solid foundation for the subsequent construction of risk knowledge relationships.

[0106] In a possible implementation, step S1424 may include:

[0107] Step S1424-1, taking the focused characteristic data as input, constructing an initial risk knowledge node using the initial layer of the progressive thinking chain structure unit, wherein the initial risk knowledge node represents the basic characteristics or preliminary judgment of the drug risk.

[0108] In this embodiment, the drug feedback mining system first loads the focused feature data into the initial layer of the progressive thinking chain structure unit. These focused feature data have been preprocessed to remove redundant information and highlight the features that have important contributions to the risk knowledge relationship analysis. The initial layer uses these focused feature data to construct the initial risk knowledge node.

[0109] Taking a specific drug as an example, assuming that its focused feature data includes information such as the drug's chemical structure, mechanism of action, clinical trial results, etc. The initial layer will integrate this information into one or more initial risk knowledge nodes, which may represent the basic characteristics of the drug (such as chemical structure similarity), preliminary judgments (such as potential cardiotoxicity), etc.

[0110] Step S1424-2, in the progressive thinking chain structure unit, by transmitting and processing information layer by layer, the initial risk knowledge node is progressively reasoned, wherein each layer in the progressive thinking chain structure unit is used to progressively mine the risk knowledge relationship based on the output of the previous layer and the processing logic parameters of the layer to mine the characteristic connection between risk knowledge, and after multi-layer processing of the progressive thinking chain structure unit, in the last layer of the progressive thinking chain structure, knowledge relationship data for representing the risk knowledge relationship is generated according to the processing result of the previous layer, the knowledge relationship data encodes the direct or potential relationship between drug risk factors, and the knowledge relationship data is converted into a vector form through a graph network structure to generate a corresponding risk knowledge relationship vector sequence.

[0111] In the progressive thinking chain structure unit, the drug feedback mining system performs progressive relational reasoning on the initial risk knowledge nodes by transmitting and processing information layer by layer. Each layer is based on the output of the previous layer and combined with the processing logic parameters of the layer to conduct a deeper mining of the risk knowledge relationship.

[0112] Taking cardiotoxicity as an example, the second layer may analyze the chemical structure similarities between the drug and other drugs known to be cardiotoxic, thereby inferring the possible risk relationship between them. The third layer may further consider the reports of adverse events related to the heart in clinical trials of the drug, as well as the association of these events with factors such as drug dosage and duration of medication. Through this step-by-step approach, the drug feedback mining system can gradually reveal the direct or potential relationship between drug risk factors.

[0113] After multiple layers of processing of progressive thought chain structural units, the drug feedback mining system generates knowledge relationship data for representing risk knowledge relationships at the last layer. These data encode the complex relationships between drug risk factors, including direct associations, indirect effects, potential trends, etc.

[0114] Finally, the drug feedback mining system converts these knowledge relationship data into vector form through a graph network structure. The graph network structure is a flexible data structure that can naturally represent the relationship between entities. In this scenario, the drug feedback mining system may regard each drug risk factor as a node, the relationship between them as an edge, and assign a weight to each edge according to the strength and type of the relationship. In this way, the drug feedback mining system ultimately generates corresponding risk knowledge relationship vector sequences, which provide strong support for subsequent drug safety assessment and personalized medication plan formulation.

[0115] In a possible implementation, step S150 may include:

[0116] Step S151, determining feature selection parameter data corresponding to the risk factor association vector sequence and feature selection parameter data corresponding to the risk knowledge relationship vector sequence according to the third feature selection unit corresponding to each of the drug risk factors.

[0117] In this embodiment, the drug feedback mining system first determines the feature selection parameter data of the risk factor association vector sequence and the risk knowledge relationship vector sequence according to the third feature selection unit corresponding to each drug risk factor. These feature selection parameter data may include feature importance weights, feature selection thresholds, correlation indicators between features, etc.

[0118] Taking a specific drug risk factor as an example, assume that its risk factor association vector sequence contains multiple features related to the risk factor, such as the patient's age, gender, genotype, etc. The third feature selection unit will analyze the correlation between these features and the target risk factor and calculate the importance weight of each feature. At the same time, for the risk knowledge relationship vector sequence, the third feature selection unit will also determine the corresponding feature selection parameter data based on the contribution of the features in the sequence to the risk knowledge relationship.

[0119] Step S152, performing feature selection on the risk factor association vector sequence and the risk knowledge relationship vector sequence according to the feature selection parameter data corresponding to the risk factor association vector sequence and the feature selection parameter data corresponding to the risk knowledge relationship vector sequence, and generating a third drug risk vector selection sequence corresponding to each of the drug risk factors.

[0120] After determining the feature selection parameter data, the drug feedback mining system will use this data to perform feature selection on the risk factor association vector sequence and risk knowledge relationship vector sequence. The purpose of feature selection is to remove irrelevant or redundant features and retain the features that contribute most to drug risk identification.

[0121] Taking age as an example, if the drug feedback mining system finds that age is weakly associated with a drug risk factor and has low importance weights in multiple risk factor association vector sequences, then the age feature may be removed during feature selection. After feature selection, the drug feedback mining system will generate a third drug risk vector selection sequence corresponding to each drug risk factor, which only contains the important features that have been screened.

[0122] Step S153, performing drug risk mapping on the third drug risk vector selection sequence corresponding to each of the drug risk factors according to the drug risk mapping unit, and generating a drug risk identification result corresponding to each of the drug risk factors.

[0123] Finally, the drug feedback mining system will use the drug risk mapping unit to perform drug risk mapping on the third drug risk vector selection sequence corresponding to each drug risk factor. Drug risk mapping is the process of mapping feature data to specific risk identification results.

[0124] Taking a specific third drug risk vector selection sequence as an example, assume that the sequence contains multiple screened features related to the patient's liver function. The drug risk mapping unit will input these features into a pre-trained risk identification model, such as a machine learning classifier or a deep learning network, so that the risk level of liver damage after the patient uses the drug can be predicted based on the input feature data, and the corresponding risk identification results can be output. These risk identification results may include information such as risk probability, risk level or risk trend, providing medication decision support for doctors and patients.

[0125] In one possible implementation, the method includes:

[0126] Step S101, obtaining multiple basic deep learning models, multiple basic risk factor mining networks corresponding to the drug risk factors, basic risk knowledge relationship networks, sample drug description data, and prior risk annotation data corresponding to the sample drug description data.

[0127] In this embodiment, the drug feedback mining system can first obtain multiple pre-trained basic deep learning models from the database or cloud storage. These basic deep learning models may include convolutional neural networks (CNNs), recurrent neural networks (RNNs), etc., which are used to process different types of drug data. At the same time, the drug feedback mining system also obtains multiple basic risk factor mining networks corresponding to drug risk factors. These basic risk factor mining networks are specifically used to mine specific risk factor information from drug data.

[0128] In addition, the drug feedback mining system also obtains a basic risk knowledge relationship network, which is used to establish knowledge relationships between drug risk factors. In order to train and verify the effectiveness of these networks, the drug feedback mining system also obtains a large amount of sample drug description data and the corresponding prior risk annotation data from the database. The sample drug description data may include information such as the drug's chemical structure, mechanism of action, clinical trial results, etc., while the prior risk annotation data is the drug risk level or risk category that experts have previously annotated based on these drug description data.

[0129] Step S102, integrating the multiple basic deep learning models, the basic risk factor mining networks corresponding to the multiple drug risk factors, and the basic risk knowledge relationship network into a basic machine learning network.

[0130] In this embodiment, the drug feedback mining system integrates the obtained multiple basic deep learning models, basic risk factor mining networks and basic risk knowledge relationship networks to build a more complex and powerful basic machine learning network. This integration process may include strategies such as series connection, parallel connection and feature fusion of models to fully utilize the advantages of each model and make up for each other's shortcomings.

[0131] For example, a drug risk factor may be affected by multiple factors at the same time, including the patient's genotype, age, gender, etc. The drug feedback mining system can connect a deep learning model that specifically processes genotype data with a deep learning model that processes age and gender data, and then fuse their output features and input them into the corresponding basic risk factor mining network for further risk factor mining. At the same time, the basic risk knowledge relationship network is responsible for establishing the knowledge relationship between these risk factors to provide support for subsequent risk identification and assessment.

[0132] Step S103, based on the sample drug description data and the prior risk annotation data corresponding to the sample drug description data, network parameter learning is performed on the basic machine learning network to generate a target machine learning network. The target machine learning network includes a plurality of the deep learning models, a plurality of risk factor mining networks corresponding to the drug risk factors, and the risk knowledge relationship network.

[0133] After building the basic machine learning network, the drug feedback mining system uses the acquired sample drug description data and the corresponding prior risk annotation data to train the network. During the training process, the drug feedback mining system continuously adjusts the network parameters through optimization techniques such as the back propagation algorithm to make the network output as close as possible to the prior risk annotation data.

[0134] After multiple rounds of training, the drug feedback mining system obtains a well-trained target machine learning network. This network not only contains multiple deep learning models for processing different types of drug data, but also contains risk factor mining networks corresponding to multiple drug risk factors for mining risk factor information from drug data, and a risk knowledge relationship network for establishing knowledge relationships between these risk factors. In practical applications, the drug feedback mining system can use this target machine learning network to identify and evaluate the risks of new drug data, and provide doctors and patients with more accurate and comprehensive medication recommendations.

[0135] In a possible implementation, the sample drug description data includes a template drug feedback text set corresponding to the sample drug feedback event and template drug attribute knowledge data corresponding to the template risk drug.

[0136] Step S103 may include:

[0137] Step S1031, extracting drug risk vectors from the template drug feedback text set and the template drug attribute knowledge data according to the multiple basic deep learning models, and generating a sequence of drug risk vectors extracted by each of the basic deep learning models.

[0138] In this embodiment, the drug feedback mining system is first connected to the drug database, which stores a large number of template drug feedback text sets and template drug attribute knowledge data corresponding to template risk drugs. The drug feedback mining system retrieves template drug feedback text sets related to specific drugs and template drug attribute knowledge data corresponding to template risk drugs by executing SQL query statements. These data include detailed information such as patient medication feedback, adverse reaction reports, drug ingredients, and mechanisms of action. The drug feedback mining system organizes these data into a structured format for subsequent processing and analysis.

[0139] Therefore, the drug feedback mining system inputs the sorted sample drug description data into multiple pre-trained basic deep learning models. These basic deep learning models include convolutional neural networks (used to process local features in text data) and recurrent neural networks (used to process sequence information in text data). These models extract features related to drug risks from the input data through multiple layers of convolution, pooling, and loop calculations, and convert them into fixed-length drug risk vectors. Each vector contains key information in the original text or attribute knowledge for subsequent risk factor mining and knowledge relationship analysis.

[0140] Step S1032, performing risk factor mining on the drug risk vector sequences extracted from each of the basic deep learning models based on the multiple basic risk factor mining networks to generate template risk factor association vector sequences extracted from each of the basic risk factor mining networks, and performing risk knowledge relationship analysis on the drug risk vector sequences extracted from each of the basic deep learning models based on the basic risk knowledge relationship network to generate template risk knowledge relationship vector sequences extracted from the basic risk knowledge relationship network.

[0141] In this embodiment, the drug feedback mining system inputs the extracted drug risk vectors into multiple basic risk factor mining networks. These basic risk factor mining networks use predefined risk factor mining algorithms to identify features related to specific risk factors from the input vectors and generate vector sequences associated with the risk factors. These vector sequences reflect the existence and distribution of different risk factors in the original data.

[0142] At the same time, the drug feedback mining system also inputs the drug risk vector into the basic risk knowledge relationship network. The network uses graph theory, semantic analysis and other technologies to further analyze and process the input vector, mine the knowledge relationship between risk factors (such as causal relationship, co-occurrence relationship, etc.), and generate vector sequences corresponding to these relationships. These vector sequences reveal the internal connection and mutual influence mechanism between risk factors.

[0143] Step S1033, performing drug risk identification based on the template risk factor association vector sequence corresponding to each of the drug risk factors to generate a first drug risk identification result corresponding to each of the drug risk factors, and performing drug risk identification based on the template risk knowledge relationship vector sequence corresponding to each of the drug risk factors to generate a second drug risk identification result corresponding to each of the drug risk factors.

[0144] Step S1034, performing multi-dimensional drug risk identification based on the template risk factor association vector sequence and the template risk knowledge relationship vector sequence, and generating a third drug risk identification result corresponding to each of the drug risk factors.

[0145] The drug feedback mining system inputs the risk factor association vector sequence and knowledge relationship vector sequence generated in the previous step into the corresponding risk identification module. These risk identification modules use multi-dimensional risk identification algorithms (such as ensemble learning, deep learning, etc.) to comprehensively consider the correlation of risk factors, the complexity of knowledge relationships, and the influence of drug attribute knowledge to comprehensively evaluate and analyze each drug risk factor. Specifically, the drug feedback mining system calculates indicators such as the confidence score and association score of each risk factor, and generates the final drug risk identification results based on these indicators. These results reflect the size and level of risk of different drugs in different dimensions.

[0146] Step S1035, determining the training cost parameters based on the first drug risk identification result and the prior risk labeling data to generate the first training cost parameters, determining the training cost parameters based on the second drug risk identification result and the prior risk labeling data to generate the second training cost parameters, and determining the training cost parameters based on the third drug risk identification result and the prior risk labeling data to generate the third training cost parameters.

[0147] For the first drug risk identification result, the cross-entropy loss can be used to calculate the training cost parameter. Assuming that the probability distribution of the model output is hat_y_i, the true risk category label is y_i, and the total number of samples is N, the training cost parameter L_1 can be calculated as:

[0148] L_1 = -1 / N * sum(y_i * log(hat_y_i) + (1 - y_i) * log(1 - hat_y_i))for i in 1 to N

[0149] Here, sum means summing all samples from 1 to N.

[0150] Calculation of training cost parameters for the second drug risk identification result

[0151] For the second drug risk identification result, the mean squared error loss can be used to calculate the training cost parameter. Assuming that the risk score vector output by the model is hat_s_i, the true score vector is s_i, and the total number of samples is N, the training cost parameter L_2 can be calculated as:

[0152] L_2 = 1 / N * sum(||hat_s_i - s_i||^2) for i in 1 to N

[0153] Here, ||hat_s_i - s_i|| means calculating the Euclidean norm (i.e., the length of the vector) between the predicted rating vector hat_s_i and the true rating vector s_i, ^2 means the square operation, and sum means summing all samples from 1 to N.

[0154] Calculation of training cost parameters for the third drug risk identification result

[0155] For the third drug risk identification result, the weighted cross-entropy loss can be used to calculate the training cost parameter. Assuming that the probability distribution matrix output by the model is hat_P, the true category label matrix is ​​P, the total number of samples is N, the total number of risk categories is C, and the weight vector of the risk category is w, the training cost parameter L_3 can be calculated as:

[0156] L_3 = -1 / N * sum(sum(w_j * [P_ij * log(hat_P_ij) + (1 - P_ij) * log(1- hat_P_ij)]) for j in 1 to C) for i in 1 to N

[0157] Here, the inner sum represents the sum of all risk categories from 1 to C, and the outer sum represents the sum of all samples from 1 to N.

[0158] It is worth noting that in the above formulas, log represents the natural logarithm function, * represents the multiplication operation, + represents the addition operation, and - represents the subtraction operation. These formulas are only examples and may need to be adjusted according to the specific requirements of the task and the characteristics of the data in actual use.

[0159] Step S1036: determining a target training cost parameter according to the first training cost parameter, the second training cost parameter and the third training cost parameter.

[0160] For example, target training cost parameter = α * first training cost parameter + β * second training cost parameter + γ * third training cost parameter

[0161] in:

[0162] α, β, and γ are weight coefficients used to balance the impact of different training cost parameters on the target training cost parameter. These weight coefficients can be adjusted according to actual needs and experience.

[0163] The first training cost parameter, the second training cost parameter and the third training cost parameter are obtained through the previous calculation steps, and they respectively represent the training costs in different dimensions or different risk identification tasks.

[0164] It is worth noting that this formula is a linear combination, which weights and sums the three training cost parameters to obtain the final target training cost parameter. By adjusting the weight coefficient, the importance of different training cost parameters to the target training cost parameter can be controlled.

[0165] It is worth noting that this formula is a simplified representation. In practical applications, other factors may need to be considered, such as regularization terms, dynamic adjustment of weights, etc. The specific formula form will be customized according to the specific task and data characteristics.

[0166] Step S1037, performing network parameter learning on the basic machine learning network according to the target training cost parameter until the target training cost parameter converges to generate a target machine learning network.

[0167] Finally, the drug feedback mining system applies the determined target training cost parameters to the training process of the basic machine learning network. By continuously adjusting the network's weights and bias parameters (such as using the gradient descent algorithm for optimization), the drug feedback mining system makes the network's output closer to the prior risk annotation data, improving the model's recognition accuracy and generalization ability. At the same time, in order to prevent the occurrence of overfitting, the drug feedback mining system can also use regularization, Dropout and other technologies to enhance the robustness of the model.

[0168] During the training process, the drug feedback mining system will continuously monitor the performance indicators of the model (such as loss function value, accuracy, etc.), and adjust the hyperparameter settings such as learning rate and batch size as needed. When the performance of the model reaches a certain standard or the number of iterations reaches the preset upper limit, the drug feedback mining system will stop training and save the final model parameters and structure. In this way, a trained target machine learning network is generated, which can be used in subsequent drug risk factor identification and evaluation tasks.

[0169] Figure 2 In an embodiment of the present application, a drug feedback mining system 100 is provided, including a processor 1001 and a memory 1003 and a program code stored in the memory 1003 , and the processor 1001 executes the above program code to implement the steps of a risk drug identification method based on drug feedback mining.

[0170] Figure 2 The drug feedback mining system 100 shown includes: a processor 1001 and a memory 1003. The processor 1001 and the memory 1003 are connected, such as through a bus 1002. Optionally, the drug feedback mining system 100 may also include a transceiver 1004, which can be used for data interaction between the drug feedback mining system 100 and other drug feedback mining systems 100, such as data transmission and / or data reception. It should be noted that in actual scheduling, the transceiver 1004 is not limited to one, and the structure of the drug feedback mining system 100 does not constitute a limitation on the embodiments of the present application.

[0171] Processor 1001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 1001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0172] The bus 1002 may include a path to transmit information between the above components. The bus 1002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 1002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0173] The memory 1003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium, other magnetic storage devices, or any other medium that can be used to carry or store program code and can be read by a computer, without limitation herein.

[0174] The memory 1003 is used to store program codes for executing the embodiments of the present application, and the execution is controlled by the processor 1001. The processor 1001 is used to execute the program codes stored in the memory 1003 to implement the steps shown in the above method embodiments.

[0175] An embodiment of the present application provides a computer-readable storage medium having program code stored thereon. When the program code is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.

[0176] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application also belong to the protection scope of the embodiments of the present application.

Claims

1. A risk drug identification method based on drug feedback mining, characterized in that: Applied to a drug feedback mining system, the method comprises: Obtaining a drug feedback text set corresponding to the target drug feedback event and drug attribute knowledge data corresponding to the risky drug to be identified; Extracting drug risk vectors from the drug feedback text set and the drug attribute knowledge data according to multiple deep learning models, and generating drug risk vector sequences extracted by each of the deep learning models; Performing risk factor mining on the drug risk vector sequences extracted by each of the deep learning models according to the risk factor mining networks corresponding to the multiple drug risk factors, and generating risk factor association vector sequences extracted by each of the risk factor mining networks; The drug risk vector sequences extracted by each of the deep learning models are parsed for risk knowledge relations according to the risk knowledge relation network to generate a risk knowledge relation vector sequence extracted by the risk knowledge relation network; the drug risk factor reflects the potential physical risk of the target drug feedback event on the risk drug to be identified; there is a risk knowledge relation between the plurality of drug risk factors, the plurality of drug risk factors include a first drug risk factor and a second drug risk factor, and the first drug risk factor is located before the second drug risk factor in the set with the risk knowledge relation; Perform multi-dimensional drug risk identification based on the risk factor association vector sequence and the risk knowledge relationship vector sequence to generate drug risk identification results corresponding to each of the drug risk factors; The method of performing risk knowledge relationship analysis on the drug risk vector sequences extracted by each of the deep learning models according to the risk knowledge relationship network to generate the risk knowledge relationship vector sequences extracted by the risk knowledge relationship network includes: Determining the second feature selection parameter data corresponding to each of the deep learning models according to the second feature selection units corresponding to each of the drug risk factors, and performing feature selection on the drug risk vector sequences extracted by each of the deep learning models according to the second feature selection parameter data corresponding to each of the deep learning models, to generate a second drug risk vector selection sequence corresponding to each of the drug risk factors; performing risk knowledge relationship analysis on each of the second drug risk vector selection sequences according to the risk knowledge relationship network to generate a risk knowledge relationship vector sequence extracted from the risk knowledge relationship network; The multi-dimensional drug risk identification is performed based on the risk factor association vector sequence and the risk knowledge relationship vector sequence to generate drug risk identification results corresponding to each of the drug risk factors, including: Determine, according to the third feature selection unit corresponding to each of the drug risk factors, feature selection parameter data corresponding to the risk factor association vector sequence and feature selection parameter data corresponding to the risk knowledge relationship vector sequence; According to the feature selection parameter data corresponding to the risk factor association vector sequence and the feature selection parameter data corresponding to the risk knowledge relationship vector sequence, feature selection is performed on the risk factor association vector sequence and the risk knowledge relationship vector sequence to generate a third drug risk vector selection sequence corresponding to each of the drug risk factors; The drug risk mapping unit performs drug risk mapping on the third drug risk vector selection sequence corresponding to each of the drug risk factors to generate a drug risk identification result corresponding to each of the drug risk factors.

2. The risk drug identification method based on drug feedback mining according to claim 1 is characterized in that: The extracting drug risk vectors from the drug feedback text set and the drug attribute knowledge data according to multiple deep learning models to generate drug risk vector sequences extracted by each of the deep learning models includes: According to the drug semantic coding unit, the drug feedback text set and the drug attribute knowledge data are respectively coded for drug description semantics, and drug feedback semantic features corresponding to the drug feedback text set and drug attribute knowledge semantic features corresponding to the drug attribute knowledge data are generated; Performing drug semantic integration on the drug feedback semantic features and the drug attribute knowledge semantic features according to the drug semantic integration unit to generate an integrated drug semantic feature; The integrated drug semantic features are loaded into the multiple deep learning models to extract drug risk vectors, and a sequence of drug risk vectors extracted by each deep learning model is generated.

3. The risk drug identification method based on drug feedback mining according to claim 1 or 2, characterized in that: The method of performing risk factor mining on the drug risk vector sequences extracted by each of the deep learning models according to the risk factor mining networks corresponding to the multiple drug risk factors, and generating risk factor association vector sequences extracted by each of the risk factor mining networks, comprises: Determining the first feature selection parameter data corresponding to each of the deep learning models according to the first feature selection units corresponding to each of the drug risk factors, and performing feature selection on the drug risk vector sequences extracted by each of the deep learning models according to the first feature selection parameter data corresponding to each of the deep learning models, to generate a first drug risk vector selection sequence corresponding to each of the drug risk factors; Risk factor mining is performed on each of the first drug risk vector selection sequences according to the plurality of risk factor mining networks to generate risk factor association vector sequences extracted by each of the risk factor mining networks.

4. The risk drug identification method based on drug feedback mining according to claim 1 is characterized in that: The step of performing risk knowledge relationship analysis on each of the second drug risk vector selection sequences according to the risk knowledge relationship network to generate a risk knowledge relationship vector sequence extracted from the risk knowledge relationship network includes: performing risk knowledge relationship analysis on a second drug risk vector selection sequence corresponding to the first drug risk factor according to the risk knowledge relationship network to generate a risk knowledge relationship vector sequence corresponding to the first drug risk factor, and performing risk knowledge relationship analysis on a second drug risk vector selection sequence corresponding to the first drug risk factor and a second drug risk vector selection sequence corresponding to the second drug risk factor according to the risk knowledge relationship network to generate a risk knowledge relationship vector sequence corresponding to the second drug risk factor; The risk knowledge relationship vector sequence corresponding to the first drug risk factor and the risk knowledge relationship vector sequence corresponding to the second drug risk factor are output as the risk knowledge relationship vector sequence extracted from the risk knowledge relationship network.

5. The risk drug identification method based on drug feedback mining according to claim 1 is characterized in that: The risk knowledge relationship network includes at least one risk knowledge relationship sub-network, and each of the risk knowledge relationship sub-networks includes a feature focus unit and a progressive thinking chain structure unit; The step of performing risk knowledge relationship analysis on each of the second drug risk vector selection sequences according to the risk knowledge relationship network to generate a risk knowledge relationship vector sequence extracted from the risk knowledge relationship network includes: Loading each of the second drug risk vector selection sequences into the feature focusing unit to extract focused features, and generating focused feature data corresponding to each of the second drug risk vector selection sequences; Loading the focused feature data corresponding to each of the second drug risk vector selection sequences into the progressive thinking chain structure unit to construct risk knowledge relationships, thereby generating a risk knowledge relationship vector sequence extracted from the risk knowledge relationship network; The step of loading each of the second drug risk vector selection sequences into the feature focusing unit to extract focused features and generate focused feature data corresponding to each of the second drug risk vector selection sequences includes: Standardizing each of the second drug risk vector selection sequences to eliminate the dimensional differences between different features, and screening out a target contribution feature subset that contributes to risk knowledge relationship analysis from each of the second drug risk vector selection sequences after the standardization based on an information gain strategy; Using the attention mechanism of the feature focusing unit, attention weights are assigned to different features in each of the target contribution feature subsets, and according to the attention weights, different features in each of the second drug risk vector selection sequences are weightedly fused to generate fused initial focused feature data; Performing dimensionality reduction processing on the generated initial focusing feature data using a t-distribution neighborhood embedding algorithm, and performing enhancement processing on the initial focusing feature data after dimensionality reduction using a feature intersection strategy and a feature derivation strategy to generate the corresponding focusing feature data; The step of loading the focused feature data corresponding to each of the second drug risk vector selection sequences into the progressive thinking chain structure unit to construct risk knowledge relationships and generate a risk knowledge relationship vector sequence extracted from the risk knowledge relationship network includes: Taking the focused characteristic data as input, constructing an initial risk knowledge node using the initial layer of the progressive thinking chain structure unit, wherein the initial risk knowledge node represents the basic characteristics or preliminary judgment of the drug risk; In the progressive thinking chain structure unit, the initial risk knowledge nodes are subjected to progressive relational reasoning by transmitting and processing information layer by layer, wherein each layer in the progressive thinking chain structure unit is used to progressively mine the risk knowledge relationship based on the output of the previous layer and the processing logic parameters of the layer to mine the characteristic connections between risk knowledge, and after multi-layer processing of the progressive thinking chain structure unit, in the last layer of the progressive thinking chain structure, knowledge relationship data for representing the risk knowledge relationship is generated according to the processing results of the previous layer, the knowledge relationship data encodes the direct or potential relationship between drug risk factors, and the knowledge relationship data is converted into a vector form through a graph network structure to generate a corresponding risk knowledge relationship vector sequence.

6. The risk drug identification method based on drug feedback mining according to claim 1 is characterized in that: The method comprises: Acquire multiple basic deep learning models, multiple basic risk factor mining networks corresponding to the drug risk factors, basic risk knowledge relationship networks, sample drug description data, and prior risk annotation data corresponding to the sample drug description data; Integrating a plurality of the basic deep learning models, a plurality of basic risk factor mining networks corresponding to the drug risk factors, and the basic risk knowledge relationship network into a basic machine learning network; Based on the sample drug description data and the prior risk annotation data corresponding to the sample drug description data, network parameter learning is performed on the basic machine learning network to generate a target machine learning network; the target machine learning network includes multiple deep learning models, risk factor mining networks corresponding to multiple drug risk factors, and the risk knowledge relationship network.

7. The risk drug identification method based on drug feedback mining according to claim 6 is characterized in that: The sample drug description data includes a template drug feedback text set corresponding to the sample drug feedback event and template drug attribute knowledge data corresponding to the template risk drug; The method of performing network parameter learning on the basic machine learning network based on the sample drug description data and the priori risk annotation data corresponding to the sample drug description data to generate a target machine learning network includes: Extracting drug risk vectors from the template drug feedback text set and the template drug attribute knowledge data according to the multiple basic deep learning models, and generating drug risk vector sequences extracted by the basic deep learning models; Performing risk factor mining on the drug risk vector sequences extracted by each of the basic deep learning models based on the multiple basic risk factor mining networks to generate template risk factor association vector sequences extracted by each of the basic risk factor mining networks, and performing risk knowledge relationship analysis on the drug risk vector sequences extracted by each of the basic deep learning models based on the basic risk knowledge relationship network to generate template risk knowledge relationship vector sequences extracted by the basic risk knowledge relationship network; Performing drug risk identification according to the template risk factor association vector sequence corresponding to each of the drug risk factors to generate a first drug risk identification result corresponding to each of the drug risk factors, and performing drug risk identification according to the template risk knowledge relationship vector sequence corresponding to each of the drug risk factors to generate a second drug risk identification result corresponding to each of the drug risk factors; Perform multi-dimensional drug risk identification according to the template risk factor association vector sequence and the template risk knowledge relationship vector sequence to generate a third drug risk identification result corresponding to each of the drug risk factors; Determining training cost parameters based on the first drug risk identification result and the prior risk annotation data to generate a first training cost parameter, determining training cost parameters based on the second drug risk identification result and the prior risk annotation data to generate a second training cost parameter, and determining training cost parameters based on the third drug risk identification result and the prior risk annotation data to generate a third training cost parameter; Determining a target training cost parameter according to the first training cost parameter, the second training cost parameter and the third training cost parameter; The basic machine learning network is subjected to network parameter learning according to the target training cost parameter until the target training cost parameter converges to generate a target machine learning network.

8. A drug feedback mining system, characterized in that: The drug feedback mining system includes a processor and a machine-readable storage medium, in which machine-executable instructions are stored. The machine-executable instructions are loaded and executed by the processor to implement the risk drug identification method based on drug feedback mining as described in any one of claims 1-7.