Dry eye disease emergency medical treatment prompting method and system based on machine learning
Through the emergency medical reminder system based on machine learning, the patient's symptom description is analyzed to determine whether emergency medical treatment is needed, which solves the timely problem of diagnosis and treatment of dry eye disease and ensures the patient's eye safety and the accuracy of treatment.
Patent Information
- Application Number
- CN202410685677.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-08-23
AI Technical Summary
Dry eye syndrome is caused by a variety of factors, and it is difficult to diagnose and treat it in a timely manner with existing technology. The best opportunity for treatment may be missed, causing harm to the patient's eyes.
Using emergency medical prompting methods and systems based on machine learning, patients' symptom descriptions are obtained through large models to form question clusters, and machine learning classification algorithms and reinforcement learning frameworks are used to predict and cluster the degree of emergency medical treatment to determine whether emergency medical treatment is needed.
Ensure patients can seek medical treatment in time, ensure eye safety, relieve anxiety when symptoms are not obvious, and improve the accuracy and timeliness of diagnosis and treatment.
Smart Images

Figure CN118538414A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of dry eye disease, and in particular to a method and system for prompting emergency medical treatment for dry eye disease based on machine learning. Background Art
[0002] Dry eye is a chronic ocular surface disease caused by multiple factors. It is caused by abnormalities in tear quality, quantity and dynamics, leading to unstable tear film or imbalance of ocular surface microenvironment. It may be accompanied by ocular surface inflammatory reaction, tissue damage and nerve abnormalities, causing a variety of ocular discomfort symptoms and visual dysfunction. The latest dry eye expert consensus in my country has managed dry eye as a chronic disease for the first time. Since dry eye may be caused by a variety of different factors, if dry eye is not diagnosed and treated in time, the best treatment opportunity may be missed, causing greater harm to the patient's eyes. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a dry eye emergency medical reminder method and system based on machine learning, an electronic device, and a storage medium, which can judge the degree of emergency medical treatment according to the patient's symptom description, and ensure that the patient can seek medical treatment in time.
[0004] On the one hand, according to an embodiment of the present invention, a method for prompting emergency medical treatment for dry eye based on machine learning comprises the following steps:
[0005] Obtain symptom descriptions from users through the large model;
[0006] Analyze the symptom descriptions to form question clusters;
[0007] Classify and predict the query cluster based on a machine learning classification algorithm to obtain a first emergency medical level;
[0008] Clustering the query clusters into multiple classes based on machine learning;
[0009] Calculate the second level of emergency medical attention for each category;
[0010] A third emergency medical treatment level is calculated based on the second emergency medical treatment level of each category;
[0011] It is determined whether the user needs emergency medical treatment based on the first emergency medical treatment level and the third emergency medical treatment level.
[0012] According to some embodiments of the present invention, the step of analyzing the symptom description to form a query cluster includes:
[0013] According to the punctuation marks in the symptom description, the symptom description is broken down into multiple questions;
[0014] A query cluster is formed according to the multiple queries.
[0015] According to some embodiments of the present invention, the step of performing classification prediction on the query cluster based on a machine learning classification algorithm to obtain a first emergency medical treatment level includes:
[0016] Obtaining frequency words in the text data of the query cluster, and marking the degree of emergency medical treatment of the text data according to the frequency words and the OSDI scale;
[0017] Using a pre-trained Transformer model, extract a first feature from the text data to obtain a first feature representation vector for each of the text data;
[0018] Design a reinforcement learning framework and treat the text data classification task as a reinforcement learning problem;
[0019] Under the reinforcement learning framework, the Transformer model is trained to learn the mapping relationship from the first feature representation vector to the emergency medical decision through interaction with the environment;
[0020] Using the validation set to evaluate the performance of the Transformer model, and optimizing the Transformer model according to the evaluation results;
[0021] The optimized Transformer model is applied to classification prediction to obtain the first emergency medical treatment level.
[0022] According to some embodiments of the present invention, after the step of designing a reinforcement learning framework and treating the text data classification task as a reinforcement learning problem, the step further includes:
[0023] For the reinforcement learning framework, multiple elements are defined; the multiple elements include state, action and reward, the state represents the first feature representation vector of each text data, the action represents the decision used to decide whether the text data requires emergency medical treatment, and the reward represents reward or punishment based on the prediction result and actual label judgment of the Transformer model to guide the Transformer model to learn the correct decision-making strategy.
[0024] According to some embodiments of the present invention, the step of clustering the query clusters into multiple classes based on machine learning includes:
[0025] Performing a preprocessing operation on the text data of the query cluster; the preprocessing operation includes but is not limited to cleaning, word segmentation and removal of stop words;
[0026] Performing second feature extraction on the text data to obtain a second feature representation vector for each of the text data;
[0027] Determine an optimal number of clusters, and use the optimal number of clusters to train a clustering model for the second feature representation vector of the text data;
[0028] Clustering is performed using the trained clustering model.
[0029] According to some embodiments of the present invention, the step of determining the optimal number of clusters includes:
[0030] Clustering the text data using a preset machine learning clustering algorithm for different cluster numbers;
[0031] For each of the number of clusters, calculate the sum of the squared distances from the data point to the center of the cluster to which it belongs;
[0032] A relationship diagram between the number of clusters and the sum is drawn to find the distance difference inflection point, and the number of clusters corresponding to the distance difference inflection point is used as the optimal number of clusters.
[0033] According to some embodiments of the present invention, after the step of training the text data with the optimal number of clusters, the method further includes:
[0034] Interpret and analyze the clustering results, examine the content of each cluster, and determine whether there are meaningful clustering groups;
[0035] The clustering model was evaluated using a variety of metrics to ensure the quality and interpretability of the clustering results.
[0036] On the other hand, the dry eye emergency medical reminder system based on machine learning according to an embodiment of the present invention includes:
[0037] An acquisition module is used to acquire the symptom description proposed by the user through the large model;
[0038] An analysis module, used for analyzing the symptom description to form a query cluster;
[0039] A classification module, used for classifying and predicting the query cluster based on a machine learning classification algorithm to obtain a first emergency medical degree;
[0040] A clustering module, used for clustering the query clusters into multiple classes based on machine learning;
[0041] A first calculation module is used to calculate the second emergency medical treatment level of each category;
[0042] A second calculation module is used to calculate a third emergency medical treatment level according to the second emergency medical treatment level of each category;
[0043] The judgment module is used to judge whether the user needs emergency medical treatment according to the first emergency medical treatment level and the third emergency medical treatment level.
[0044] On the other hand, an electronic device according to an embodiment of the present invention includes:
[0045] A memory for storing program instructions;
[0046] The processor is used to call the program instructions stored in the memory and execute the dry eye emergency medical reminder method based on machine learning in the above embodiment according to the obtained program instructions.
[0047] On the other hand, according to the storage medium of an embodiment of the present invention, the storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the dry eye emergency medical reminder method based on machine learning described in the above embodiment.
[0048] The dry eye emergency medical reminder method and system, electronic device, and storage medium based on machine learning according to the embodiments of the present invention have at least the following beneficial effects: it is able to analyze the symptom description proposed by the user through a large model to determine whether the user needs emergency medical treatment, thereby ensuring that the user can seek medical treatment in time to ensure the safety of the eyes, or to relieve the user's anxiety when the symptoms are not serious.
[0049] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0051] Figure 1 This is a flowchart of the steps of a method for prompting emergency medical treatment for dry eye based on machine learning in an embodiment of the present invention. DETAILED DESCRIPTION
[0052] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limitations on the present application. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0053] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0054] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present invention and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0055] Reference to "embodiments" in the present invention means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0056] Dry eye is a chronic ocular surface disease caused by multiple factors. It is caused by abnormalities in tear quality, quantity and dynamics, leading to unstable tear film or imbalance of ocular surface microenvironment. It may be accompanied by ocular surface inflammatory reaction, tissue damage and nerve abnormalities, causing a variety of ocular discomfort symptoms and visual dysfunction. The latest dry eye expert consensus in my country has managed dry eye as a chronic disease for the first time. Since dry eye may be caused by a variety of different factors, if dry eye is not diagnosed and treated in time, the best treatment opportunity may be missed, causing greater harm to the patient's eyes.
[0057] To this end, the embodiments of the present invention provide a dry eye emergency medical reminder method and system, electronic device, and storage medium based on machine learning, which can analyze the symptom description proposed by the user through a large model to determine whether the user needs emergency medical treatment, thereby ensuring that the user can seek medical treatment in time to ensure the safety of the eyes, or relieve the user's anxiety when the symptoms are not obvious.
[0058] The following describes in detail the dry eye emergency medical reminder method and system, electronic device, and storage medium based on machine learning according to an embodiment of the present invention in conjunction with the accompanying drawings.
[0059] On the one hand, the embodiment of the present invention proposes a method for prompting emergency medical treatment for dry eye based on machine learning, such as Figure 1 As shown, the method comprises the following steps:
[0060] Step S100: obtaining the symptom description proposed by the user through the large model;
[0061] It should be noted that the big model here can refer to Chinese big models such as Wenxinyiyan, or some existing common English big models, etc. The user first describes his or her symptoms in the big model so that the big model can analyze them.
[0062] Step S200: Analyze the symptom description to form a query cluster;
[0063] Specifically, the symptom description may be decomposed into multiple questions according to punctuation marks (such as commas, periods, or question marks, etc.) in the symptom description, and then a question cluster U may be formed based on the multiple questions.
[0064] Step S300: classify and predict the query cluster based on the machine learning classification algorithm to obtain the first emergency medical treatment level;
[0065] When the large model uses the machine learning classification algorithm to classify and predict the query cluster U, if the predicted result of a certain category is the degree of emergency medical treatment, then its score value is L i =1; if the prediction result is that no emergency medical treatment is needed, then its score is L i =-1, then the first emergency medical level is:
[0066]
[0067] Where i is a positive integer, representing the i-th category after the query cluster U is classified; P i The large model judges that the score of this class is L i possibility.
[0068] Furthermore, the above step S300 includes the following six sub-steps:
[0069] (1) obtaining frequency words in the text data of the query cluster, and marking the degree of emergency medical treatment in the text data according to the frequency words and the OSDI scale;
[0070] (2) Using the pre-trained Transformer model, extract the first feature of the text data to obtain the first feature representation vector of each text data;
[0071] (3) Design a reinforcement learning framework and treat the text data classification task as a reinforcement learning problem;
[0072] (4) Under the reinforcement learning framework, the Transformer model is trained to learn the mapping relationship from the first feature representation vector to the emergency medical decision through interaction with the environment;
[0073] (5) Use the validation set to evaluate the performance of the Transformer model and optimize the Transformer model based on the evaluation results;
[0074] (6) Apply the optimized Transformer model to classify and predict the query clusters to obtain the first level of emergency medical treatment.
[0075] First, based on the OSDI scale (Ocular Surface Disease Index scale, which is mainly used to screen patients with dry eyes and can assess the severity of dry eyes), the symptoms and frequencies mentioned in the scale are automatically combined, and then the text data is analyzed. Text data that contains and only contains frequency words in the OSDI scale (such as "never" and "occasionally") are marked as not requiring emergency medical treatment, and other situations are marked as requiring emergency medical treatment. For example, the text data is "I never / occasionally have dry and swollen eyes in an air-conditioned room", and the frequency words "never" or "occasionally" are extracted, and the text data is marked as not requiring emergency medical treatment. The text data is "I often / always / always have dry and swollen eyes in an air-conditioned room", and the frequency words "often", "always" or "always" are extracted, and it is marked as requiring emergency medical treatment. The text data is "I have dry eyes in an air-conditioned room", because the frequency words are extracted, it does not contain "never" or "occasionally", and it is marked as requiring emergency medical treatment. The text data is "I never have dry eyes in an air-conditioned room, but my eyes are always red and swollen when I'm outdoors in the wind." According to the punctuation mark "," the sentence is divided into two: (a) I never have dry eyes in an air-conditioned room; (b) I always have red eyes when I'm outdoors in the wind. They are respectively judged as (a) no need for emergency medical treatment; (b) emergency medical treatment is required. As long as one of them requires emergency medical treatment, the whole sentence is marked as requiring emergency medical treatment. It should be noted that the text data can also be pre-processed by cleaning, word segmentation and other operations to facilitate the analysis of the text data.
[0076] After marking the text data, the pre-trained Transformer model (which can be used but not limited to BERT and other models, the Transformer model is a deep learning model architecture for natural language processing and other sequence-to-sequence tasks) is used to extract features from the text data to obtain the first feature representation vector of each text. Then, a reinforcement learning framework is designed to regard the classification task of text data as a reinforcement learning problem, and multiple elements such as state, action, and reward are defined for the reinforcement learning framework. The state represents the first feature representation vector of each text data, the action represents the decision used to decide whether the text data needs emergency medical treatment, and the reward represents the reward or punishment given according to the prediction result of the Transformer model and the actual label judgment, so as to guide the Transformer model to learn the correct decision-making strategy. The reinforcement learning framework can select appropriate reinforcement learning algorithms, such as Q-learning, Deep Q-Network (DQN), Policy Gradient, etc., for training models. Under the reinforcement learning framework, through interaction with the environment, the training model learns the mapping relationship from text features to emergency medical treatment decisions. In addition, the validation set can be used to evaluate the model performance and the model can be tuned based on the evaluation results, including adjusting the model hyperparameters and optimizing the reinforcement learning algorithm. Finally, the trained model is applied to the actual text data to achieve the automatic classification of emergency medical treatment for dry eye. The model can be deployed to platforms such as mobile applications and medical information systems to provide users with personalized health management and medical advice. By combining reinforcement learning and the Transformer model, the text data classification task can be effectively processed to achieve automatic identification and classification of emergency medical treatment for dry eye.
[0077] Step S400: clustering the query clusters into multiple classes based on machine learning;
[0078] Furthermore, the above step S400 includes the following four steps:
[0079] (1) Preprocessing the text data of the query cluster; the preprocessing operations include but are not limited to cleaning, word segmentation, and removal of stop words to facilitate learning and processing by the clustering model.
[0080] (2) Extract the second feature of the text data to obtain the second feature representation vector of each text data; use the bag-of-words model, TF-IDF vectorization and other technologies to convert the text data into the second feature representation vector for clustering model processing.
[0081] (3) Determine the optimal number of clusters, and use the optimal number of clusters to train the clustering model for the second feature representation vector of the text data; when clustering, select a machine learning clustering algorithm suitable for text data clustering, such as K-means clustering, hierarchical clustering, DBSCAN, etc. Selection of the number of clusters: Use the distance difference inflection point method (Elbow Method) to determine the optimal number of clusters: For different numbers of clusters (for example, from 2 to n), use the preset machine learning clustering algorithm to cluster the text data, and for each number of clusters, calculate the sum of the squared distances (SSE, Sum of Squared Errors) from the data point to the center of the cluster to which it belongs; draw a relationship between the number of clusters and the sum (SSE), find the distance difference inflection point (that is, the point where the SSE no longer decreases significantly), and use the number of clusters corresponding to the distance difference inflection point as the optimal number of clusters.
[0082] (4) Use the trained clustering model to cluster the query clusters into multiple classes.
[0083] After clustering, interpret and analyze the clustering results, check the content of each cluster to determine whether there are meaningful clustering groups, and adjust and optimize the clustering results if necessary; use a variety of indicators (such as silhouette coefficient, Calinski-Harabasz index, etc.) to evaluate the clustering model to ensure the quality and interpretability of the clustering results. Apply the trained clustering model to actual data and adjust and optimize it as needed. The model can be integrated into applications, systems, or services to provide personalized services and support. Through the above steps, machine learning can be used to cluster user questions, and the optimal number of clusters can be determined by the distance difference inflection point method, so as to better understand user questions and provide relevant support.
[0084] If the user describes the symptoms in English, the symptom description is entered into the chat box of the English big model, and the big model outputs the answer; if the user describes the symptoms in Chinese, the symptom description is entered into the chat box of the Chinese big model, and the big model outputs the answer. Examples of the Chinese and English big models are shown in the following table:
[0085]
[0086]
[0087] The large model outputs how long it takes to see a doctor. If emergency medical treatment is needed (emergency medical treatment is required within 1 week), the answer is directly that emergency medical treatment is needed (i.e. L j =1); if no emergency medical treatment is needed (no emergency medical treatment is needed for more than 1 week), then directly answer no emergency medical treatment is needed (i.e. L j =-1).
[0088] Step S500: Calculate the second emergency medical treatment level of each category;
[0089] Assume that after clustering the query cluster, it is clustered into m classes, and these m classes are recorded as C1, C2, ..., C m , m is a positive integer. Then the second emergency medical treatment level of each category is:
[0090]
[0091] Where j is a positive integer, which represents the jth class after clustering the query cluster U; P j The large model judges that the score of this class is L j possibility.
[0092] Step S600: Calculate the third emergency medical level according to the second emergency medical level of each category;
[0093] The calculation formula for the third level of emergency medical treatment is:
[0094]
[0095] Step S700: Determine whether the user needs emergency medical treatment based on the first emergency medical treatment level and the third emergency medical treatment level.
[0096] The average of the first emergency medical treatment level and the third emergency medical treatment level is taken as the emergency medical treatment score. If the emergency medical treatment score is [-1, 0], emergency medical treatment is not required; if the emergency medical treatment score is [0, 1], emergency medical treatment is required.
[0097] According to the dry eye emergency medical treatment reminder method based on machine learning according to the embodiment of the present invention, the symptom description proposed by the user can be analyzed through a large model to determine whether the user needs emergency medical treatment, thereby ensuring that the user can seek medical treatment in time to ensure the safety of the eyes, or relieve the user's anxiety when the symptoms are not obvious.
[0098] On the other hand, the embodiment of the present invention also proposes a dry eye emergency medical reminder system based on machine learning, including:
[0099] An acquisition module is used to acquire the symptom description proposed by the user through the large model;
[0100] The analysis module is used to analyze the symptom description and form a query cluster;
[0101] A classification module is used to classify and predict the query clusters based on a machine learning classification algorithm to obtain the first emergency medical level;
[0102] The clustering module is used to cluster the query clusters into multiple classes based on machine learning;
[0103] A first calculation module is used to calculate the second emergency medical treatment level of each category;
[0104] A second calculation module is used to calculate a third emergency medical treatment level according to the second emergency medical treatment level of each category;
[0105] The judgment module is used to judge whether the user needs emergency medical treatment according to the first emergency medical treatment level and the third emergency medical treatment level.
[0106] It should be noted that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0107] On the other hand, an embodiment of the present invention further provides an electronic device, including:
[0108] A memory for storing program instructions;
[0109] The processor is used to call the program instructions stored in the memory and execute the above-mentioned dry eye emergency medical reminder method based on machine learning according to the obtained program instructions.
[0110] The processor may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0111] The memory can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory can store an operating system and other applications. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory, and the processor calls and executes the dry eye emergency medical reminder method based on machine learning in the embodiments of this application; the memory and the processor can be connected through a bus or the like.
[0112] On the other hand, an embodiment of the present invention further provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the above-mentioned machine learning-based emergency medical reminder method for dry eye syndrome is implemented.
[0113] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0114] Although specific embodiments are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are also within the scope of the present disclosure. For example, any of the functions and / or processing capabilities described in conjunction with a particular device or component may be performed by any other device or component. In addition, although various exemplary implementations and architectures have been described according to embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.
[0115] Some aspects of the present disclosure are described above with reference to the block diagram and flow chart of the system, method, system and / or computer program product according to the exemplary embodiments.It should be understood that the combination of one or more blocks in the block diagram and the flow chart and the blocks in the block diagram and the flow chart can be realized by executing computer executable program instructions respectively.Equally, according to some embodiments, some blocks in the block diagram and the flow chart may not need to be executed in the order shown, or may not need to be executed in full.In addition, additional components and / or operations beyond those components and / or operations shown in the blocks in the block diagram and the flow chart may be present in certain embodiments.
[0116] Therefore, the blocks in the block diagrams and flow charts support the combination of devices for performing the specified functions, the combination of elements or steps for performing the specified functions, and the program instruction devices for performing the specified functions. It should also be understood that each block in the block diagrams and flow charts and the combination of blocks in the block diagrams and flow charts can be implemented by a special-purpose hardware computer system or a combination of special-purpose hardware and computer instructions that performs a specific function, element or step.
[0117] The program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.
[0118] Software components can be encoded with any of various programming languages. An exemplary programming language can be a low-level programming language, such as an assembly language associated with a specific hardware architecture and / or an operating system platform. The software component comprising assembly language instructions may need to be converted to executable machine code by an assembler before being executed by hardware architecture and / or platform. Another exemplary programming language can be a higher-level programming language, which can be transplanted across multiple architectures. The software component comprising a higher-level programming language may need to be converted to an intermediate representation by an interpreter or a compiler before execution. Other examples of programming languages include but are not limited to macro languages, shells or command languages, job control languages, scripting languages, database queries or search languages or report writing languages. In one or more exemplary embodiments, the software component comprising the instruction of one of the above-mentioned programming language examples can be directly executed by an operating system or other software components, without first being converted into another form.
[0119] Software components may be stored as files or other data storage structures. Software components of similar type or related functions may be stored together, such as in a specific directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).
[0120] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.
Claims
1. A method for prompting emergency medical treatment for dry eye based on machine learning, characterized in that: The following steps are involved: Obtain symptom descriptions from users through the large model; Analyze the symptom descriptions to form question clusters; Classify and predict the query cluster based on a machine learning classification algorithm to obtain a first emergency medical level; Clustering the query clusters into multiple classes based on machine learning; Calculate the second level of emergency medical attention for each category; A third emergency medical treatment level is calculated based on the second emergency medical treatment level of each category; It is determined whether the user needs emergency medical treatment based on the first emergency medical treatment level and the third emergency medical treatment level.
2. The dry eye emergency medical reminder method based on machine learning according to claim 1, characterized in that: The step of analyzing the symptom description to form a question cluster includes: According to the punctuation marks in the symptom description, the symptom description is broken down into multiple questions; A query cluster is formed according to the multiple queries.
3. The dry eye emergency medical reminder method based on machine learning according to claim 1, characterized in that: The step of performing classification prediction on the query cluster based on a machine learning classification algorithm to obtain a first emergency medical treatment level includes: Obtaining frequency words in the text data of the query cluster, and marking the degree of emergency medical treatment of the text data according to the frequency words and the OSDI scale; Using a pre-trained Transformer model, extracting a first feature from the text data to obtain a first feature representation vector for each of the text data; Design a reinforcement learning framework and treat the text data classification task as a reinforcement learning problem; Under the reinforcement learning framework, the Transformer model is trained to learn a mapping relationship from the first feature representation vector to an emergency medical decision through interaction with the environment; Using the validation set to evaluate the performance of the Transformer model, and optimizing the Transformer model according to the evaluation results; The optimized Transformer model is applied to classification prediction to obtain the first emergency medical treatment level.
4. The dry eye emergency medical reminder method based on machine learning according to claim 3, characterized in that: After the step of designing a reinforcement learning framework and treating the text data classification task as a reinforcement learning problem, the following steps are also included: For the reinforcement learning framework, multiple elements are defined; the multiple elements include state, action and reward, the state represents the first feature representation vector of each text data, the action represents the decision used to decide whether the text data requires emergency medical treatment, and the reward represents reward or punishment based on the prediction result and actual label judgment of the Transformer model to guide the Transformer model to learn the correct decision-making strategy.
5. The dry eye emergency medical reminder method based on machine learning according to claim 1, characterized in that: The step of clustering the query clusters into multiple classes based on machine learning includes: Performing a preprocessing operation on the text data of the query cluster; the preprocessing operation includes but is not limited to cleaning, word segmentation and removal of stop words; Performing second feature extraction on the text data to obtain a second feature representation vector for each of the text data; Determine an optimal number of clusters, and use the optimal number of clusters to train a clustering model for the second feature representation vector of the text data; Clustering is performed using the trained clustering model.
6. The dry eye emergency medical reminder method based on machine learning according to claim 5, characterized in that: The step of determining the optimal number of clusters comprises: Clustering the text data using a preset machine learning clustering algorithm for different cluster numbers; For each of the number of clusters, calculate the sum of the squared distances from the data point to the center of the cluster to which it belongs; A relationship diagram between the number of clusters and the sum is drawn to find the distance difference inflection point, and the number of clusters corresponding to the distance difference inflection point is used as the optimal number of clusters.
7. The dry eye emergency medical reminder method based on machine learning according to claim 6, characterized in that: After the step of using the optimal number of clusters to train the clustering model for the text data, the method further includes: Interpret and analyze the clustering results, examine the content of each cluster, and determine whether there are meaningful clustering groups; The clustering model was evaluated using a variety of metrics to ensure the quality and interpretability of the clustering results.
8. A dry eye emergency medical reminder system based on machine learning, characterized in that: include: An acquisition module is used to acquire the symptom description proposed by the user through the large model; An analysis module, used for analyzing the symptom description to form a query cluster; A classification module, used for classifying and predicting the query cluster based on a machine learning classification algorithm to obtain a first emergency medical degree; A clustering module, used for clustering the query clusters into multiple classes based on machine learning; A first calculation module is used to calculate the second emergency medical treatment level of each category; A second calculation module is used to calculate a third emergency medical treatment level according to the second emergency medical treatment level of each category; The judgment module is used to judge whether the user needs emergency medical treatment according to the first emergency medical treatment level and the third emergency medical treatment level.
9. An electronic device, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the dry eye emergency medical reminder method based on machine learning according to any one of claims 1-7.
10. A storage medium, characterized in that: The storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the dry eye emergency medical reminder method based on machine learning according to any one of claims 1-7.
