Facial image-based disease detection method, device, equipment, medium and product

By dividing the facial image into multiple areas of interest and extracting basic feature vectors, and using the prediction model for disease detection, the problem of low accuracy in predicting health status from facial images in the existing technology is solved, and the accuracy of disease prediction is improved. Accuracy and model interpretability.

CN118762387APending Publication Date: 2024-10-11CHINA MOBILE INFORMATION TECHNOLOGY CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410454888.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-15
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The accuracy of health status prediction based on facial images in the existing technology is low and cannot meet the further application of artificial intelligence in the medical field.

Method used

By dividing the facial image into multiple areas of interest, extract the basic feature vectors of each area, and use the prediction model trained with the facial image as input and disease information as labels to perform disease detection, using sub-regional prediction. way to improve the interpretability and accuracy of the model.

Benefits of technology

It improves the accuracy of disease prediction based on facial images, enhances the interpretability of the model, and meets the application needs in the medical field.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762387A_ABST
    Figure CN118762387A_ABST
Patent Text Reader

Abstract

The invention discloses a disease detection method and device based on a facial image, equipment, a storage medium and a computer program product, and relates to the technical field of computer vision, and the method comprises the steps: obtaining a facial feature map of the facial image based on the input facial image; dividing the face image into a plurality of regions of interest based on a preset division template, and obtaining respective basic feature vectors of the regions of interest based on the face feature map; and inputting each basic feature vector into a preset prediction model to obtain a disease prediction result corresponding to the face image, the prediction model being obtained by training with each basic feature vector of the face image as input and disease information corresponding to the face image as a label. By adopting the method, regional prediction can be carried out on the face image, and the model has interpretability through the regional prediction mode, so that the accuracy of disease prediction based on the face image is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to a disease detection method, device, equipment, storage medium and computer program product based on facial images. Background Art

[0002] One of the most important data sources in the field of computer vision is human face information, which contains a variety of information, especially in health assessment, and its huge potential has not yet been discovered.

[0003] In the conventional technical means of applying facial information to health assessment, facial information is usually combined with neural networks to predict the health status of the person being predicted. However, due to the poor interpretability of the neural network, the credibility and accuracy of the prediction results are low, which cannot meet the further application of artificial intelligence in the medical field.

[0004] Therefore, how to improve the accuracy of health prediction based on facial images and deep learning has become a technical problem that needs to be solved urgently in this field. Summary of the invention

[0005] The main purpose of the present invention is to provide a disease detection method, device, equipment, storage medium and computer program product based on facial images, aiming to solve the technical problem of low accuracy of health status prediction based on facial images in the prior art.

[0006] To achieve the above object, the present invention provides a disease detection method based on facial images, the method comprising the following steps:

[0007] Acquire a facial feature map of the human face image based on an input human face image;

[0008] Dividing the face image into a plurality of regions of interest based on a preset division template, and acquiring a basic feature vector of each region of interest based on the facial feature map;

[0009] Each of the basic feature vectors is input into a preset prediction model to obtain a disease prediction result corresponding to the face image, wherein the prediction model is trained using the basic feature vectors of the face image as input and the disease information corresponding to the face image as a label.

[0010] Optionally, the step of acquiring a facial feature map of the human face image based on the input human face image comprises:

[0011] Detecting the input human face image using a preset human face key point detection algorithm to obtain information on multiple feature points of the human face image;

[0012] Performing feature extraction on a human face image containing a plurality of feature point information through a preset convolutional neural network to obtain a feature extraction result corresponding to each feature point information;

[0013] The feature extraction results are spliced ​​together to obtain a facial feature map of the human face image.

[0014] Optionally, the step of acquiring a basic feature vector of each of the regions of interest based on the facial feature map comprises:

[0015] Calculating the image size ratio between the human face facial image and the facial feature map;

[0016] Each of the regions of interest is projected onto the facial feature map according to the image size ratio to obtain a basic feature vector of each of the regions of interest.

