Artificial intelligence-based epidemic investigation method, device, electronic equipment and medium
By conducting stream analysis and face recognition on the target user's video stream data, combined with the disease risk tree, and using a semi-supervised learning model, the problem of false information and timeliness in infectious disease epidemic investigation is solved, and more accurate risk judgment and Public health management.
Patent Information
- Application Number
- CN202111257942.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-10-27
AI Technical Summary
The existing technology for epidemic investigation of infectious diseases relies on manual inquiry. False information leads to inaccurate analysis and inability to detect patients in time, making it difficult to achieve early detection, early isolation, and early treatment, and may lead to the spread of the virus.
Using artificial intelligence-based methods, through stream analysis and processing of the target user's video stream data, facial feature data is extracted, face recognition is performed, user behavior trajectory is determined, trajectory risk value and disease risk value are calculated, and semi-supervised learning is input The model is used to determine risk labels and improve the accuracy and efficiency of epidemic investigation.
It improves the accuracy and efficiency of epidemic investigation, enables more accurate judgment of infectious disease risks, and promotes public health and safety management.
Smart Images

Figure CN113963413B
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and specifically to an artificial intelligence-based epidemic investigation method, device, electronic equipment and medium. Background Art
[0002] Infectious diseases are a type of disease caused by various pathogens that can be transmitted between people, animals, or between people and animals. Their infectiousness threatens human health. The traditional way of epidemic investigation is mainly manual inquiry, but the information obtained from the inquiry is not necessarily true, which leads to inaccurate analysis of the epidemic. Patients with the same infectious disease usually have similar symptoms, but the initial symptoms of many infectious diseases are similar to those of common diseases, so patients often do not realize that they have an infectious disease and think it is a common disease. They just take basic medicine at a clinic or pharmacy.
[0003] At present, clinics and pharmacies do not have reasonable means to detect whether patients have infectious diseases when they receive patients. They cannot timely discover the fact that patients have infectious diseases, making it difficult to achieve early detection, early isolation and early treatment. At the same time, failure to timely detect patients with infectious diseases will also lead to the further spread of infectious diseases and bring more losses. Summary of the invention
[0004] In view of the above, it is necessary to propose an epidemic investigation method, device, electronic device and medium based on artificial intelligence, which can realize epidemic investigation from two perspectives, namely, personal information of target users and user trajectory, thereby improving the accuracy of risk monitoring and thus improving the efficiency of epidemic investigation.
[0005] In a first aspect, the present application provides an epidemic investigation method based on artificial intelligence, the method comprising:
[0006] Performing stream analysis on the video stream data containing the target user to obtain facial feature data corresponding to the target user;
[0007] Performing face recognition based on the face feature data to determine a user behavior trajectory corresponding to the target user;
[0008] Based on the user behavior trajectory, determining multiple target trajectory points;
[0009] Retrieve the plurality of target trajectory points according to a preset retrieval task, and determine a target value corresponding to each of the target trajectory points; and determine a trajectory risk value corresponding to the target user based on the target value corresponding to each of the target trajectory points;
[0010] Determine a user disease corresponding to the target user, and determine a disease risk value corresponding to the target user based on a pre-constructed disease risk tree and the user disease;
[0011] The trajectory risk value and the disease risk value are input into a pre-trained semi-supervised learning model to obtain a risk label corresponding to the target user.
[0012] According to an optional implementation manner of the present application, performing stream analysis processing on the video stream data containing the target user to obtain facial feature data corresponding to the target user includes:
[0013] Serializing the video stream data containing the target user to obtain video frame data;
[0014] Buffering the video frame data in a fault-tolerant data queue;
[0015] The video frame data in the fault-tolerant data queue is consumed to obtain facial feature data corresponding to the target user.
[0016] According to an optional implementation of the present application, performing face recognition according to the face feature data to determine the user behavior trajectory corresponding to the target user includes:
[0017] Obtain a pre-built face recognition model, and determine a recognition range corresponding to the pre-built face recognition model;
[0018] Collect historical facial feature data corresponding to users within the recognition range;
[0019] Based on the collected historical facial feature data, the pre-built facial recognition model is trained to obtain a trained facial recognition model;
[0020] Inputting the facial feature data into the trained face recognition model to obtain the user identity corresponding to the target user;
[0021] Based on the user identity, a user behavior trajectory corresponding to the target user is determined.
[0022] According to an optional implementation of the present application, determining a plurality of target trajectory points based on the user behavior trajectory includes:
[0023] According to the user behavior trajectory, determining a trajectory route corresponding to the user behavior trajectory;
[0024] Based on the geographic coordinate system, determine a plurality of track points in the track route, and calculate the flow of people corresponding to each track point within a preset time interval;
[0025] If the human flow corresponding to a trajectory point within a preset time interval is greater than or equal to a preset human flow threshold, the trajectory point is determined as a target trajectory point.
[0026] According to an optional implementation of the present application, determining the disease risk value corresponding to the target user based on the pre-constructed disease risk tree and the user's disease includes:
[0027] Using a preset medical word library to process the user's symptom to obtain a plurality of symptom words;
[0028] Traversing a pre-constructed disease risk tree according to the multiple disease words, and determining a node corresponding to each of the disease words;
[0029] Determine a node value and a corresponding node level corresponding to each of the nodes;
[0030] Based on the node level and the node value, a disease risk value corresponding to the target user is determined.
[0031] According to an optional implementation of the present application, before traversing the pre-constructed disease risk tree according to the multiple disease words, the method further includes:
[0032] Acquire multiple patient cases corresponding to a target disease, and determine multiple disease characteristics based on the multiple patient cases;
[0033] Determine a plurality of first symptom phrases according to the plurality of symptom characteristics, each of the first symptom phrases having only one symptom characteristic;
[0034] Randomly select two disease characteristics from the plurality of disease characteristics to form a plurality of second disease phrases, each of which includes two disease characteristics;
[0035] Calculating the Gini index of each of the first disease word groups and each of the second disease word groups respectively, and determining a target word group in the first disease word groups and the second disease word groups based on the Gini index;
[0036] Based on the target phrase, a disease risk tree corresponding to the target disease is constructed.
[0037] According to an optional implementation of the present application, constructing a disease risk tree corresponding to the target disease based on the target phrase includes:
[0038] Determine the disease as the root node of the disease risk tree, take the disease feature corresponding to the target phrase as the first parent node, and perform a binary bifurcation process on the root node;
[0039] Determining, among the plurality of symptom features corresponding to the plurality of patient cases, a plurality of symptom features corresponding to the target phrase;
[0040] Based on the multiple disease characteristics corresponding to the target word group, determine multiple disease word groups, and calculate the Gini index of each of the disease word groups;
[0041] Based on the Gini index, the first parent node is subjected to a binary bifurcation process to obtain a constructed disease risk tree.
[0042] In a second aspect, the present application provides an epidemic investigation device based on artificial intelligence, the device comprising:
[0043] A feature extraction module is used to perform stream analysis on the video stream data containing the target user to obtain facial feature data corresponding to the target user;
[0044] A face recognition module, used to perform face recognition based on the face feature data and determine the user behavior trajectory corresponding to the target user;
[0045] A target determination module, used to determine a plurality of target trajectory points based on the user behavior trajectory;
[0046] A risk calculation module, used to search the multiple target trajectory points according to a preset search task, determine the target value corresponding to each of the target trajectory points; and determine the trajectory risk value corresponding to the target user based on the target value corresponding to each of the target trajectory points;
[0047] A disease matching module, used to determine the user disease corresponding to the target user, and determine the disease risk value corresponding to the target user based on a pre-built disease risk tree and the user disease;
[0048] The label generation module is used to input the trajectory risk value and the disease risk value into a pre-trained semi-supervised learning model to obtain a risk label corresponding to the target user.
[0049] In a third aspect, the present application provides an electronic device, comprising a processor and a memory, wherein the processor is used to implement the artificial intelligence-based epidemic investigation method when executing a computer program stored in the memory.
[0050] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the artificial intelligence-based epidemic investigation method is implemented.
[0051] In summary, the artificial intelligence-based epidemic investigation method, device, electronic device and medium described in the present application perform stream analysis processing on the video stream data containing the target user to extract the facial feature data corresponding to the target user. The stream analysis processing can improve the efficiency and accuracy of extracting the facial feature data; and perform face recognition based on the facial feature data to determine the user behavior trajectory corresponding to the target user; then determine a plurality of target trajectory points based on the user behavior trajectory; retrieve the plurality of target trajectory points respectively according to the preset retrieval tasks to determine the target value corresponding to each of the target trajectory points; and determine the trajectory risk value corresponding to the target user based on the target values respectively corresponding to the plurality of target trajectory points, and determine the target value based on the user behavior trajectory. Determining the trajectory risk value of the target user for multiple target trajectory points in the trajectory can make the determined trajectory risk value contain more information and improve the accuracy of the trajectory risk value; then determine the user disease corresponding to the target user, and determine the disease risk value corresponding to the target user based on the pre-constructed disease risk tree and the user disease; based on the disease risk tree, the rate and accuracy of calculating the disease risk value of the target user can be accelerated, thereby improving the data for risk judgment; finally, the trajectory risk value and the disease risk value are input into the pre-trained semi-supervised learning model to obtain the risk label corresponding to the target user, which can accurately judge the disease risk value of the target user, improve the accuracy of user risk judgment, and improve the efficiency of infectious disease screening. The above data and technology are used to improve the efficiency and accuracy of infectious disease screening, aiming to legally monitor and manage epidemic risks to protect public health and safety. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 This is a flow chart of the artificial intelligence-based epidemic investigation method provided in Example 1 of the present application.
[0053] Figure 2 This is a structural diagram of the artificial intelligence-based epidemic investigation device provided in Example 2 of the present application.
[0054] Figure 3 It is a schematic diagram of the structure of the electronic device provided in Example 3 of the present application. DETAILED DESCRIPTION
[0055] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present application belongs. The terms used herein in the specification of the present application are only for the purpose of describing the embodiments in an optional embodiment and are not intended to limit the present application.
[0057] The artificial intelligence-based epidemic investigation method provided in the embodiment of the present application is executed by an electronic device, and accordingly, the artificial intelligence-based epidemic investigation device runs in the electronic device. The electronic device may include a mobile phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device.
[0058] The embodiment of the present application can realize epidemic investigation from two perspectives, namely, personal information of target users and user trajectory, based on artificial intelligence, thereby improving the accuracy of risk monitoring. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0059] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0060] Embodiment 1
[0061] Figure 1 This is a flow chart of an epidemic investigation method based on artificial intelligence provided in Example 1 of the present application. The epidemic investigation method based on artificial intelligence specifically includes the following steps. According to different requirements, the order of the steps in the flow chart can be changed, and some can be omitted.
[0062] S11, performing stream analysis processing on the video stream data containing the target user to obtain facial feature data corresponding to the target user.
[0063] The video stream data containing the target user may be data collected in real time by a shooting device with image acquisition capability. For example, the shooting device may be a surveillance camera at the entrance of a drugstore, in which case the video stream data may be video data captured by the surveillance camera at the entrance of the drugstore. The shooting device may also be a face verification device at the entrance of the drugstore, in which case the video stream data may be video data captured by the face verification device at the entrance of the drugstore. Of course, the shooting device may also be other Internet of Things (IOT) devices capable of image acquisition, and the video stream data may be video data captured by the shooting device, which is not specifically limited in the embodiments of the present application.
[0064] The facial feature data is used to realize face recognition, and may be data of facial image features of a target user contained in video stream data collected in real time.
[0065] In an optional implementation, performing stream analysis processing on the video stream data containing the target user to obtain facial feature data corresponding to the target user includes:
[0066] Serializing the video stream data containing the target user to obtain video frame data;
[0067] Buffering the video frame data in a fault-tolerant data queue;
[0068] The video frame data in the fault-tolerant data queue is consumed to obtain facial feature data corresponding to the target user.
[0069] The video frame data may refer to a video frame obtained by serializing the video stream data. By serializing the video stream data, the amount of data to be processed can be effectively reduced, and the efficiency of data processing can be improved. The fault-tolerant data queue may be a message queue with a fault-tolerant mechanism, which can effectively improve the processing efficiency of real-time video stream data.
[0070] The implementation of the stream analysis technology in the embodiment of the present application can be based on open source stream processing frameworks such as OpenCV, Apache KafKa, and Apache Spark. For example, the video stream data transmitted by the shooting device can be received by the video stream acquisition unit OpenCV, the video stream data can be serialized into video frame data, and the video frame data can be cached in the video data buffer unit Apache KafKa. The video data buffer unit Apache KafKa is used to implement a fault-tolerant data queue for the video stream data, and then the video stream processing unit Apache Spark consumes the video frame data buffered by Apache KafKa and performs analysis and processing to detect the facial feature data corresponding to the target user. The consumer-producer model is adopted, the video stream data transmitted by the shooting device is read by the producer thread (OpenCV), the video stream data is serialized to obtain the video frame data, the obtained video frame data is stored in the queue queue (fault-tolerant data queue), and finally the video frame data stored in the fault-tolerant data queue is consumed and processed by the consumer thread (video stream processing unit Apache Spark), which can avoid decoding errors and cause the video stream reading to be stuck.
[0071] Of course, this is just a schematic illustration, and the stream analysis service can also be implemented in other ways, and the embodiments of the present application do not specifically limit this.
[0072] S12, performing face recognition according to the face feature data to determine a user behavior trajectory corresponding to the target user.
[0073] The facial feature data can be identified based on a pre-trained facial recognition model to determine the user identity corresponding to the target user. Based on the user identity corresponding to the target user, the user behavior trajectory corresponding to the target user is determined, wherein the user behavior trajectory is a behavior trajectory within a preset time interval, for example, a behavior trajectory within 14 days, a behavior trajectory within a month, etc., without any limitation. The obtained user behavior trajectory can be stored in the blockchain.
[0074] In an optional implementation, performing face recognition according to the face feature data to determine the user behavior trajectory corresponding to the target user includes:
[0075] Obtain a pre-built face recognition model, and determine a recognition range corresponding to the pre-built face recognition model;
[0076] Collect historical facial feature data corresponding to users within the recognition range;
[0077] Based on the collected historical facial feature data, the pre-built facial recognition model is trained to obtain a trained facial recognition model;
[0078] Inputting the facial feature data into the trained face recognition model to obtain the user identity corresponding to the target user;
[0079] Based on the user identity, a user behavior trajectory corresponding to the target user is determined.
[0080] The recognition range corresponding to the pre-built face recognition model can be determined based on the application scenario corresponding to the pre-built face recognition model. For example, if the application scenario corresponding to a built face recognition model is to identify users entering drugstore A, the recognition range corresponding to the face recognition model can be determined based on the geographic coordinates of drugstore A. The radius value can be pre-set, and a circle can be drawn according to the radius value with drugstore A as the dot, and the range in the circle is the recognition range corresponding to the face recognition model.
[0081] When choosing a pharmacy (clinic), users usually choose the one closest to them, so users who go to pharmacies (clinics) usually live or work nearby. Based on preset rules, the recognition range corresponding to the face recognition model can be determined, and the recognition range is the range where users who may go to the pharmacy (clinic) live. According to the application scenario of the face recognition model, the samples for model training can be reduced, and the amount of training for the face recognition model can be reduced, thereby speeding up the training data for the face recognition model. At the same time, since the samples for model training are reduced, the model size of the face recognition model can be reduced, which is convenient for installation.
[0082] Exemplarily, the Google Tensorflow open source machine learning framework can be used to train the face recognition model. For example, a deep neural network model can be selected, and the training model code can be written to import the pre-collected historical facial feature data, such as the historical facial feature data corresponding to the user within the recognition range stored in the blockchain network, into the deep neural network model, and the deep neural network model is trained by the written training model code to obtain a face recognition model that has been preliminarily trained; then the collected historical facial feature data is imported into the face recognition model that has been preliminarily trained to perform face recognition and verify the recognition accuracy of the model. When the recognition accuracy is low, adjust the model parameters of the face recognition model that has been preliminarily trained, retrain the model, and obtain a face recognition model with a higher recognition accuracy. Repeat the training verification process until a face recognition model that meets the recognition accuracy requirements is obtained, and use it as the final face recognition model, that is, the trained face recognition model.
[0083] Exemplarily, if the user identity corresponding to the target user cannot be obtained by inputting the facial feature data into the trained facial recognition model, the method further includes: determining the regional level corresponding to the trained facial recognition model; inputting the facial feature data into a facial recognition model having a regional level greater than the regional level corresponding to the trained facial recognition model, to obtain user information corresponding to the target user. Different facial recognition models may have different regional levels, and a facial recognition model with a higher regional level may include more training samples, may recognize more facial feature data, and has a larger corresponding model volume.
[0084] S13: Determine a plurality of target trajectory points based on the user behavior trajectory.
[0085] According to the user behavior trajectory of the target user, the places passed by the target user are determined, and the passed places can be determined as multiple target trajectory points.
[0086] In an optional implementation, determining a plurality of target trajectory points based on the user behavior trajectory includes:
[0087] According to the user behavior trajectory, determining a trajectory route corresponding to the user behavior trajectory;
[0088] Based on the geographic coordinate system, determine a plurality of track points in the track route, and calculate the flow of people corresponding to each track point within a preset time interval;
[0089] If the human flow corresponding to a trajectory point within a preset time interval is greater than or equal to a preset human flow threshold, the trajectory point is determined as a target trajectory point.
[0090] The geographic coordinate system may include the Amap coordinate system and the Baidu coordinate system, etc. According to the marking of the location in the geographic coordinate system, multiple track points are determined in the track route. For example, the points in the track route that are marked by the geographic coordinate system are determined as track points. That is, if a point in the track route is marked in the geographic coordinate system, the point is determined to be the track point corresponding to the track route.
[0091] S14, searching the multiple target trajectory points according to a preset search task, determining a target value corresponding to each of the target trajectory points; and determining a trajectory risk value corresponding to the target user based on the target value corresponding to each of the target trajectory points.
[0092] The search task can be preset according to the actual situation, for example, it may include determining whether there is a preset user within a preset range centered on the target trajectory point within a preset time interval, and the preset user may be a user suffering from a certain disease, that is, determining whether there is an intersection between the user trajectory of the target user and the user trajectory of the preset user. According to whether there is a preset user within the preset range centered on the target trajectory point within the preset time interval, the target value corresponding to each target trajectory point is determined.
[0093] In an optional implementation, the target values corresponding to each of the target trajectory points may be added together to obtain the trajectory risk value corresponding to the target user; or the target values corresponding to each of the target trajectory points may be multiplied together to obtain the trajectory risk value corresponding to the target user.
[0094] Exemplarily, if there is no preset user within a preset range centered on a target trajectory point within a preset time interval, the target value corresponding to the target trajectory point can be determined to be 0. If there is a preset user within a preset range centered on a target trajectory point within a preset time interval, the target value corresponding to the target trajectory point can be determined based on the distance between the location where the preset user appears and the target trajectory point and / or the time when the preset user appears. For example, the closer the distance between the location where the preset user appears and the target trajectory point, the larger the target value corresponding to the target trajectory point, and the farther the distance between the location where the preset user appears and the target trajectory point, the smaller the target value corresponding to the target trajectory point; the shorter the time between the appearance of the preset user and the time when the target user appears at the target trajectory point, the larger the target value corresponding to the target trajectory point, and the longer the time between the appearance of the preset user and the time when the target user appears at the target trajectory point, the smaller the target value corresponding to the target trajectory point.
[0095] S15, determining the user disease corresponding to the target user, and determining the disease risk value corresponding to the target user based on the pre-constructed disease risk tree and the user disease.
[0096] The user symptom corresponding to the target user can be determined based on the target user's self-reported condition; or the user symptom corresponding to the target user can be determined based on the customer's input. The possibility of the target user suffering from the target disease is determined by traversing the symptom risk tree corresponding to the pre-built target disease through the user symptom corresponding to the target user, that is, the disease risk value is determined. The target disease is a disease that needs to be screened, such as an infectious disease.
[0097] In an optional implementation, determining the disease risk value corresponding to the target user based on the pre-constructed disease risk tree and the user's disease includes:
[0098] Using a preset medical word library to process the user's symptom to obtain a plurality of symptom words;
[0099] Traversing a pre-constructed disease risk tree according to the multiple disease words, and determining a node corresponding to each of the disease words;
[0100] Determine a node value and a corresponding node level corresponding to each of the nodes;
[0101] Based on the node level and the node value, a disease risk value corresponding to the target user is determined.
[0102] The colloquial symptoms in the user's disease can be processed accordingly based on the preset medical word library and replaced with disease words that meet the requirements. For example, the colloquial symptom "some pain in the throat" in the user's disease is replaced with the disease word "sore throat", and the colloquial symptom "diarrhea" in the user's disease is replaced with the disease word "diarrhea".
[0103] The pre-built disease risk tree includes multiple nodes, each node includes a corresponding node value and a node level, and different node levels correspond to different weight values. The higher the node level, the larger the corresponding weight value; the lower the node level, the smaller the corresponding weight value.
[0104] The node value corresponding to the node may be multiplied by the node weight corresponding to the node level of the node to obtain the risk value of the disease word corresponding to the node. The risk values of the multiple disease words are added together to obtain the disease risk value corresponding to the target user.
[0105] In an optional embodiment, before traversing the pre-constructed disease risk tree according to the plurality of disease words, the method further comprises:
[0106] Acquire multiple patient cases corresponding to a target disease, and determine multiple disease characteristics based on the multiple patient cases;
[0107] Determine a plurality of first symptom phrases according to the plurality of symptom characteristics, each of the first symptom phrases having only one symptom characteristic;
[0108] Randomly select two disease characteristics from the plurality of disease characteristics to form a plurality of second disease phrases, each of which includes two disease characteristics;
[0109] Calculating the Gini index of each of the first disease word groups and each of the second disease word groups respectively, and determining a target word group in the first disease word groups and the second disease word groups based on the Gini index;
[0110] Based on the target phrase, a disease risk tree corresponding to the target disease is constructed.
[0111] Patient records of multiple patients diagnosed with a disease are obtained, wherein the patient records include multiple symptom features corresponding to each patient. The symptom features are used to represent the patient's condition, such as cough, shortness of breath, sore throat, thirst, etc.
[0112] According to the plurality of symptom characteristics, a plurality of first symptom phrases are determined. For example, according to the four symptom characteristics of cough, shortness of breath, sore throat and thirst, four first symptom phrases are determined, namely, first symptom phrase: cough, first symptom phrase: shortness of breath, first symptom phrase: sore throat and first symptom phrase: thirst.
[0113] Two symptom features are randomly selected from the multiple symptom features to form multiple second symptom phrases, each of which includes two symptom features. For example, according to the four symptom features of cough, shortness of breath, sore throat and thirst, six second symptom phrases are determined, namely, the second symptom phrase: cough, shortness of breath; the second symptom phrase: cough, sore throat; the second symptom phrase: cough, thirst; the second symptom phrase: shortness of breath, sore throat; the second symptom phrase: shortness of breath, thirst; the second symptom phrase: sore throat, thirst.
[0114] Calculate the Gini index of each first disease phrase and each second disease phrase. And based on the size of the Gini index, sort the first disease phrase and the second disease phrase from small to large, and select the two phrases with the smallest Gini index as the target phrase. The Gini index represents the probability of a randomly selected sample in the sample set being misclassified. The smaller the Gini index, the smaller the probability that the selected sample in the set is misclassified, that is, the higher the purity of the set. Constructing a disease risk tree based on the Gini index can improve the accuracy of the disease risk tree.
[0115] In an optional embodiment, constructing a disease risk tree corresponding to the target disease based on the target phrase includes:
[0116] Determine the disease as the root node of the disease risk tree, take the disease feature corresponding to the target phrase as the first parent node, and perform a binary bifurcation process on the root node;
[0117] Determining, among the plurality of symptom features corresponding to the plurality of patient cases, a plurality of symptom features corresponding to the target phrase;
[0118] Based on the multiple disease characteristics corresponding to the target word group, determine multiple disease word groups, and calculate the Gini index of each of the disease word groups;
[0119] Based on the Gini index, the first parent node is subjected to a binary bifurcation process to obtain a constructed disease risk tree.
[0120] Exemplarily, a disease risk tree corresponding to the disease can be established based on a CART regression tree establishment algorithm. Based on the disease feature corresponding to the target phrase as the first parent node, continue to divide into two, so as to obtain a disease risk tree corresponding to the disease. For example, determine a patient case containing the disease feature in the target phrase, and determine multiple disease features corresponding to the patient case, and determine the other disease features of the multiple disease features except the disease feature included in the target phrase as the multiple disease features corresponding to the target phrase.
[0121] S16, inputting the trajectory risk value and the disease risk value into a pre-trained semi-supervised learning model to obtain a risk label corresponding to the target user.
[0122] The semi-supervised learning model is a model based on a semi-supervised learning algorithm. The input of the model is the trajectory risk value and the disease risk value of the target user, and the output is the risk label of the target user for the disease. The risk label can be set according to the actual situation, without any limitation, such as high risk, medium risk, low risk, etc. Among them, the semi-supervised algorithm can include a self-training algorithm, a graph-based semi-supervised algorithm, and a semi-supervised support vector machine.
[0123] In an optional embodiment, the method further includes: obtaining user cases of multiple users, wherein the user cases include trajectory risk values and case risk values; determining multiple labeled users among the multiple users, labeling the user cases of the multiple labeled users, and obtaining multiple risk labels; inputting the trajectory risk values, case risk values, and multiple risk labels of the multiple users into a pre-built semi-supervised learning model for model training, and obtaining a trained semi-supervised learning model. Specifically, the semi-supervised learning model can refer to the relevant description of the label propagation algorithm, and no further description is given here.
[0124] The artificial intelligence-based epidemic investigation method described in the present application performs stream analysis processing on the video stream data containing the target user to extract the facial feature data corresponding to the target user. The stream analysis processing can improve the efficiency and accuracy of extracting the facial feature data; and perform face recognition based on the facial feature data to determine the user behavior trajectory corresponding to the target user; then determine a plurality of target trajectory points based on the user behavior trajectory; retrieve the plurality of target trajectory points respectively according to the preset retrieval tasks to determine the target value corresponding to each of the target trajectory points; and determine the trajectory risk value corresponding to the target user based on the target values respectively corresponding to the plurality of target trajectory points, and determine the trajectory risk value corresponding to the target user based on the plurality of target trajectory points in the user behavior trajectory. The trajectory risk value of the target user is determined by the trajectory point, so that the determined trajectory risk value contains more information and improves the accuracy of the trajectory risk value; then the user disease corresponding to the target user is determined, and the disease risk value corresponding to the target user is determined based on the pre-built disease risk tree and the user disease; based on the disease risk tree, the rate and accuracy of calculating the disease risk value of the target user can be accelerated, thereby improving the data for risk judgment; finally, the trajectory risk value and the disease risk value are input into the pre-trained semi-supervised learning model to obtain the risk label corresponding to the target user, which can accurately judge the disease risk value of the target user, improve the accuracy of user risk judgment, and improve the efficiency of infectious disease screening.
[0125] Embodiment 2
[0126] Figure 2 This is a structural diagram of the artificial intelligence-based epidemic investigation device provided in Example 2 of the present application.
[0127] In some embodiments, the artificial intelligence-based epidemic investigation device 20 may include multiple functional modules composed of computer program segments. The computer programs of each program segment in the artificial intelligence-based epidemic investigation device 20 may be stored in the memory of the electronic device and executed by at least one processor to execute (see Figure 1 (Describe) the functions of the epidemic investigation method based on artificial intelligence.
[0128] In this embodiment, the artificial intelligence-based epidemic investigation device 20 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: feature extraction module 201, face recognition module 202, target determination module 203, risk calculation module 204, disease matching module 205 and label generation module 206. The module referred to in this application refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0129] The feature extraction module 201 is used to perform stream analysis processing on the video stream data containing the target user to obtain facial feature data corresponding to the target user.
[0130] The video stream data containing the target user may be data collected in real time by a shooting device with image acquisition capability. For example, the shooting device may be a surveillance camera at the entrance of a drugstore, in which case the video stream data may be video data captured by the surveillance camera at the entrance of the drugstore. The shooting device may also be a face verification device at the entrance of the drugstore, in which case the video stream data may be video data captured by the face verification device at the entrance of the drugstore. Of course, the shooting device may also be other Internet of Things (IOT) devices capable of image acquisition, and the video stream data may be video data captured by the shooting device, which is not specifically limited in the embodiments of the present application.
[0131] The facial feature data is used to realize face recognition, and may be data of facial image features of a target user contained in video stream data collected in real time.
[0132] In an optional implementation, the feature extraction module 201 performs stream analysis processing on the video stream data containing the target user, and obtains facial feature data corresponding to the target user, including:
[0133] Serializing the video stream data containing the target user to obtain video frame data;
[0134] Buffering the video frame data in a fault-tolerant data queue;
[0135] The video frame data in the fault-tolerant data queue is consumed to obtain facial feature data corresponding to the target user.
[0136] The video frame data may refer to a video frame obtained by serializing the video stream data. By serializing the video stream data, the amount of data to be processed can be effectively reduced, and the efficiency of data processing can be improved. The fault-tolerant data queue may be a message queue with a fault-tolerant mechanism, which can effectively improve the processing efficiency of real-time video stream data.
[0137] The implementation of the stream analysis technology in the embodiment of the present application can be based on open source stream processing frameworks such as OpenCV, Apache KafKa, and Apache Spark. For example, the video stream data transmitted by the shooting device can be received by the video stream acquisition unit OpenCV, the video stream data can be serialized into video frame data, and the video frame data can be cached in the video data buffer unit Apache KafKa. The video data buffer unit Apache KafKa is used to implement a fault-tolerant data queue for the video stream data, and then the video stream processing unit Apache Spark consumes the video frame data buffered by Apache KafKa and performs analysis and processing to detect the facial feature data corresponding to the target user. The consumer-producer model is adopted, the video stream data transmitted by the shooting device is read by the producer thread (OpenCV), the video stream data is serialized to obtain the video frame data, the obtained video frame data is stored in the queue queue (fault-tolerant data queue), and finally the video frame data stored in the fault-tolerant data queue is consumed and processed by the consumer thread (video stream processing unit Apache Spark), which can avoid decoding errors and cause the video stream reading to be stuck.
[0138] Of course, this is just a schematic illustration, and the stream analysis service can also be implemented in other ways, and the embodiments of the present application do not specifically limit this.
[0139] The face recognition module 202 is used to perform face recognition according to the face feature data to determine the user behavior trajectory corresponding to the target user.
[0140] The facial feature data can be identified based on a pre-trained facial recognition model to determine the user identity corresponding to the target user. Based on the user identity corresponding to the target user, the user behavior trajectory corresponding to the target user is determined, wherein the user behavior trajectory is a behavior trajectory within a preset time interval, for example, a behavior trajectory within 14 days, a behavior trajectory within a month, etc., without any limitation. The obtained user behavior trajectory can be stored in the blockchain.
[0141] In an optional implementation, the face recognition module 202 performs face recognition according to the face feature data, and determines the user behavior trajectory corresponding to the target user includes:
[0142] Obtain a pre-built face recognition model, and determine a recognition range corresponding to the pre-built face recognition model;
[0143] Collect historical facial feature data corresponding to users within the recognition range;
[0144] Based on the collected historical facial feature data, the pre-built facial recognition model is trained to obtain a trained facial recognition model;
[0145] Inputting the facial feature data into the trained face recognition model to obtain the user identity corresponding to the target user;
[0146] Based on the user identity, a user behavior trajectory corresponding to the target user is determined.
[0147] The recognition range corresponding to the pre-built face recognition model can be determined based on the application scenario corresponding to the pre-built face recognition model. For example, if the application scenario corresponding to a built face recognition model is to identify users entering drugstore A, the recognition range corresponding to the face recognition model can be determined based on the geographic coordinates of drugstore A. The radius value can be pre-set, and a circle can be drawn according to the radius value with drugstore A as the dot, and the range in the circle is the recognition range corresponding to the face recognition model.
[0148] When choosing a pharmacy (clinic), users usually choose the one closest to them, so users who go to pharmacies (clinics) usually live or work nearby. Based on preset rules, the recognition range corresponding to the face recognition model can be determined, and the recognition range is the range where users who may go to the pharmacy (clinic) live. According to the application scenario of the face recognition model, the samples for model training can be reduced, and the amount of training for the face recognition model can be reduced, thereby speeding up the training data for the face recognition model. At the same time, since the samples for model training are reduced, the model size of the face recognition model can be reduced, which is convenient for installation.
[0149] Exemplarily, the Google Tensorflow open source machine learning framework can be used to train the face recognition model. For example, a deep neural network model can be selected, and the training model code can be written to import the pre-collected historical facial feature data, such as the historical facial feature data corresponding to the user within the recognition range stored in the blockchain network, into the deep neural network model, and the deep neural network model is trained by the written training model code to obtain a face recognition model that has been preliminarily trained; then the collected historical facial feature data is imported into the face recognition model that has been preliminarily trained to perform face recognition and verify the recognition accuracy of the model. When the recognition accuracy is low, adjust the model parameters of the face recognition model that has been preliminarily trained, retrain the model, and obtain a face recognition model with a higher recognition accuracy. Repeat the training verification process until a face recognition model that meets the recognition accuracy requirements is obtained, and use it as the final face recognition model, that is, the trained face recognition model.
[0150] Exemplarily, if the user identity corresponding to the target user cannot be obtained by inputting the facial feature data into the trained facial recognition model, the method further includes: determining the regional level corresponding to the trained facial recognition model; inputting the facial feature data into a facial recognition model having a regional level greater than the regional level corresponding to the trained facial recognition model, to obtain user information corresponding to the target user. Different facial recognition models may have different regional levels, and a facial recognition model with a higher regional level may include more training samples, may recognize more facial feature data, and has a larger corresponding model volume.
[0151] The target determination module 203 is used to determine a plurality of target trajectory points based on the user behavior trajectory.
[0152] According to the user behavior trajectory of the target user, the places passed by the target user are determined, and the passed places can be determined as multiple target trajectory points.
[0153] In an optional implementation, the target determination module 203 determines a plurality of target trajectory points based on the user behavior trajectory, including:
[0154] According to the user behavior trajectory, determining a trajectory route corresponding to the user behavior trajectory;
[0155] Based on the geographic coordinate system, determine a plurality of track points in the track route, and calculate the flow of people corresponding to each track point within a preset time interval;
[0156] If the human flow corresponding to a trajectory point within a preset time interval is greater than or equal to a preset human flow threshold, the trajectory point is determined as a target trajectory point.
[0157] The geographic coordinate system may include the Amap coordinate system and the Baidu coordinate system, etc. According to the marking of the location in the geographic coordinate system, multiple track points are determined in the track route. For example, the points in the track route that are marked by the geographic coordinate system are determined as track points. That is, if a point in the track route is marked in the geographic coordinate system, the point is determined to be the track point corresponding to the track route.
[0158] The risk calculation module 204 is used to search the multiple target trajectory points according to the preset search task, determine the target value corresponding to each of the target trajectory points; and determine the trajectory risk value corresponding to the target user based on the target value corresponding to each of the target trajectory points.
[0159] The search task can be preset according to the actual situation, for example, it may include determining whether there is a preset user within a preset range centered on the target trajectory point within a preset time interval, and the preset user may be a user suffering from a certain disease, that is, determining whether there is an intersection between the user trajectory of the target user and the user trajectory of the preset user. According to whether there is a preset user within the preset range centered on the target trajectory point within the preset time interval, the target value corresponding to each target trajectory point is determined.
[0160] In an optional implementation, the target values corresponding to each of the target trajectory points may be added together to obtain the trajectory risk value corresponding to the target user; or the target values corresponding to each of the target trajectory points may be multiplied together to obtain the trajectory risk value corresponding to the target user.
[0161] Exemplarily, if there is no preset user within a preset range centered on a target trajectory point within a preset time interval, the target value corresponding to the target trajectory point can be determined to be 0. If there is a preset user within a preset range centered on a target trajectory point within a preset time interval, the target value corresponding to the target trajectory point can be determined based on the distance between the location where the preset user appears and the target trajectory point and / or the time when the preset user appears. For example, the closer the distance between the location where the preset user appears and the target trajectory point, the larger the target value corresponding to the target trajectory point, and the farther the distance between the location where the preset user appears and the target trajectory point, the smaller the target value corresponding to the target trajectory point; the shorter the time between the appearance of the preset user and the time when the target user appears at the target trajectory point, the larger the target value corresponding to the target trajectory point, and the longer the time between the appearance of the preset user and the time when the target user appears at the target trajectory point, the smaller the target value corresponding to the target trajectory point.
[0162] The disease matching module 205 is used to determine the user disease corresponding to the target user, and determine the disease risk value corresponding to the target user based on the pre-constructed disease risk tree and the user disease.
[0163] The user symptom corresponding to the target user can be determined based on the target user's self-reported condition; or the user symptom corresponding to the target user can be determined based on the customer's input. The possibility of the target user suffering from the target disease is determined by traversing the symptom risk tree corresponding to the pre-built target disease through the user symptom corresponding to the target user, that is, the disease risk value is determined. The target disease is a disease that needs to be screened, such as an infectious disease.
[0164] In an optional implementation, the disease matching module 205 determines the disease risk value corresponding to the target user based on the pre-constructed disease risk tree and the user's disease, including:
[0165] Using a preset medical word library to process the user's symptom to obtain a plurality of symptom words;
[0166] Traversing a pre-constructed disease risk tree according to the multiple disease words, and determining a node corresponding to each of the disease words;
[0167] Determine a node value and a corresponding node level corresponding to each of the nodes;
[0168] Based on the node level and the node value, a disease risk value corresponding to the target user is determined.
[0169] The colloquial symptoms in the user's disease can be processed accordingly based on the preset medical word library and replaced with disease words that meet the requirements. For example, the colloquial symptom "some pain in the throat" in the user's disease is replaced with the disease word "sore throat", and the colloquial symptom "diarrhea" in the user's disease is replaced with the disease word "diarrhea".
[0170] The pre-built disease risk tree includes multiple nodes, each node includes a corresponding node value and a node level, and different node levels correspond to different weight values. The higher the node level, the larger the corresponding weight value; the lower the node level, the smaller the corresponding weight value.
[0171] The node value corresponding to the node may be multiplied by the node weight corresponding to the node level of the node to obtain the risk value of the disease word corresponding to the node. The risk values of the multiple disease words are added together to obtain the disease risk value corresponding to the target user.
[0172] In an optional embodiment, before the disease matching module 205 traverses the pre-constructed disease risk tree according to the multiple disease words, the disease matching module 205 is further configured to:
[0173] Acquire multiple patient cases corresponding to a target disease, and determine multiple disease characteristics based on the multiple patient cases;
[0174] Determine a plurality of first symptom phrases according to the plurality of symptom characteristics, each of the first symptom phrases having only one symptom characteristic;
[0175] Randomly select two disease characteristics from the plurality of disease characteristics to form a plurality of second disease phrases, each of which includes two disease characteristics;
[0176] Calculating the Gini index of each of the first disease word groups and each of the second disease word groups respectively, and determining a target word group in the first disease word groups and the second disease word groups based on the Gini index;
[0177] Based on the target phrase, a disease risk tree corresponding to the target disease is constructed.
[0178] Patient records of multiple patients diagnosed with a disease are obtained, wherein the patient records include multiple symptom features corresponding to each patient. The symptom features are used to represent the patient's condition, such as cough, shortness of breath, sore throat, thirst, etc.
[0179] According to the plurality of symptom characteristics, a plurality of first symptom phrases are determined. For example, according to the four symptom characteristics of cough, shortness of breath, sore throat and thirst, four first symptom phrases are determined, namely, first symptom phrase: cough, first symptom phrase: shortness of breath, first symptom phrase: sore throat and first symptom phrase: thirst.
[0180] Two symptom features are randomly selected from the multiple symptom features to form multiple second symptom phrases, each of which includes two symptom features. For example, according to the four symptom features of cough, shortness of breath, sore throat and thirst, six second symptom phrases are determined, namely, the second symptom phrase: cough, shortness of breath; the second symptom phrase: cough, sore throat; the second symptom phrase: cough, thirst; the second symptom phrase: shortness of breath, sore throat; the second symptom phrase: shortness of breath, thirst; the second symptom phrase: sore throat, thirst.
[0181] Calculate the Gini index of each first disease phrase and each second disease phrase. And based on the size of the Gini index, sort the first disease phrase and the second disease phrase from small to large, and select the two phrases with the smallest Gini index as the target phrase. The Gini index represents the probability of a randomly selected sample in the sample set being misclassified. The smaller the Gini index, the smaller the probability that the selected sample in the set is misclassified, that is, the higher the purity of the set. Constructing a disease risk tree based on the Gini index can improve the accuracy of the disease risk tree.
[0182] In an optional implementation, the disease matching module 205 constructs a disease risk tree corresponding to the target disease based on the target phrase, including:
[0183] Determine the disease as the root node of the disease risk tree, take the disease feature corresponding to the target phrase as the first parent node, and perform a binary bifurcation process on the root node;
[0184] Determining, among the plurality of symptom features corresponding to the plurality of patient cases, a plurality of symptom features corresponding to the target phrase;
[0185] Based on the multiple disease characteristics corresponding to the target word group, determine multiple disease word groups, and calculate the Gini index of each of the disease word groups;
[0186] Based on the Gini index, the first parent node is subjected to a binary bifurcation process to obtain a constructed disease risk tree.
[0187] Exemplarily, a disease risk tree corresponding to the disease can be established based on a CART regression tree establishment algorithm. Based on the disease feature corresponding to the target phrase as the first parent node, continue to divide into two, so as to obtain a disease risk tree corresponding to the disease. For example, determine a patient case containing the disease feature in the target phrase, and determine multiple disease features corresponding to the patient case, and determine the other disease features of the multiple disease features except the disease feature included in the target phrase as the multiple disease features corresponding to the target phrase.
[0188] The label generation module 206 is used to input the trajectory risk value and the disease risk value into a pre-trained semi-supervised learning model to obtain a risk label corresponding to the target user.
[0189] The semi-supervised learning model is a model based on a semi-supervised learning algorithm. The input of the model is the trajectory risk value and the disease risk value of the target user, and the output is the risk label of the target user for the disease. The risk label can be set according to the actual situation, without any limitation, such as high risk, medium risk, low risk, etc. Among them, the semi-supervised algorithm can include a self-training algorithm, a graph-based semi-supervised algorithm, and a semi-supervised support vector machine.
[0190] In an optional embodiment, the method further includes: obtaining user cases of multiple users, wherein the user cases include trajectory risk values and case risk values; determining multiple labeled users among the multiple users, labeling the user cases of the multiple labeled users, and obtaining multiple risk labels; inputting the trajectory risk values, case risk values, and multiple risk labels of the multiple users into a pre-built semi-supervised learning model for model training, and obtaining a trained semi-supervised learning model. Specifically, the semi-supervised learning model can refer to the relevant description of the label propagation algorithm, and no further description is given here.
[0191] The artificial intelligence-based epidemic investigation device described in the present application performs stream analysis processing on the video stream data containing the target user to extract the facial feature data corresponding to the target user. The stream analysis processing can improve the efficiency and accuracy of extracting the facial feature data; and perform face recognition based on the facial feature data to determine the user behavior trajectory corresponding to the target user; then determine a plurality of target trajectory points based on the user behavior trajectory; retrieve the plurality of target trajectory points respectively according to the preset retrieval tasks to determine the target value corresponding to each of the target trajectory points; and determine the trajectory risk value corresponding to the target user based on the target values respectively corresponding to the plurality of target trajectory points, and determine the trajectory risk value corresponding to the target user based on the plurality of target trajectory points in the user behavior trajectory. The trajectory risk value of the target user is determined by the trajectory point, so that the determined trajectory risk value contains more information and improves the accuracy of the trajectory risk value; then the user disease corresponding to the target user is determined, and the disease risk value corresponding to the target user is determined based on the pre-built disease risk tree and the user disease; based on the disease risk tree, the rate and accuracy of calculating the disease risk value of the target user can be accelerated, thereby improving the data for risk judgment; finally, the trajectory risk value and the disease risk value are input into the pre-trained semi-supervised learning model to obtain the risk label corresponding to the target user, which can accurately judge the disease risk value of the target user, improve the accuracy of user risk judgment, and improve the efficiency of infectious disease screening.
[0192] Embodiment 3
[0193] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned artificial intelligence-based epidemic investigation method embodiment are implemented, such as Figure 1 S11-S16 shown:
[0194] S11, performing stream analysis processing on the video stream data containing the target user to obtain facial feature data corresponding to the target user;
[0195] S12, performing face recognition according to the face feature data to determine a user behavior trajectory corresponding to the target user;
[0196] S13, determining a plurality of target trajectory points based on the user behavior trajectory;
[0197] S14, searching the plurality of target trajectory points according to a preset search task, determining a target value corresponding to each of the target trajectory points; and determining a trajectory risk value corresponding to the target user based on the target value corresponding to each of the target trajectory points;
[0198] S15, determining a user disease corresponding to the target user, and determining a disease risk value corresponding to the target user based on a pre-constructed disease risk tree and the user disease;
[0199] S16, inputting the trajectory risk value and the disease risk value into a pre-trained semi-supervised learning model to obtain a risk label corresponding to the target user.
[0200] Alternatively, when the computer program is executed by a processor, the functions of each module / unit in the above-mentioned device embodiment are realized, for example Figure 2 Modules 201-206:
[0201] The feature extraction module 201 is used to perform stream analysis processing on the video stream data containing the target user to obtain the facial feature data corresponding to the target user;
[0202] A face recognition module 202 is used to perform face recognition based on the face feature data to determine a user behavior trajectory corresponding to the target user;
[0203] A target determination module 203 is used to determine a plurality of target trajectory points based on the user behavior trajectory;
[0204] The risk calculation module 204 is used to search the multiple target trajectory points according to the preset search task, determine the target value corresponding to each of the target trajectory points; and determine the trajectory risk value corresponding to the target user based on the target value corresponding to each of the target trajectory points;
[0205] The disease matching module 205 is used to determine the user disease corresponding to the target user, and determine the disease risk value corresponding to the target user based on the pre-built disease risk tree and the user disease;
[0206] The label generation module 206 is used to input the trajectory risk value and the disease risk value into a pre-trained semi-supervised learning model to obtain a risk label corresponding to the target user.
[0207] Embodiment 4
[0208] See also Figure 3 FIG. 2 is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present application. In a preferred embodiment of the present application, the electronic device 3 includes a memory 31 , at least one processor 32 , a transceiver 33 and at least one communication bus 34 .
[0209] Those skilled in the art should understand that Figure 3The structure of the electronic device shown does not constitute a limitation of the embodiments of the present application, and may be either a bus structure or a star structure. The electronic device 3 may also include more or less other hardware or software than shown in the figure, or a different component arrangement.
[0210] In some embodiments, the electronic device 3 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits, programmable gate arrays, digital processors, and embedded devices. The electronic device 3 may also include client devices, which include but are not limited to any electronic product that can interact with a client through a keyboard, mouse, remote control, touchpad, or voice-controlled device, such as a personal computer, tablet computer, smart phone, digital camera, etc.
[0211] It should be noted that the electronic device 3 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.
[0212] In some embodiments, the memory 31 stores a computer program, and when the computer program is executed by the at least one processor 32, all or part of the steps in the epidemic investigation method based on artificial intelligence are implemented. The memory 31 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0213] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0214] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0215] In some embodiments, the at least one processor 32 is the control core (ControlUnit) of the electronic device 3, and uses various interfaces and lines to connect various components of the entire electronic device 3, and executes various functions and processes data of the electronic device 3 by running or executing programs or modules stored in the memory 31, and calling data stored in the memory 31. For example, when the at least one processor 32 executes the computer program stored in the memory, it implements all or part of the steps of the epidemic investigation method based on artificial intelligence described in the embodiment of the present application; or implements all or part of the functions of the epidemic investigation device based on artificial intelligence. The at least one processor 32 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same function or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips.
[0216] In some embodiments, the at least one communication bus 34 is configured to implement connection and communication between the memory 31 and the at least one processor 32, etc.
[0217] Although not shown, the electronic device 3 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 32 through a power management device, so that the power management device can manage charging, discharging, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 3 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.
[0218] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, electronic device, or network device, etc.) or a processor to execute part of the method described in each embodiment of the present application.
[0219] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0220] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0221] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0222] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "including" does not exclude other units or, and the singular does not exclude the plural. Multiple units or devices stated in the specification can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0223] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. An epidemic investigation method based on artificial intelligence, characterized in that: The method comprises: Performing stream analysis on the video stream data containing the target user to obtain facial feature data corresponding to the target user; Performing face recognition according to the face feature data to determine the user behavior trajectory corresponding to the target user, including: obtaining a pre-constructed face recognition model, and determining the recognition range corresponding to the pre-constructed face recognition model based on the application scenario corresponding to the pre-constructed face recognition model; collecting historical face feature data corresponding to users within the recognition range; based on the collected historical face feature data, performing model training on the pre-constructed face recognition model to obtain a trained face recognition model; inputting the face feature data into the trained face recognition model to obtain the user identity corresponding to the target user; and determining the user behavior trajectory corresponding to the target user based on the user identity; Based on the user behavior trajectory, determining multiple target trajectory points; Retrieve the plurality of target trajectory points according to a preset retrieval task, and determine a target value corresponding to each of the target trajectory points; and determine a trajectory risk value corresponding to the target user based on the target value corresponding to each of the target trajectory points; Determine a user disease corresponding to the target user, and determine a disease risk value corresponding to the target user based on a pre-constructed disease risk tree and the user disease; The trajectory risk value and the disease risk value are input into a pre-trained semi-supervised learning model to obtain a risk label corresponding to the target user.
2. The artificial intelligence-based epidemic investigation method according to claim 1, characterized in that: The performing stream analysis processing on the video stream data containing the target user to obtain the facial feature data corresponding to the target user includes: Serializing the video stream data containing the target user to obtain video frame data; Buffering the video frame data in a fault-tolerant data queue; The video frame data in the fault-tolerant data queue is consumed to obtain facial feature data corresponding to the target user.
3. The artificial intelligence-based epidemic investigation method according to claim 1, characterized in that: The determining of a plurality of target trajectory points based on the user behavior trajectory includes: According to the user behavior trajectory, determining a trajectory route corresponding to the user behavior trajectory; Based on the geographic coordinate system, determine a plurality of track points in the track route, and calculate the flow of people corresponding to each track point within a preset time interval; If the human flow corresponding to a trajectory point within a preset time interval is greater than or equal to a preset human flow threshold, the trajectory point is determined as a target trajectory point.
4. The artificial intelligence-based epidemic investigation method according to claim 1, characterized in that: The determining of the disease risk value corresponding to the target user based on the pre-constructed disease risk tree and the user's disease includes: Using a preset medical word library to process the user's symptom to obtain a plurality of symptom words; Traversing a pre-constructed disease risk tree according to the multiple disease words, and determining a node corresponding to each of the disease words; Determine a node value and a corresponding node level corresponding to each of the nodes; Based on the node level and the node value, a disease risk value corresponding to the target user is determined.
5. The artificial intelligence-based epidemic investigation method according to claim 4, characterized in that: Before traversing the pre-constructed disease risk tree according to the plurality of disease words, the method further includes: Acquire multiple patient cases corresponding to a target disease, and determine multiple disease characteristics based on the multiple patient cases; Determine a plurality of first symptom phrases according to the plurality of symptom characteristics, each of the first symptom phrases having only one symptom characteristic; Randomly select two disease characteristics from the plurality of disease characteristics to form a plurality of second disease phrases, each of which includes two disease characteristics; Calculating the Gini index of each of the first disease word groups and each of the second disease word groups respectively, and determining a target word group in the first disease word groups and the second disease word groups based on the Gini index; Based on the target phrase, a disease risk tree corresponding to the target disease is constructed.
6. The artificial intelligence-based epidemic investigation method according to claim 5, characterized in that: The step of constructing a disease risk tree corresponding to the target disease based on the target phrase includes: Determine the disease as the root node of the disease risk tree, take the disease feature corresponding to the target phrase as the first parent node, and perform a binary bifurcation process on the root node; Determining, among the plurality of symptom features corresponding to the plurality of patient cases, a plurality of symptom features corresponding to the target phrase; Based on the multiple disease characteristics corresponding to the target word group, determine multiple disease word groups, and calculate the Gini index of each of the disease word groups; Based on the Gini index, the first parent node is subjected to a binary bifurcation process to obtain a constructed disease risk tree.
7. An artificial intelligence-based epidemic investigation device for implementing the artificial intelligence-based epidemic investigation method according to claim 1, characterized in that: The device comprises: A feature extraction module is used to perform stream analysis on the video stream data containing the target user to obtain facial feature data corresponding to the target user; A face recognition module, used to perform face recognition based on the face feature data and determine the user behavior trajectory corresponding to the target user; A target determination module, used to determine a plurality of target trajectory points based on the user behavior trajectory; A risk calculation module, used to search the multiple target trajectory points according to a preset search task, determine the target value corresponding to each of the target trajectory points; and determine the trajectory risk value corresponding to the target user based on the target value corresponding to each of the target trajectory points; A disease matching module, used to determine the user disease corresponding to the target user, and determine the disease risk value corresponding to the target user based on a pre-built disease risk tree and the user disease; The label generation module is used to input the trajectory risk value and the disease risk value into a pre-trained semi-supervised learning model to obtain a risk label corresponding to the target user.
8. An electronic device, characterized in that: The electronic device includes a processor and a memory, and the processor is used to implement the artificial intelligence-based epidemic investigation method as described in any one of claims 1 to 6 when executing a computer program stored in the memory.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the artificial intelligence-based epidemic investigation method as described in any one of claims 1 to 6 is implemented.
