Medication management method, device, and equipment for home use and readable storage medium
By utilizing image recognition and a drug knowledge base, a home medication management method was developed to address the challenge of determining drug incompatibilities in combined medication use for elderly patients with chronic diseases. This enabled the safe updating of medication plans and alerts to any abnormalities, reducing the risk of adverse reactions and improving medication safety and effectiveness.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ENTROPY CLOUD BRAIN MACHINE (HANGZHOU) TECHNOLOGY CO LTD
- Filing Date
- 2026-03-12
- Publication Date
- 2026-06-12
AI Technical Summary
Elderly patients with chronic diseases often find it difficult to determine drug incompatibilities and compatibility with new medications during long-term home-based combined medication use, leading to a high risk of adverse drug reactions.
By using a home medication management method, the system identifies drug labels through image uploads, combines this with a drug knowledge base to determine whether medication plans need to be adjusted, and generates alerts for any anomalies, thus enabling the updating of medication plans and closed-loop management of safety.
It reduces the risk of adverse reactions caused by incompatibilities during home medication use, improves the safety and effectiveness of medication regimens, simplifies the operation process, and is suitable for the medication needs of elderly patients with chronic diseases.
Smart Images

Figure CN122201842A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart healthcare technology, and more specifically, to a method, apparatus, device, and readable storage medium for home medication management. Background Technology
[0002] In the medical field, the elderly are a high-risk group for chronic diseases. These elderly patients with chronic diseases often require long-term home-based combined medication, with an average of 5 to 8 different drugs being taken simultaneously. Drug incompatibilities are highly likely to occur during the combined use of multiple medications, but elderly patients generally lack professional medical knowledge and cannot determine whether such incompatibilities exist between the drugs they are using. Clinical statistics show that approximately 15% of adverse drug reactions are directly caused by drug interactions, posing a significant threat to the medication safety of elderly patients with chronic diseases.
[0003] In particular, when elderly patients need to add new medications for chronic diseases due to their condition, they have difficulty independently assessing the compatibility of the new medication with the original medication regimen, judging whether the new medication is suitable, and also cannot accurately understand and determine the corresponding standard dosing regimen for the new medication, which further exacerbates the medication risks for elderly patients with chronic diseases. Summary of the Invention
[0004] In view of this, this application provides a home medication management method, apparatus, device, and readable storage medium for reducing medication risks for elderly patients with chronic diseases.
[0005] To achieve the above objectives, the following solution is proposed: A method for managing home medication includes: In response to a home user uploading a drug image, obtain the drug image of the target drug; The drug image is analyzed to determine the drug identifier of the target drug; Identify the target patients for the drug and determine the drug administration plan for the target patients; To acquire a drug knowledge base for characterizing the interactions between different drugs and the effects of drugs on diseases; Based on the drug label and the drug knowledge base, determine whether the drug administration plan needs to be adjusted; If so, the medication administration plan is updated based on the drug identifier and the drug knowledge base; If not, an exception alert will be generated.
[0006] Optionally, the drug image is analyzed to determine the drug identifier of the target drug, including: Determine the information category of the drug image; Based on the information category, key information is extracted from the drug image to determine the drug identifier of the target drug.
[0007] Optionally, the step of extracting key information from the drug image based on the information category to determine the drug identifier of the target drug includes: If the information category is a drug instruction manual, then based on optical character recognition technology, text information is extracted from the drug image, and named entity recognition method is used to extract the drug identifier from the text information; And / or, If the information category is a barcode, then the drug image is scanned and identified to determine the drug identifier of the target drug; And / or, If the information category is a finished drug image, then the texture features, appearance features and / or character features of the drug image are extracted, the drug image is classified, and a drug identifier for the drug image is generated.
[0008] Optionally, the acquisition of a drug knowledge base for characterizing the interactions between different drugs and the effects of drugs on diseases includes: For each drug, obtain its drug category, therapeutic effect, ingredient information, disease improvement information, disease exacerbation risk information, all drug incompatibilities, and the risk level corresponding to each incompatibility; wherein, the drug category is used to characterize the disease relief mechanism of the corresponding drug; A drug knowledge base is constructed based on the drug category, therapeutic effect, ingredient information, disease improvement information, disease exacerbation risk information, all drug incompatibilities, and the risk level corresponding to each incompatibility.
[0009] Optionally, determining whether the medication administration plan needs to be adjusted by combining the drug identifier and the drug knowledge base includes: Extract from the drug knowledge base information the incompatibilities, target drug categories, ingredient information, and disease exacerbation risk information of each target drug that matches the drug identifier; Extract all first-contraindicated drugs whose risk level exceeds a preset threshold from the information on incompatibilities of each target; Determine the disease information and allergens of the target patient; Determine whether any target disease in the disease information matches the disease exacerbation risk information and whether any allergen matches the component information. If so, determine that the medication plan does not need to be adjusted. If not, it is determined that the medication regimen contains a planned drug consistent with the target drug category and / or any first contraindicated drug; if it does, it is determined that no adjustment to the medication regimen is required. If it does not exist and is not included, then it is determined that the medication administration plan needs to be adjusted.
[0010] Optionally, updating the medication administration plan based on the drug identifier and the drug knowledge base includes: Extract all second contraindicated drugs whose corresponding risk level is lower than the threshold value from the information on incompatibilities of each target drug; Determine whether any second contraindicated drug exists in the medication administration plan; If so, determine the interval between the second contraindicated drug and the target drug; update the drug administration plan based on the interval. If not, then based on the drug knowledge base, determine the dosage guidelines for the target drug; based on the dosage guidelines, update the drug dosage plan.
[0011] Optionally, after generating the exception alert, the method further includes: Send an anomaly alert to the wearable device so that the wearable device can vibrate to remind it.
[0012] A home medication management device, comprising: The drug image acquisition module is used to respond to the operation of home users uploading drug images and acquire drug images of the target drug; A drug image analysis module is used to analyze the drug image and determine the drug identifier of the target drug; The target user determination module is used to determine the target user of the target drug and to determine the drug administration plan for the target user. The drug knowledge base acquisition module is used to acquire a drug knowledge base that characterizes the interactions between different drugs and the effects of drugs on diseases. The medication administration plan determination module is used to combine the drug identifier and the drug knowledge base to determine whether the medication administration plan needs to be adjusted; if so, the medication administration plan update module is called; if not, it is called. The medication administration plan update module is used to update the medication administration plan based on the drug identifier and the drug knowledge base; The exception alert generation module is used to generate exception alerts.
[0013] A home medication management device, including a memory and a processor; The memory is used to store programs; The processor is used to execute the program to implement the various steps of the above-described home medication management method.
[0014] A readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the various steps of the above-described home medication management method.
[0015] As can be seen from the above technical solution, the home medication management method provided by this application can respond to the operation of home users uploading drug images and obtain the drug image of the target drug. Therefore, this application uses image uploading as the interaction entry point, reducing operational difficulty and conforming to the operating habits of non-professional groups such as elderly patients with chronic diseases and ordinary home users. It eliminates the need to manually input complex drug names, dosage forms, and other information, significantly lowering the operational threshold for home medication management. By analyzing the drug image, the drug identifier of the target drug is determined. Thus, this application can determine the drug identifier based on the intuitive characteristics of the target drug, avoiding problems such as drug name confusion and mis-input caused by manual input. By determining the target drug… This application identifies the target population for medication and determines their medication regimen. It acquires a drug knowledge base to characterize drug interactions and their effects on disease. By combining the drug identifiers and the drug knowledge base, it determines whether the medication regimen needs adjustment. This application avoids errors caused by confusion in medication plans among multiple family members, ensuring the uniqueness of subsequent drug interaction assessments and regimen adjustments, and preventing the influence of other users' medication plans on the results. By matching drug identifiers with knowledge base data, it can identify incompatibilities, synergistic effects, and antagonistic effects between newly added drugs and existing drugs, solving the problem of family users being unable to independently assess the risks of combined drug use and avoiding meaningless plan changes. When it is clear that the medication regimen needs adjustment, this application can update the regimen based on the drug identifiers and the drug knowledge base. Therefore, based on drug interactions and drug-disease effects, the original medication plan can be specifically adjusted to avoid the risks of combined drug use and improve the safety and effectiveness of the medication regimen. When it is clear that the medication regimen does not need adjustment, this application can generate an anomaly alert to complete a closed-loop medication safety process. As can be seen, this application can effectively reduce the risk of adverse reactions caused by drug incompatibilities during family combination medication by using drug image recognition, judging the need for updating medication plans, and updating medication plans in conjunction with a drug knowledge base. The interactive triggering method of image uploading is simple to operate, making this application suitable for the scenario of long-term multi-drug combination use for elderly patients with chronic diseases. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0017] Figure 1 This is a flowchart of a home medication management method disclosed in an embodiment of this application; Figure 2 This is a schematic diagram of the structure of a home medication management device disclosed in an embodiment of this application; Figure 3 This is a hardware structure block diagram of a home medication management device disclosed in an embodiment of this application. Detailed Implementation
[0018] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0019] This application provides a home medication management method, which can be applied to various medication management devices or elderly patient management devices, as well as to various computer terminals or smart terminals. The executing entity can be the processor or server of the computer terminal or smart terminal.
[0020] Next, combine Figure 1 This application provides a detailed description of the home medication management method, including the following steps: Step S1: Respond to the user's upload of drug images and obtain the drug image of the target drug.
[0021] Specifically, it can respond to home users uploading drug images via smart cameras and obtain drug images of the target drug.
[0022] It can also respond to home users uploading drug images through the corresponding interface and obtain drug images of the target drug.
[0023] The drug image can be of various information categories, such as drug instructions, barcodes, or images of the finished drug product.
[0024] Step S2: Analyze the drug image to determine the drug identifier of the target drug.
[0025] Specifically, image processing algorithms can be used to extract drug identifiers from drug images.
[0026] Different drug identification methods can be used for drug images with different information categories.
[0027] Step S3: Determine the target patient for the drug and determine the drug administration plan for the target patient.
[0028] Specifically, the user taking the target drug and the family user uploading the drug image can be the same user or different users.
[0029] It can respond to the user's setting of the recipient and determine the recipient corresponding to the drug image.
[0030] It can store user information of the users.
[0031] User information may include the patient's authorized doctor, gender, age, height, weight, supervisory contact, medication schedule, medical conditions, allergy history, sleep patterns, and meal times.
[0032] A medication administration plan may include multiple administration times, the medication to be taken at each administration time, and a medication dispensing box for each administration time.
[0033] Step S4: Obtain a drug knowledge base to characterize the interactions between different drugs and the effects of drugs on diseases.
[0034] Specifically, a drug knowledge base can contain information such as drug name, drug specifications, drug expiration date, usage guidelines, drug category, therapeutic effect, ingredient information, disease improvement information, disease exacerbation risk information, all drug incompatibilities, and the risk level corresponding to each incompatibility.
[0035] Furthermore, a drug knowledge graph approach can be used to integrate different information from the drug knowledge base.
[0036] Step S5: Based on the drug identifier and the drug knowledge base, determine whether the drug administration plan needs to be adjusted; if yes, proceed to step S6; if no, proceed to step S7.
[0037] Specifically, based on drug identification, relevant information about the target drug can be found in the drug knowledge base, and then... Based on information about the target drug, the medication plan, and user information, it can be determined whether adding the target drug to the medication plan will worsen the patient's physical condition.
[0038] If this occurs, it is determined that no adjustment to the medication regimen is needed, and step S6 can be performed.
[0039] If no result is generated, then determine that the medication administration plan can be adjusted and proceed to step S7.
[0040] Step S6: Update the drug administration plan based on the drug identifier and the drug knowledge base.
[0041] Specifically, the medication administration plan can be updated by taking into account relevant information about the target drug, sleep time, and meal times, and the new medication administration plan can be written into the user information of the user.
[0042] Step S7: Generate an exception alert.
[0043] Specifically, based on the relevant information of the target drug, the dangerous consequences of adding the target drug can be determined, and an abnormality alert can be generated and sent based on the dangerous consequences.
[0044] Abnormal alerts can be issued via app notifications, SMS, phone calls, wearable device vibrations, or by contacting the supervisor.
[0045] In the event of no response, an abnormality alert can be issued with progressively escalating alert levels.
[0046] The notification levels, from lowest to highest, are: app notification, SMS, phone call, wearable device vibration, and contacting the supervisor.
[0047] After the dosage time is preset, the sensor or small authorized camera corresponding to each medication dispensing box can detect when the user has not completed the medication dosage plan, and can also generate an abnormal reminder and update the medication record.
[0048] You can remind the user at the exact time of administration, or you can remind them before the scheduled administration time.
[0049] An alert can also be generated after abnormal behaviors such as consecutive missed doses, duplicate doses, or unusual medication pickup times.
[0050] Medication dependence can be assessed based on medication records.
[0051] It can connect to wearable devices to monitor heart rate, blood sugar, weight, and blood pressure, and analyze the effects of medication.
[0052] Medication adherence assessment can be determined based on the on-time medication rate, missed medication rate, and number of times medication was discontinued on its own.
[0053] It can provide doctors or family members with functions such as expired drug reminders, drug inventory management, expiration risk assessment, medication records, medication adherence, abnormal alerts, remote voice calls, remote video calls, medication regimen adjustments, and adverse reaction reports.
[0054] It can provide users with functions such as drug image acquisition, drug administration plan viewing and updating, delayed medication, medication confirmation, drug information query, and discomfort symptom recording.
[0055] A tiered color-coded alert mechanism can be adopted.
[0056] Temperature and humidity sensors can be used to assess whether the drug dispensing box can safely preserve the drug.
[0057] As can be seen from the above technical solution, the home medication management method provided by this application can respond to the operation of home users uploading drug images and obtain the drug image of the target drug. Therefore, this application uses image uploading as the interaction entry point, reducing operational difficulty and conforming to the operating habits of non-professional groups such as elderly patients with chronic diseases and ordinary home users. It eliminates the need to manually input complex drug names, dosage forms, and other information, significantly lowering the operational threshold for home medication management. By analyzing the drug image, the drug identifier of the target drug is determined. Thus, this application can determine the drug identifier based on the intuitive characteristics of the target drug, avoiding problems such as drug name confusion and mis-input caused by manual input. By determining the target drug… This application identifies the target population for medication and determines their medication regimen. It acquires a drug knowledge base to characterize drug interactions and their effects on disease. By combining the drug identifiers and the drug knowledge base, it determines whether the medication regimen needs adjustment. This application avoids errors caused by confusion in medication plans among multiple family members, ensuring the uniqueness of subsequent drug interaction assessments and regimen adjustments, and preventing the influence of other users' medication plans on the results. By matching drug identifiers with knowledge base data, it can identify incompatibilities, synergistic effects, and antagonistic effects between newly added drugs and existing drugs, solving the problem of family users being unable to independently assess the risks of combined drug use and avoiding meaningless plan changes. When it is clear that the medication regimen needs adjustment, this application can update the regimen based on the drug identifiers and the drug knowledge base. Therefore, based on drug interactions and drug-disease effects, the original medication plan can be specifically adjusted to avoid the risks of combined drug use and improve the safety and effectiveness of the medication regimen. When it is clear that the medication regimen does not need adjustment, this application can generate an anomaly alert to complete a closed-loop medication safety process. As can be seen, this application can effectively reduce the risk of adverse reactions caused by drug incompatibilities during family combination medication by using drug image recognition, judging the need for updating medication plans, and updating medication plans in conjunction with a drug knowledge base. The interactive triggering method of image uploading is simple to operate, making this application suitable for the scenario of long-term multi-drug combination use for elderly patients with chronic diseases.
[0058] Furthermore, abnormal alerts can be sent to wearable devices to trigger vibration alerts.
[0059] It can also send abnormal reminders and medication reminders through buzzers, LED indicators, touch screen displays, voice broadcasts, mobile push notifications, family phone calls, and voice calls.
[0060] It also offers features such as personalized reminder time adjustment, setting do-not-disturb periods, and emotional reminders.
[0061] In some embodiments of this application, the process of analyzing the drug image to determine the drug identifier of the target drug is described in detail, and the steps are as follows: S20. Determine the information category of the drug image.
[0062] Specifically, image classification models can be used to determine the information category of drug images.
[0063] The image classification model can be trained based on multiple drug training images labeled with training types.
[0064] S21. Based on the information category, extract key information from the drug image to determine the drug identifier of the target drug.
[0065] Specifically, drug images can be preprocessed by denoising, correction, and contrast enhancement. Based on the information category of the drug image, a matching image processing algorithm is used to extract key information from the preprocessed drug image, and based on the key information, the drug identifier of the target drug is determined.
[0066] As can be seen from the above technical solution, this embodiment provides an optional method for analyzing the drug image to determine the drug identifier of the target drug. By employing targeted image processing algorithms based on drug images of different information categories, the drug identifier of the target drug can be determined, thereby improving the accuracy of drug identifier recognition in this application.
[0067] Based on this, the process of extracting key information from the drug image based on the information category and determining the drug identifier of the target drug in step S21 is described in detail as follows: S210. If the information category is a drug instruction manual, then step S211 can be executed; if the information category is a barcode, then step S212 can be executed; if the information category is a finished drug image, then step S213 can be executed.
[0068] S211. Based on optical character recognition technology, extract text information from the drug image, and use named entity recognition method to extract drug identifier from the text information.
[0069] Specifically, an optical character recognition (OCR) engine combining a convolutional recurrent neural network (CRNN) and a connectionist temporal classification (CTC) engine can be used to recognize text in drug images and generate text information.
[0070] Named Entity Recognition (NER) can be used to extract key information from the identified text information, including the generic name of the drug, brand name, main ingredients, specifications, manufacturer, approval number, expiration date, and usage instructions. The generic name of the drug can be used as the drug identifier.
[0071] The extracted key information can be stored in a structured manner; The structured drug information is matched and verified against the drug knowledge base to obtain the matching and verification results; It can display the final matching verification results for users to confirm or modify.
[0072] S212. Scan the drug image to identify the drug identifier of the target drug.
[0073] Specifically, barcodes or regulatory codes in drug images can be scanned, the obtained coding information can be parsed, and the corresponding coding type can be identified, such as the international standard EAN-13 or the national drug regulatory code.
[0074] The API interface of the National Drug Regulatory Platform can be called to query and obtain basic information about the target drug. Basic information may include drug name, manufacturer, approval number, specifications, and expiration date.
[0075] The drug name can be used as a drug identifier.
[0076] Based on the above basic information, detailed information about the target drug can be retrieved and supplemented in the drug knowledge base, covering indications, contraindications, adverse reactions, and usage guidelines.
[0077] The integrated basic and detailed information can be automatically populated into the drug information management form or database.
[0078] S213. Extract texture features, appearance features and / or character features from the drug image, classify the drug image, and generate a drug identifier for the drug image.
[0079] Specifically, the background color of the drug image can be white.
[0080] By segmenting the drug image, the tablet region can be extracted.
[0081] Texture features, appearance features, and / or character features are extracted from the tablet region.
[0082] Among them, appearance characteristics may include color such as RGB values and hues, shape such as round, oval, capsule, etc., and size such as diameter and length.
[0083] Texture features can include surface textures such as smooth or rough.
[0084] Character features may include engravings or scratches.
[0085] The extracted feature information can be input into a convolutional neural network (CNN) classification model for analysis and processing to obtain the output results. Based on the output results, a matching search can be performed in a pill image library containing more than 100,000 pill images, and the top 3 candidate drugs with the highest similarity will be returned for the user to select and confirm.
[0086] As can be seen from the above technical solution, this embodiment provides an optional method for extracting key information from the drug image based on the information category to determine the drug identifier of the target drug. Through this method, this application can determine the drug identifier using optical character recognition technology and named entity recognition methods, improving the accuracy of drug identifier identification; it can also determine the drug identifier by scanning a code, offering fast recognition speed and high accuracy; and it can determine the drug identifier based on the drug's appearance, enabling the identification of the drug even when the packaging is lost, thus expanding the application scenarios of this application.
[0087] In some embodiments of this application, the process of step S4, obtaining a drug knowledge base for characterizing the interactions between different drugs and the effects of drugs on diseases, is described in detail below: S40. Obtain the drug category, therapeutic effect, ingredient information, disease improvement information, disease exacerbation risk information, all drug incompatibilities, and the risk level corresponding to each drug incompatibility; wherein, the drug category is used to characterize the disease relief mechanism of the corresponding drug.
[0088] Specifically, information such as drug category, generic name, brand name, therapeutic effect, ingredient information, disease improvement information, disease exacerbation risk information, adverse reactions, usage guidelines, all contraindications, and the risk level corresponding to each contraindication can be obtained from databases such as the National Medical Products Administration, drug instructions, and medical literature.
[0089] High-risk incompatibilities indicate prohibited combinations; medium-risk incompatibilities indicate combinations to be used with caution; and low-risk incompatibilities indicate combinations that require careful use.
[0090] The drug knowledge base can be updated according to the update frequency of the National Medical Products Administration.
[0091] Among them, drug categories can be used to characterize the disease relief mechanism of the corresponding drug, for example, drug.
[0092] S41. Construct a drug knowledge base based on the drug category, therapeutic effect, ingredient information, disease improvement information, disease exacerbation risk information, all drug incompatibilities, and the risk level corresponding to each drug incompatibility.
[0093] Specifically, the drug category, therapeutic effect, ingredient information, disease improvement information, disease exacerbation risk information, all drug incompatibilities, and the risk level corresponding to each incompatibility can be converted into a drug knowledge graph.
[0094] The graph database Neo4j can be used to store drug relationships.
[0095] The drug knowledge graph contains drug nodes such as generic name, brand name, ingredients, etc., and disease nodes such as disease name, ICD code, etc., as well as different relationships.
[0096] Relationships can include interactions between different drugs, such as risk levels, mechanisms, clinical manifestations and treatment recommendations; relationships between drugs and diseases, such as causes and risks; and relationships between drugs and their components.
[0097] As can be seen from the above technical solution, this embodiment provides an optional method for obtaining a drug knowledge base to characterize the interactions between different drugs and the effects of drugs on diseases. This method allows for a better aggregation of commonly used drugs both domestically and internationally, improving the effectiveness of the drug knowledge base.
[0098] In some embodiments of this application, the process of determining whether the medication administration plan needs to be adjusted by combining the drug identifier and the drug knowledge base is described in detail, and the steps are as follows: S50. Extract from the drug knowledge base information the incompatibilities, target drug categories, ingredient information and disease exacerbation risk information of each target drug that matches the drug identifier.
[0099] Specifically, drug labels can be used to find information on specific drug incompatibilities, drug categories, ingredients, and disease exacerbation risks.
[0100] Among them, the disease exacerbation risk information refers to diseases that will worsen after taking the target drug.
[0101] For example, aspirin may trigger an asthma attack, and anticholinergic drugs may increase intraocular pressure and worsen glaucoma.
[0102] S51. Extract all first-contraindicated drugs whose corresponding risk levels exceed the preset threshold from the incompatibilities information of each target.
[0103] Specifically, all drugs with a risk level of medium or higher can be extracted from the incompatibilities information of each target and designated as the first contraindicated drugs.
[0104] The first contraindicated drug is one that, when used in combination with the target drug, may lead to serious consequences, such as poisoning and severe bleeding.
[0105] For example, using warfarin and aspirin together may cause serious bleeding. Using antihypertensive drugs with ibuprofen may affect their blood pressure-lowering effect.
[0106] When the target drug is warfarin, aspirin can be considered the first contraindicated drug.
[0107] When the target drug is an antihypertensive drug, ibuprofen can be considered the first contraindicated drug.
[0108] S52. Determine the disease information and allergens of the person taking the medication.
[0109] Specifically, the user's medical information and allergens can be identified from the user's information.
[0110] S53. Determine whether there is any target disease in the disease information that matches the disease exacerbation risk information and whether there is any component in the allergy component that matches the component information. If yes, then determine that there is no need to adjust the medication plan; if no, then proceed to step S54.
[0111] Specifically, disease information can be analyzed to determine whether any target disease in the disease information matches the disease exacerbation risk information, and allergens can be analyzed to determine whether any allergen matches the component information.
[0112] For example, amoxicillin contains penicillin, and if the person taking it is allergic to penicillin, then the ingredient information is matched.
[0113] If the disease exacerbation risk information and / or component information are matched, it can be determined that no adjustment to the medication administration plan is required; If there is no match, step S54 can be executed.
[0114] S54. Determine that the medication administration plan contains a planned drug consistent with the target drug category and / or any first contraindicated drug; if it contains such a drug, determine that the medication administration plan does not need to be adjusted; if it does not contain such a drug, determine that the medication administration plan needs to be adjusted.
[0115] Specifically, it can determine the drug category of each planned drug in the medication plan and determine whether each planned drug category is consistent with the target drug category.
[0116] For example, the planned medication is Tylenol and the target medication is Panadol. Both Tylenol and Panadol belong to the antipyretic and analgesic class of drugs, which are in the same category. Both the planned medication and the target drug are antihypertensive drugs, belonging to the same category.
[0117] Determine whether the medication regimen includes a first contraindicated drug. Taking this first contraindicated drug concurrently with the target drug may lead to higher risks such as poisoning, reduced antihypertensive effect, and high blood pressure.
[0118] As can be seen from the above technical solution, this embodiment provides an optional method for determining whether the medication regimen needs to be adjusted by combining the drug identifier and the drug knowledge base. This method can better monitor new drug additions and avoid medication safety issues caused by arbitrarily adding drugs to the medication regimen.
[0119] In some embodiments of this application, the process of updating the drug administration plan based on the drug identifier and the drug knowledge base is described in detail, and the steps are as follows: S60. Extract all second contraindicated drugs whose corresponding risk level is lower than the threshold level from the incompatibilities information of each target.
[0120] Specifically, each drug with a low risk level can be extracted from the incompatibilities information of each target as a second contraindicated drug.
[0121] The second contraindicated drug can be any drug that may have a mild effect when taken with the target drug, such as reduced drug absorption efficiency.
[0122] S61. Determine whether there is any second contraindicated drug in the medication administration plan; if yes, proceed to step S62; if no, proceed to step S63.
[0123] Specifically, it can detect whether there is a second contraindicated drug in the medication plan. If there is, step S62 can be executed; if not, step S63 can be executed.
[0124] S62. Determine the interval between the second contraindicated drug and the target drug; update the drug administration plan based on the interval.
[0125] Specifically, the target drug could be calcium supplements, and the second contraindicated drug could be antibiotics. However, taking calcium supplements and antibiotics simultaneously may affect absorption. Therefore, the interval between taking the target drug and the second contraindicated drug can be determined based on a drug knowledge base.
[0126] The medication administration plan is updated based on the interval between doses and the drug knowledge base.
[0127] S63. Based on the drug knowledge base, determine the dosage guidelines for the target drug; based on the dosage guidelines, update the drug dosage plan.
[0128] Specifically, the medication administration plan can be updated based on the target drug's administration guidelines and the user information of the recipient.
[0129] As can be seen from the above technical solution, this embodiment provides an optional method for updating the medication administration plan based on the drug identifier and the drug knowledge base. This method allows for the staggered administration of target drugs with weak interactions from the planned drugs in the original medication administration plan, thereby reducing medication safety risks while still meeting disease treatment requirements.
[0130] Furthermore, a calendar view, timeline view, or medication card can be used to display the medication schedule, making it easier for the user to take their medication on time.
[0131] Next, we will combine Figure 2 This application provides a detailed description of the home medication management device. The home medication management device described below can be compared with the home medication management method described above.
[0132] See Figure 2 It can be observed that home medication management devices may include: The drug image acquisition module 10 is used to acquire the drug image of the target drug in response to the operation of the home user uploading the drug image; The drug image analysis module 20 is used to analyze the drug image and determine the drug identifier of the target drug; The target user determination module 30 is used to determine the target user of the target drug and to determine the drug administration plan for the target user; The drug knowledge base acquisition module 40 is used to acquire a drug knowledge base that characterizes the interaction relationships between different drugs and the effects of drugs on diseases. The medication administration plan determination module 50 is used to determine, by combining the drug identifier and the drug knowledge base, whether the medication administration plan needs to be adjusted; if so, the medication administration plan update module is called; if not, it is called. The medication administration plan update module 60 is used to update the medication administration plan based on the drug identifier and the drug knowledge base; The exception alert generation module 70 is used to generate exception alerts.
[0133] Furthermore, the drug image analysis module 20 may include: An information category determination unit is used to determine the information category of the drug image; The drug identification unit is used to extract key information from the drug image based on the information category and determine the drug identification of the target drug.
[0134] Furthermore, the drug identification unit may include: The first drug identification subunit is used to extract text information from the drug image based on optical character recognition technology and extract the drug identifier from the text information using named entity recognition method if the information category is a drug instruction manual. The second drug identification subunit is used to scan the drug image to identify the drug identifier of the target drug if the information category is a barcode. The third drug identification subunit is used to extract texture features, appearance features and / or character features from the drug image if the information category is a finished drug image, classify the drug image, and generate a drug identification for the drug image.
[0135] Furthermore, the drug knowledge base acquisition module 40 may include: The first drug knowledge base acquisition unit is used to acquire the drug category, therapeutic effect, ingredient information, disease improvement information, disease exacerbation risk information, all drug incompatibilities, and the risk level corresponding to each drug incompatibility; wherein, the drug category is used to characterize the disease relief mechanism of the corresponding drug; The second drug knowledge base acquisition unit is used to construct a drug knowledge base based on the drug category, therapeutic effect, ingredient information, disease improvement information, disease exacerbation risk information, all drug incompatibilities, and the risk level corresponding to each drug incompatibility.
[0136] Furthermore, the medication administration plan determination module 50 may include: The information extraction unit is used to extract from the drug knowledge base information on each target drug incompatibility, target drug category, ingredient information and disease exacerbation risk information that match the drug identifier. The first contraindicated drug extraction unit is used to extract all first contraindicated drugs whose corresponding risk levels exceed a preset threshold from each target incompatibility information; A disease information determination unit is used to determine the disease information and allergens of the patient. The target disease matching unit is used to determine whether there is any target disease in the disease information that matches the disease exacerbation risk information and whether there is any component in the allergy components that matches the component information. If yes, it is determined that the medication plan does not need to be adjusted; if no, the first contraindicated drug identification unit is invoked. The first contraindicated drug identification unit is used to determine whether the medication administration plan contains a planned drug that is consistent with the target drug category and / or any first contraindicated drug; if it contains such a drug, it is determined that no adjustment to the medication administration plan is needed; if it does not contain such a drug, the adjustment determination unit is invoked. An adjustment determination unit is used to determine whether the medication administration plan needs to be adjusted.
[0137] Furthermore, the medication administration plan update module 60 may include: The first drug administration plan update unit is used to extract all second contraindicated drugs whose corresponding risk level is lower than the level threshold from each target incompatibility information; The second medication administration plan update unit is used to determine whether there is any second contraindicated drug in the medication administration plan; if so, the third medication administration plan update unit is invoked; if not, the fourth medication administration plan update unit is invoked. The third medication administration plan update unit is used to determine the interval between the second contraindicated drug and the target drug; and to update the medication administration plan based on the interval. The fourth medication administration plan update unit is used to determine the administration guidelines for the target drug based on the drug knowledge base, and to update the medication administration plan based on the administration guidelines.
[0138] The home medication management device provided in this application embodiment can be applied to home medication management devices, such as PC terminals, cloud platforms, servers, and server clusters. Optionally, Figure 3 The hardware structure block diagram of the home medication management device is shown below. Figure 3 The hardware structure of a home medication management device may include: at least one processor 1, at least one communication interface 2, at least one memory 3, and at least one communication bus 4; In this embodiment of the application, the number of processor 1, communication interface 2, memory 3, and communication bus 4 is at least one, and processor 1, communication interface 2, and memory 3 communicate with each other through communication bus 4; Processor 1 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. Memory 3 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk storage device; The memory stores a program, which the processor can call. The program is used for: In response to a home user uploading a drug image, obtain the drug image of the target drug; The drug image is analyzed to determine the drug identifier of the target drug; Identify the target patients for the drug and determine the drug administration plan for the target patients; To acquire a drug knowledge base for characterizing the interactions between different drugs and the effects of drugs on diseases; Based on the drug label and the drug knowledge base, determine whether the drug administration plan needs to be adjusted. If so, the medication administration plan is updated based on the drug identifier and the drug knowledge base; If not, an exception alert will be generated.
[0139] Optionally, the refined and extended functions of the program can be referred to the above description.
[0140] This application embodiment also provides a readable storage medium that can store a program suitable for execution by a processor, the program being used for: In response to a home user uploading a drug image, obtain the drug image of the target drug; The drug image is analyzed to determine the drug identifier of the target drug; Identify the target patients for the drug and determine the drug administration plan for the target patients; To acquire a drug knowledge base for characterizing the interactions between different drugs and the effects of drugs on diseases; Based on the drug label and the drug knowledge base, determine whether the drug administration plan needs to be adjusted; If so, the medication administration plan is updated based on the drug identifier and the drug knowledge base; If not, an exception alert will be generated.
[0141] Optionally, the refined and extended functions of the program can be referred to the above description.
[0142] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0143] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0144] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. The various embodiments of this application can be combined with each other. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for managing home medication, characterized in that, include: In response to a home user uploading a drug image, obtain the drug image of the target drug; The drug image is analyzed to determine the drug identifier of the target drug; Identify the target patients for the drug and determine the drug administration plan for the target patients; To acquire a drug knowledge base for characterizing the interactions between different drugs and the effects of drugs on diseases; Based on the drug label and the drug knowledge base, determine whether the drug administration plan needs to be adjusted; If so, the medication administration plan is updated based on the drug identifier and the drug knowledge base; If not, an exception alert will be generated.
2. The home medication management method according to claim 1, characterized in that, Analyzing the drug image to determine the drug identifier of the target drug includes: Determine the information category of the drug image; Based on the information category, key information is extracted from the drug image to determine the drug identifier of the target drug.
3. The method for managing home medication according to claim 2, characterized in that, The step of extracting key information from the drug image based on the information category to determine the drug identifier of the target drug includes: If the information category is a drug instruction manual, then based on optical character recognition technology, text information is extracted from the drug image, and named entity recognition method is used to extract the drug identifier from the text information; And / or, If the information category is a barcode, then the drug image is scanned and identified to determine the drug identifier of the target drug; And / or, If the information category is a finished drug image, then the texture features, appearance features and / or character features of the drug image are extracted, the drug image is classified, and a drug identifier for the drug image is generated.
4. The home medication management method according to claim 1, characterized in that, The acquisition of a drug knowledge base for characterizing the interactions between different drugs and the effects of drugs on diseases includes: For each drug, obtain its drug category, therapeutic effect, ingredient information, disease improvement information, disease exacerbation risk information, all drug incompatibilities, and the risk level corresponding to each incompatibility; wherein, the drug category is used to characterize the disease relief mechanism of the corresponding drug; A drug knowledge base is constructed based on the drug category, therapeutic effect, ingredient information, disease improvement information, disease exacerbation risk information, all drug incompatibilities, and the risk level corresponding to each incompatibility.
5. The home medication management method according to claim 4, characterized in that, The step of determining whether the medication administration plan needs to be adjusted by combining the drug label and the drug knowledge base includes: Extract from the drug knowledge base information the incompatibilities, target drug categories, ingredient information, and disease exacerbation risk information of each target drug that matches the drug identifier; Extract all first-contraindicated drugs whose risk level exceeds a preset threshold from the information on incompatibilities of each target; Determine the disease information and allergens of the target patient; Determine whether any target disease in the disease information matches the disease exacerbation risk information and whether any allergen matches the component information. If so, determine that the medication plan does not need to be adjusted. If not, it is determined that the medication regimen contains a planned drug consistent with the target drug category and / or any first contraindicated drug; if it does, it is determined that no adjustment to the medication regimen is required. If it does not exist and is not included, then it is determined that the medication administration plan needs to be adjusted.
6. The method for managing home medication according to claim 5, characterized in that, The updating of the medication administration plan based on the drug identifier and the drug knowledge base includes: Extract all second contraindicated drugs whose corresponding risk level is lower than the threshold value from the information on incompatibilities of each target drug; Determine whether any second contraindicated drug exists in the medication administration plan; If so, determine the interval between the second contraindicated drug and the target drug; update the drug administration plan based on the interval. If not, then based on the drug knowledge base, determine the dosage guidelines for the target drug; based on the dosage guidelines, update the drug dosage plan.
7. The method for managing home medication according to any one of claims 1-6, characterized in that, After generating the exception alert, the following is also included: Send an anomaly alert to the wearable device so that the wearable device can vibrate to remind it.
8. A home medication management device, characterized in that, include: The drug image acquisition module is used to respond to the operation of home users uploading drug images and acquire drug images of the target drug; A drug image analysis module is used to analyze the drug image and determine the drug identifier of the target drug; The target user determination module is used to determine the target user of the target drug and to determine the drug administration plan for the target user. The drug knowledge base acquisition module is used to acquire a drug knowledge base that characterizes the interactions between different drugs and the effects of drugs on diseases. The medication administration plan determination module is used to combine the drug identifier and the drug knowledge base to determine whether the medication administration plan needs to be adjusted; if so, the medication administration plan update module is called; if not, it is called. The medication administration plan update module is used to update the medication administration plan based on the drug identifier and the drug knowledge base; The exception alert generation module is used to generate exception alerts.
9. A home medication management device, characterized in that, Including memory and processor; The memory is used to store programs; The processor is configured to execute the program to implement each step of the home medication management method as described in any one of claims 1-7.
10. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements each step of the home medication management method as described in any one of claims 1-7.