[0017] Optionally, the step of inputting each of the basic feature vectors into a preset prediction model to obtain a disease prediction result corresponding to the facial image includes:

[0018] Each of the basic feature vectors is input into the decoder module of the prediction model to obtain the regional feature vector and regional attention score of each of the regions of interest related to the disease type, wherein the regional attention score is used to characterize the contribution of the region of interest to the prediction of the disease type.

[0019] The disease prediction result corresponding to the facial image is obtained based on the feature vectors of each region and the attention scores of each region.

[0020] Optionally, the step of inputting each of the basic feature vectors into a decoder module of the prediction model to obtain a regional feature vector and a regional attention score associated with the disease type for each of the regions of interest comprises:

[0021] Inputting each of the basic feature vectors into the decoder module of the prediction model to obtain a regional feature vector and a regional attention coefficient of each of the regions of interest that are related to the disease type;

[0022] For multiple regional attention coefficients of each region of interest, the regional attention coefficients are averaged and normalized to obtain the regional attention score of the region of interest.

[0023] Optionally, the step of obtaining a disease prediction result corresponding to the face image based on each of the region feature vectors and each of the region attention scores comprises:

[0024] Determine whether there is a target area attention score greater than a preset value among the area attention scores;

[0025] If the target area attention score exists, the disease prediction result corresponding to the human face image is obtained based on the regional feature vector corresponding to the target area attention score and the multi-layer perceptron module of the prediction model.

[0026] In addition, to achieve the above-mentioned purpose, the present invention also proposes a disease detection device based on facial images, the device comprising:

[0027] A feature extraction module, used for acquiring a facial feature map of an inputted human face image based on the inputted human face image;

[0028] A region division module, used for dividing the face image into a plurality of regions of interest based on a preset division template, and obtaining a basic feature vector of each region of interest based on the facial feature map;

[0029] A prediction module is used to input each of the basic feature vectors into a preset prediction model to obtain a disease prediction result corresponding to the face image, wherein the prediction model is trained using each of the basic feature vectors of the face image as input and the disease information corresponding to the face image as a label.

[0030] In addition, to achieve the above-mentioned objectives, the present invention also proposes a facial image-based disease detection device, which includes: a memory, a processor, and a facial image-based disease detection program stored in the memory and executable on the processor, wherein the facial image-based disease detection program is configured to implement the steps of the facial image-based disease detection method as described above.

[0031] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a facial image-based disease detection program is stored. When the facial image-based disease detection program is executed by a processor, the steps of the facial image-based disease detection method described above are implemented.

[0032] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer program product, which includes a facial image-based disease detection program, and when the facial image-based disease detection program is executed by a processor, it implements the steps of the facial image-based disease detection method as described above.

[0033] The present invention proposes a disease detection method, device, equipment, storage medium and computer program product based on facial images. The disease detection method based on facial images includes: obtaining a facial feature map of the human face image based on an input human face image; dividing the human face image into multiple regions of interest based on a preset division template, and obtaining basic feature vectors of each of the regions of interest based on the facial feature map; inputting each of the basic feature vectors into a preset prediction model to obtain a disease prediction result corresponding to the human face image, wherein the prediction model is trained by taking the basic feature vectors of the human face image as input and the disease information corresponding to the human face image as a label.

[0034] Compared with the traditional method of predicting health status based on deep learning and facial image information, the present invention divides the facial feature map of the facial image into multiple regions of interest, obtains the basic feature vectors of each region of interest, and then uses the prediction model trained with the basic feature vectors of the facial image as input and the disease information corresponding to the facial image as labels. Based on the model training, the correspondence between the region of interest and the disease information is obtained, and then the disease is detected based on the above correspondence. The method provided in the present application can predict the facial image by region. This regional prediction method makes the model interpretable, thereby improving the accuracy of disease prediction based on facial images. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a structural schematic diagram of a disease detection device based on facial images in a hardware operating environment involved in an embodiment of the present invention;

[0036] Figure 2 It is a flowchart of a first embodiment of a disease detection method based on facial images of the present invention;

[0037] Figure 3 This is a basic flow chart of the first embodiment of the disease detection method based on facial images of the present invention;

[0038] Figure 4 A schematic diagram of facial feature points involved in a third embodiment of a disease detection method based on facial images of the present invention;

[0039] Figure 5 This is a structural block diagram of the first embodiment of the disease detection device based on facial images of the present invention.

[0040] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0042] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of a disease detection device based on facial images in the hardware operating environment involved in the embodiment of the present invention.

[0043] like Figure 1 As shown, the disease detection device based on facial images may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0044] Those skilled in the art will understand that Figure 1 The structure shown in does not constitute a limitation on the disease detection device based on facial images, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0045] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a disease detection program based on facial images.

[0046] exist Figure 1In the facial image-based disease detection device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the facial image-based disease detection device of the present invention can be set in the facial image-based disease detection device, and the facial image-based disease detection device calls the facial image-based disease detection program stored in the memory 1005 through the processor 1001, and executes the facial image-based disease detection method provided by the embodiment of the present invention.

[0047] The embodiment of the present invention provides a disease detection method based on facial images, referring to Figure 2 , Figure 2 Schematic diagram of the flow chart of the first embodiment of the disease detection method based on facial images of the present invention.

[0048] In this embodiment, the disease detection method based on facial images includes the following steps:

[0049] Step S10, obtaining a facial feature map of the human face image based on the input human face image.

[0050] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a disease detection device based on facial images, etc. The following takes a disease detection device based on facial images as an example to illustrate this embodiment and the following embodiments.

[0051] It should be noted that with the development of computer vision and deep learning, many challenging tasks have been greatly improved. In the field of computer vision, one of the most important data sources is facial information of human face, which can be used in movies, entertainment, business or security fields, such as 3D video games, virtual tagging, online transportation and face unlocking. The human face contains a variety of information, especially in health assessment, and its potential is huge and has not yet been discovered. Some work has studied the relationship between facial appearance and body mass index (BMI) and sex hormone levels, and some studies have used human faces to predict personal physical indicators (such as height, weight and age) and achieved good results. Previous biological studies have shown that many common diseases are closely related to the face. For example, people with arterial occlusion problems also show signs of fertile skin formed around the eyes, nose and mouth, and cracked lips may be caused by thyroid dysfunction. Therefore, the health of a person can be predicted by analyzing facial information. In the existing technology, the research on human face in the academic community of computer vision mainly focuses on landmark detection, face recognition and expression recognition, and the methods for facial diagnosis are relatively traditional. The medical information hidden in the face is far from being mined. In addition, when deep learning is used to predict human-related diseases, due to the poor interpretability of the neural network, it often cannot give a convincing diagnosis reason, which also hinders the further development of artificial intelligence in the medical field. In response to the above problems, this embodiment proposes a disease detection method based on facial images.

[0052] In this embodiment, when performing disease detection on the facial image of the human face to be tested, it is necessary to first extract the facial feature map of the human face. There are many ways to extract the facial feature map based on the facial image, for example, the features of the face can be represented by extracting information such as the shape, contour, and geometric structure of the face. Commonly used structured methods include Active Shape Models (ASM), Active Appearance Models (AAM), etc., and the features of the face can also be extracted by convolutional neural networks, which are not further limited here.

[0053] Step S20, dividing the face image into a plurality of regions of interest based on a preset division template, and acquiring a basic feature vector of each region of interest based on the facial feature map.

[0054] It should be noted that, in this embodiment, the preset division template may be a template divided by a technician himself, or a conventional area division template in the medical field, which is not limited here.

[0055] In this embodiment, in order to make it possible to more specifically select the location of facial data as data support when predicting the disease, the facial data of a large number of disease patients initially obtained can also be divided and processed, and then the corresponding regions can be determined on the feature extraction map based on the results of the division process. When the facial data is divided and processed, it can be divided according to the facial regions defined by traditional medicine. Specifically, the facial data can be divided into 10 regions including the nose, eyes, mouth and forehead, and the 10 regions obtained by the division are used as the results of the division process. It can be understood that the above 10 regions are divided based on medical definitions, but in actual operation, the facial data can also be divided into more or fewer regions.

[0056] In some embodiments, the significance of dividing the facial data is to determine the relevant area range on the feature extraction map through the 10 facial data obtained by division, so that in the subsequent disease detection, it can be easier to determine which part of the facial data of the tester the judgment factor for a certain disease lies in, and this can provide a theoretical basis for predictors (for example, doctors, etc.) who need this disease prediction model.

[0057] After dividing the face into multiple ROI (Region of Interest) regions, it is necessary to obtain the basic feature vectors of each ROI region. There are many ways to obtain the basic feature vectors. For example, the feature vectors of the ROI region can be obtained through deep learning, which is not limited here.

[0058] Step S30, input each of the basic feature vectors into a preset prediction model to obtain a disease prediction result corresponding to the face image, wherein the prediction model is trained using each of the basic feature vectors of the face image as input and the disease information corresponding to the face image as a label.

[0059] In this embodiment, the prediction model is obtained by training with a large amount of data in advance. During the training process, multiple basic feature vectors of the image are first obtained based on all the face images in the training set, and then the basic feature vectors are used as input, and the disease information corresponding to the face image is used as a label for training to obtain the prediction model. After the trained prediction model is obtained, each of the basic feature vectors can be input into the prediction model to obtain the disease prediction result output by the prediction model.

[0060] Furthermore, in a feasible embodiment, in the above step S30, the step of inputting each of the basic feature vectors into a preset prediction model to obtain a disease prediction result corresponding to the facial image of the human face includes:

[0061] Step A10, input each of the basic feature vectors into the decoder module of the prediction model to obtain the regional feature vector and regional attention score of each of the regions of interest related to the disease type, wherein the regional attention score is used to characterize the contribution of the region of interest to the prediction of the disease type.

[0062] In this embodiment, the prediction model is divided into multiple modules, including a decoder module, each basic feature vector is input into the decoder module, the decoder module will output the regional feature vectors related to each ROI region and the disease type, and record the regional attention score of each ROI region, which can characterize the contribution of the ROI region in the prediction of the disease type. There are many ways to calculate the attention score, which are not limited here.

[0063] Step A20, obtaining a disease prediction result corresponding to the facial image of the human face based on the feature vectors of each region and the attention scores of each region.

[0064] In this embodiment, based on the regional attention score of each ROI area, the model can predict the disease type based on the feature vectors of each region. The attention score can be used as a weighted coefficient in the prediction process, and can also be used as a criterion for whether to use the ROI area for prediction, which is not limited here.

[0065] Further, in a feasible embodiment, in the above step A10, the step of inputting each of the basic feature vectors into the decoder module of the prediction model to obtain the regional feature vector and regional attention score of each of the regions of interest related to the disease type includes:

[0066] Step A101, inputting each of the basic feature vectors into the decoder module of the prediction model to obtain a regional feature vector and a regional attention coefficient of each of the regions of interest that are related to the disease type;

[0067] Step A102, for each region of interest, average the multiple region attention coefficients and perform normalization processing on the region attention coefficients to obtain the region attention score of the region of interest.

[0068] In this embodiment, after each basic feature vector is input into the decoder module, the decoder module will output the regional feature vector of each ROI region and record the attention coefficient of each ROI region in the process. After obtaining each attention coefficient, it is necessary to average the multiple regional attention coefficients in each region and perform normalization processing to obtain the attention score of each ROI region. The normalization method can be performed using softmax (normalized exponential function).

[0069] Further, in a feasible embodiment, the above-mentioned step A20, the step of obtaining the disease prediction result corresponding to the face image based on each of the regional feature vectors and each of the regional attention scores, includes:

[0070] Step A201, determining whether there is a target area attention score greater than a preset value among the area attention scores;

[0071] Step A202: If the target area attention score exists, the disease prediction result corresponding to the human face image is obtained based on the regional feature vector corresponding to the target area attention score and the multi-layer perceptron module of the prediction model.

[0072] In this embodiment, the regional attention score can be used as a decision score to determine whether to use the characteristics of the region to predict the disease. The decision threshold can be a preset value set in advance by the technician according to the actual situation, and is not limited here. If the regional attention score is greater than the predicted value, the ROI area is used as the prediction input, and the disease prediction result is obtained through the multi-layer perceptron module in the prediction model.

[0073] As an example, see Figure 3 , Figure 3 FIG. 1 is a basic flow chart of the first embodiment of the disease detection method based on facial images of the present invention. Figure 3 As shown in the figure, when disease detection is performed based on facial images, the network for facial segmentation and disease prediction is used as a whole RoiFaceNet network, facial data carrying 68 key point coordinates is used as input, and disease information is used as a label to train the RoiFaceNet network, so that the RoiFaceNet network can output common disease incidence areas and their corresponding facial areas based on facial data, and the corresponding facial areas are determined based on the attention scores of each ROI area.

[0074] The backbone of the network RoiFaceNet includes a feature extraction module, a label-based spatial attention module, and a classification head module. The feature extraction module first learns the feature map of the complete face through a CNN network, and then divides the facial area into ten ROI areas according to 68 key points, extracts the features of each ROI area on the feature map; then performs ROI Pooling on the features of each ROI area to obtain a uniform size feature vector, which can be selected as 16×16; therefore, the feature extraction module can obtain the feature vectors F0∈R10×c×d of ten different regions, where c represents the number of channels and d=16×16.

[0075] A transformer-based label-based spatial attention module is then introduced to adaptively extract identification features of different labels and learn complementary information between different labels. Specifically, I first introduce a learnable query embedding Q0∈RK×d for each label and each ROI region. Then using a standard Transformer decoder, independent image features Fl∈RK×10×d are produced for each label. The Transformer decoder layer consists of a self-attention layer, a cross-attention layer, and a feed-forward layer, as described above in the standard Transformer architecture. The self-attention layer and the cross-attention layer are the same multi-head attention layer MHA(Query,Key,Value), but with different inputs. The query, key, and value inputs of the self-attention layer are all query embeddings Qi, while the key and value inputs of the cross-attention layer are the flattened spatial image features F0∈R10×H0×W0 of different regions.

[0076] The loss function of the entire network is:

[0077]

[0078]

[0079] Among them, k represents the number of predicted diseases, loss j Represents the loss function of the jth task, loss f represents the loss function on the complete face data, n represents the number of face data, x i represents the input i-th face data, h1, g, f respectively represent the classification head module, label-based spatial attention module, feature extraction module in the RoiFaceNet architecture, y i Represents the disease label of the i-th face data.

[0080] In order to further build the interpretability of the model, it is also necessary to calculate the attention coefficient of the cross-attention layer output. The calculation formula is: d k is the feature dimension of the Key, and c is the number of channels of the convolution. The attention score indicates the strength of attention of different tasks after querying different regions. By shaping the attention of each region of each task into a size of 16×16, we can see the specific focus position of each task on each facial ROI region. In order to observe the strength of the model's attention to the ten ROI regions, it is necessary to average the attention coefficient of each region and normalize it through softmax, so that ten 0-1 numbers are obtained, which represent the specific contribution of the ten facial ROI regions in disease prediction.

[0081] When predicting the regional feature vector through the prediction model, the task to be predicted is input into the Transformer Decoder as the Query vector, and the ten ROI feature vectors are also sent into the Transformer Decoder as the Key and Value vectors; Query is a learnable embedding vector, which can behave like an expert with disease diagnosis ability after model training, and learn specific disease information by querying different input ROI features. After the Transformer Decoder, the model generates 10 regional feature vectors related to disease characteristics, which are flattened and input into a multi-layer perceptron to obtain the disease prediction results. In order to make the prediction results interpretable, the saved attention mean is further calculated, and then a softmax is used to obtain the contribution of ten different regions to disease prediction. Furthermore, the vector of each region can be well reflected by shaping the attention intensity of each region and position.

[0082] Therefore, by dividing the face area and calculating the attention score, the interpretability of the model for disease prediction can be improved, thereby improving the accuracy of the method for disease prediction.

[0083] Based on the above-mentioned first embodiment of the fusion abnormality detection method of the present invention, a second embodiment of the disease detection method based on facial images of the present invention is proposed.

[0084] In the second embodiment of the disease detection method based on facial images of the present invention, the above-mentioned step S10, the step of obtaining a facial feature map of the human face image based on the input human face image, includes:

[0085] Step S101, detecting an input face image using a preset face key point detection algorithm to obtain information of multiple feature points of the face image;

[0086] Step S102, performing feature extraction on the face image containing the plurality of feature point information by using a preset convolutional neural network to obtain feature extraction results corresponding to each feature point information;

[0087] Step S103, splicing the feature extraction results to obtain a facial feature map of the face image.

[0088] In this embodiment, when performing facial feature recognition on a face, it is necessary to first use a facial key point detection algorithm to identify multiple feature point information of the face image, then use a convolutional neural network to extract features of the feature points, and then splice them to obtain a facial feature map.

[0089] For details, please refer to Figure 4 , Figure 4The schematic diagram of facial feature points involved in the third embodiment of the disease detection method based on facial images of the present invention is shown. After a large amount of facial data of disease patients is obtained by shooting, the facial key point detection algorithm can be used to extract key feature points from the obtained facial data of a large amount of disease patients. In the embodiment of the present application, 68 key feature points are extracted from the facial data of each disease patient by the facial key point detection algorithm. It can be understood that the aforementioned 68 key feature points are the values ​​obtained after the experiment in the present disclosure, but key feature points of other values ​​can also be extracted during the actual operation. In some embodiments, the aforementioned facial key point detection algorithm can be implemented by specific methods such as the DAN algorithm or the OpenCV Dlib library. The key feature point extraction using the DAN algorithm as an example can be specifically as follows: first, the DAN sequence is determined and collected on the facial data of a large amount of disease patients by the DAN technology, and then the DAN sequence is averaged to ensure that the extracted feature points are evenly distributed (it can be understood that the extracted feature points include every organ of the face), and finally the DNA sequence on the averaged facial data is subjected to 68 feature point extraction operations. The process of obtaining the feature extraction graph can be participated by a convolutional neural network. Specifically, the aforementioned several feature points can be input as input vectors into the convolutional neural network, and then the convolutional neural network is used to extract the concrete features (i.e., the impact of each disease type on the patient's facial data) of the several feature points, and then the extraction results are spliced ​​to generate a feature extraction graph. It can be understood that the above-mentioned convolutional neural network (CNN) includes but is not limited to commonly used image convolutional neural networks such as Resnet and VGG.

[0090] Based on the first and second embodiments of the fusion abnormality detection method of the present invention, a third embodiment of the disease detection method based on facial images of the present invention is proposed.

[0091] In the third embodiment of the disease detection method based on facial images of the present invention, in the above step S20, the step of obtaining the basic feature vector of each of the regions of interest based on the facial feature map includes:

[0092] Step S201, calculating the image size ratio between the face image of the human face and the face feature map;

[0093] Step S202: Project each of the regions of interest onto the facial feature map according to the image size ratio to obtain a basic feature vector of each of the regions of interest.

[0094] In this embodiment, after the face is divided and the facial feature map is obtained, the ROI area can be superimposed on the facial feature map based on the image size ratio between the facial image of the human face and the facial feature map, and unified to obtain the basic feature vector of the ROI area.

[0095] As an example, the ratio of the original image to the feature map can be calculated based on their sizes, and then each ROI area in the original image is projected onto the feature map according to the proportional size, thereby obtaining a feature vector of each ROI area on the feature map area.

[0096] In addition, an embodiment of the present invention also proposes a storage medium, on which a facial image-based disease detection program is stored. When the facial image-based disease detection program is executed by a processor, the steps of the facial image-based disease detection method described above are implemented.

[0097] In addition, an embodiment of the present invention also proposes a computer program product, including a facial image-based disease detection program, which implements the steps of the facial image-based disease detection method described above when executed by a processor.

[0098] The specific implementation methods of the computer program product of the present invention are basically the same as the above-mentioned embodiments of the disease detection method based on facial images, and will not be repeated here.

[0099] Reference Figure 5 , Figure 5 This is a structural block diagram of the first embodiment of the disease detection device based on facial images of the present invention.

[0100] like Figure 5 As shown, the disease detection device based on facial images proposed in an embodiment of the present invention includes:

[0101] A feature extraction module, used for acquiring a facial feature map of an inputted human face image based on the inputted human face image;

[0102] A region division module, used for dividing the face image into a plurality of regions of interest based on a preset division template, and obtaining a basic feature vector of each region of interest based on the facial feature map;

[0103] A prediction module is used to input each of the basic feature vectors into a preset prediction model to obtain a disease prediction result corresponding to the face image, wherein the prediction model is trained using each of the basic feature vectors of the face image as input and the disease information corresponding to the face image as a label.

[0104] Optionally, the feature extraction module is further used to:

[0105] Detecting the input human face image using a preset human face key point detection algorithm to obtain information on multiple feature points of the human face image;

[0106] Performing feature extraction on a human face image containing a plurality of feature point information through a preset convolutional neural network to obtain a feature extraction result corresponding to each feature point information;

[0107] The feature extraction results are spliced ​​together to obtain a facial feature map of the human face image.

[0108] Optionally, the region division module is further used for:

[0109] Calculating the image size ratio between the human face facial image and the facial feature map;

[0110] Each of the regions of interest is projected onto the facial feature map according to the image size ratio to obtain a basic feature vector of each of the regions of interest.

[0111] Optionally, the prediction module is also used to:

[0112] Each of the basic feature vectors is input into the decoder module of the prediction model to obtain the regional feature vector and regional attention score of each of the regions of interest related to the disease type, wherein the regional attention score is used to characterize the contribution of the region of interest to the prediction of the disease type.

[0113] The disease prediction result corresponding to the facial image is obtained based on the feature vectors of each region and the attention scores of each region.

[0114] Optionally, the prediction module is also used to:

[0115] Inputting each of the basic feature vectors into the decoder module of the prediction model to obtain a regional feature vector and a regional attention coefficient of each of the regions of interest that are related to the disease type;

[0116] For multiple regional attention coefficients of each region of interest, the regional attention coefficients are averaged and normalized to obtain the regional attention score of the region of interest.

[0117] Optionally, the prediction module is also used to:

[0118] Determine whether there is a target area attention score greater than a preset value among the area attention scores;

[0119] If the target area attention score exists, the disease prediction result corresponding to the human face image is obtained based on the regional feature vector corresponding to the target area attention score and the multi-layer perceptron module of the prediction model.

[0120] Other embodiments or specific implementations of the facial image-based disease detection device of the present invention may refer to the above-mentioned method embodiments and will not be described in detail here.

[0121] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0122] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0123] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0124] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A disease detection method based on facial images, characterized in that: The method comprises: Acquire a facial feature map of the human face image based on an input human face image; Dividing the face image into a plurality of regions of interest based on a preset division template, and acquiring a basic feature vector of each region of interest based on the facial feature map; Each of the basic feature vectors is input into a preset prediction model to obtain a disease prediction result corresponding to the face image, wherein the prediction model is trained using the basic feature vectors of the face image as input and the disease information corresponding to the face image as a label.

2. The disease detection method based on facial images according to claim 1, characterized in that: The step of obtaining a facial feature map of the human face image based on the input human face image comprises: Detecting the input human face image using a preset human face key point detection algorithm to obtain information on multiple feature points of the human face image; Performing feature extraction on a human face image containing a plurality of feature point information through a preset convolutional neural network to obtain a feature extraction result corresponding to each feature point information; The feature extraction results are spliced ​​together to obtain a facial feature map of the human face image.

3. The disease detection method based on facial images according to claim 1, characterized in that: The step of acquiring the basic feature vector of each of the regions of interest based on the facial feature map comprises: Calculating the image size ratio between the human face facial image and the facial feature map; Each of the regions of interest is projected onto the facial feature map according to the image size ratio to obtain a basic feature vector of each of the regions of interest.

4. The disease detection method based on facial images according to claim 1, characterized in that: The step of inputting each of the basic feature vectors into a preset prediction model to obtain a disease prediction result corresponding to the facial image includes: Inputting each of the basic feature vectors into the decoder module of the prediction model to obtain a regional feature vector and a regional attention score of each of the regions of interest related to the disease type, wherein the regional attention score is used to characterize the contribution of the region of interest to the prediction of the disease type; The disease prediction result corresponding to the facial image is obtained based on the feature vectors of each region and the attention scores of each region.

5. The disease detection method based on facial images according to claim 4, characterized in that: The step of inputting each of the basic feature vectors into the decoder module of the prediction model to obtain the regional feature vector and regional attention score of each of the regions of interest related to the disease type comprises: Inputting each of the basic feature vectors into the decoder module of the prediction model to obtain a regional feature vector and a regional attention coefficient of each of the regions of interest that are related to the disease type; For multiple regional attention coefficients of each region of interest, the regional attention coefficients are averaged and normalized to obtain the regional attention score of the region of interest.

6. The disease detection method based on facial images according to claim 4, characterized in that: The step of obtaining the disease prediction result corresponding to the face image based on each of the regional feature vectors and each of the regional attention scores comprises: Determine whether there is a target area attention score greater than a preset value among the area attention scores; If the target area attention score exists, the disease prediction result corresponding to the human face image is obtained based on the regional feature vector corresponding to the target area attention score and the multi-layer perceptron module of the prediction model.

7. A disease detection device based on facial images, characterized in that: The device comprises: A feature extraction module, used for acquiring a facial feature map of an inputted human face image based on the inputted human face image; A region division module, used for dividing the face image into a plurality of regions of interest based on a preset division template, and obtaining a basic feature vector of each region of interest based on the facial feature map; A prediction module is used to input each of the basic feature vectors into a preset prediction model to obtain a disease prediction result corresponding to the face image, wherein the prediction model is trained using each of the basic feature vectors of the face image as input and the disease information corresponding to the face image as a label.

8. A disease detection device based on facial images, characterized in that: The device includes: a memory, a processor, and a facial image-based disease detection program stored in the memory and executable on the processor, wherein the facial image-based disease detection program is configured to implement the steps of the facial image-based disease detection method as described in any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium stores a facial image-based disease detection program, which, when executed by a processor, implements the steps of the facial image-based disease detection method as described in any one of claims 1 to 6.

10. A computer program product, characterized in that The computer program product comprises a facial image-based disease detection program, which, when executed by a processor, implements the steps of the facial image-based disease detection method according to any one of claims 1 to 6.