A method for constructing a recognition model and a method for early warning of gastrointestinal diseases based on tongue diagnosis.

Through adversarial training and edge recognition technology, combined with real and virtual sample sets, the problem of insufficient tongue image recognition accuracy in tongue diagnosis is solved, gastrointestinal disease recognition with high accuracy and low misjudgment rate is achieved, and the robustness and accuracy of the model are enhanced. Detection efficiency.

CN109558891BActive Publication Date: 2024-09-13GUANGDONG MATVIEW INTELLIGENT SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811172063.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-10-09
Publication Date
2024-09-13
Estimated Expiration
2038-10-09

AI Technical Summary

Technical Problem

The existing technology is difficult to accurately identify 3D cracks in tongue images during tongue diagnosis, resulting in insufficient recognition accuracy and reliability and a high misjudgment rate.

Method used

The adversarial training method is used to construct a gastroenterology recognition model, and real and virtual sample sets are combined for feature extraction and edge recognition. The recognition ability of the model is enhanced through adversarial training, and scaling, rotation and normalization are performed in the preprocessing step to divide the tongue image. into five partitions to improve recognition accuracy.

Benefits of technology

It significantly improves the accuracy of gastrointestinal disease identification, reduces misjudgments, enhances the robustness of the model, can accurately identify real cracks under the influence of different lighting and food, and improves detection efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109558891B
    Figure CN109558891B
Patent Text Reader

Abstract

The present invention discloses a gastrointestinal disease early warning method based on tongue diagnosis, comprising the following steps: an acquisition step: acquiring current image information, wherein the image information includes a tongue image; an extraction step: extracting the tongue image in the current image information; a comparison step: comparing the tongue image with a gastrointestinal disease recognition model to determine whether there are cracks in the tongue area, and if so, sending an alarm message. The present invention also provides a recognition model construction method. The gastrointestinal disease early warning method based on tongue diagnosis of the present invention determines the user's physical condition by comparing the acquired image with a gastrointestinal disease recognition model; the gastrointestinal disease recognition model performs adversarial training on real graphics and artificially simulated tongue crack images to make the gastrointestinal disease recognition model more robust and avoid the problem of a large number of misjudgments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of tongue diagnosis, and in particular to a recognition model construction method and a gastrointestinal disease early warning method based on tongue diagnosis. Background Art

[0002] At present, the use of computer image processing technology to analyze tongue image characteristics can more comprehensively reflect the situation of tongue images, conform to the habits of tongue diagnosis in traditional Chinese medicine, facilitate the collection and preservation of tongue diagnosis data, and have good practical value. It collects the subject's color tongue image under certain lighting conditions, digitizes it and inputs it into the computer, uses image analysis technology to automatically analyze the characteristics of the tongue image, and stores the results in the computer.

[0003] In the specific implementation of tongue image recognition, there is a big difference between humans and machines, because when observing with the human eye, 3D images can be viewed and the differences can be seen more clearly, but when detected by a computer, it is not easy to see the 3D image. Therefore, how to design a tongue diagnosis recognition model with high recognition accuracy and good reliability has become a technical problem to be solved by those skilled in the art. Summary of the invention

[0004] In order to overcome the deficiencies of the prior art, one of the objectives of the present invention is to provide a recognition model construction method, which can improve the recognition accuracy of the gastrointestinal disease recognition model.

[0005] A second object of the present invention is to provide a computer-readable storage medium that can improve the recognition accuracy of a gastrointestinal disease recognition model.

[0006] The third purpose of this law is to provide a gastrointestinal disease early warning method based on tongue diagnosis, which can solve the technical problem of improving the accuracy of gastrointestinal disease identification.

[0007] A fourth object of the present invention is to provide an electronic device that can solve the technical problem of improving the accuracy of gastrointestinal disease identification.

[0008] A fifth object of the present invention is to provide a computer-readable storage medium that can solve the technical problem of improving the accuracy of gastrointestinal disease identification.

[0009] One of the purposes of the present invention is achieved by the following technical solution:

[0010] A recognition model construction method comprises the following steps:

[0011] Acquisition step: acquiring a real sample set and a virtual sample set, wherein the real sample set is an original tongue image, and the virtual sample set is a simulated tongue image;

[0012] Extraction step: extract all tongue images in the real sample set and the virtual sample set;

[0013] Model building steps: All tongue images are trained adversarially to build a gastrointestinal disease recognition model.

[0014] Furthermore, after the extraction step, a preprocessing step is also included: preprocessing the extracted tongue image, and the preprocessing includes scaling, rotating and normalizing.

[0015] Furthermore, after the extraction step, an edge recognition step is also included: identifying the crack areas in all tongue images by using an edge recognition algorithm;

[0016] In the model building step: adversarial training is performed on the crack areas in all tongue images to build a gastrointestinal disease recognition model.

[0017] The second object of the present invention is achieved by adopting the following technical solution:

[0018] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements a recognition model construction method as described in any one of the purposes of the present invention.

[0019] The third object of the present invention is achieved by adopting the following technical solution:

[0020] A gastrointestinal disease early warning method based on tongue diagnosis comprises the following steps:

[0021] Acquisition step: acquiring current image information, wherein the image information includes a tongue image;

[0022] Extraction step: extracting the tongue image from the current image information;

[0023] Comparison step: Compare the tongue image with the gastrointestinal disease recognition model to determine whether there are cracks in the tongue area, and if so, send an alarm message.

[0024] Furthermore, after the extraction step, a preprocessing step is also included: preprocessing the tongue image in the current image information, wherein the preprocessing includes scaling, rotating and normalizing.

[0025] Furthermore, after the extraction step, an edge recognition step is also included: identifying the crack area in the tongue image by an edge recognition algorithm;

[0026] In the comparison step: the crack area in the tongue image is compared with the gastrointestinal disease recognition model to determine whether the crack area is a real crack, and if so, an alarm message is sent.

[0027] Furthermore, after the extraction step, an image processing step is also included, and the image processing step includes the following sub-steps:

[0028] Draw the outline of the tongue edge according to the tongue image;

[0029] Divide the tongue image into five partitions according to the edge contour line, wherein the five partitions include the tongue tip, the tongue middle, the tongue root, the tongue left side and the tongue right side;

[0030] A symmetry line is drawn with the tip of the tongue as the symmetry point, and the inclined pixel points are plane stretched to obtain the processed tongue image.

[0031] Furthermore, the warning information is a gastrointestinal disease warning or a dietary recipe prevention.

[0032] The fourth object of the present invention is achieved by adopting the following technical solution:

[0033] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a method for early warning of gastrointestinal diseases based on tongue diagnosis as described in any one of the third objectives of the present invention is implemented.

[0034] The fifth object of the present invention is achieved by adopting the following technical solution:

[0035] A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for early warning of gastrointestinal diseases based on tongue diagnosis as described in any one of the third objectives of the present invention is implemented.

[0036] Compared with the prior art, the present invention has the following beneficial effects:

[0037] The tongue diagnosis-based gastrointestinal disease early warning method of the present invention compares the acquired image with the gastrointestinal disease recognition model to judge the user's physical condition; the gastrointestinal disease recognition model performs adversarial training on real graphics and artificially simulated tongue fissure images to make the gastrointestinal disease recognition model more robust and avoid the problem of a large number of misjudgments. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is a flow chart of the recognition model building method of Embodiment 1;

[0039] Figure 2 This is a flow chart of the gastrointestinal disease early warning method based on tongue diagnosis of Example 3. DETAILED DESCRIPTION

[0040] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of no conflict, the various embodiments or technical features described below can be arbitrarily combined to form a new embodiment.

[0041] Embodiment 1

[0042] In the specific implementation of tongue image recognition, there are also big differences between humans and machines. Because when observing with the human eye, 3D images can be viewed, and the differences between cracks can be seen more clearly, but it is not easy to see 3D images when detected by computer. If only edge recognition is used to identify cracks on the tongue, the error rate will be high due to the high accuracy of edge recognition. Because the edge recognition algorithm can not only identify the shadow lines caused by cracks, but also the shadow lines caused by the existence of shadows between different colors on the tongue or other situations; edge recognition will uniformly identify this method as cracks, which will cause a large deviation in the recognition results.

[0043] like Figure 1 As shown, this embodiment provides a recognition model construction method, comprising the following steps:

[0044] S11: Obtain a real sample set and a virtual sample set, wherein the real sample set is the original tongue image, and the virtual sample set is the simulated tongue image; the real sample set here is an unmodified picture, which comes from the pictures of people who have been confirmed to have gastrointestinal diseases and have cracks in the middle and rear ends of the tongue. These are used as the basic learning set for training and learning, but these alone are not enough, and there is no way to accurately identify the correct features for discrimination. Therefore, a virtual sample set is also established for training. The pictures collected by the virtual sample set here are pictures of tongues without symptoms, but they need to be processed manually. Software can be used to simulate and generate an image with a crack on the tongue image. Such processing is performed on all images in the virtual sample set, and more preferably, all simulated crack images are preferably inconsistent, so as to improve the recognition accuracy of the model.

[0045] S12: extract all tongue images in the real sample set and the virtual sample set; after step S12, a preprocessing step is also included: preprocessing the acquired tongue images, and the preprocessing includes scaling, rotation and normalization. This step is mainly for preprocessing the acquired sample images. In the process of data processing, if the acquired images are not standardized, the results obtained in the subsequent image processing and recognition processes may be biased. This deviation is not caused by the deviation of the object itself, but by the problem caused by not performing image normalization.

[0046] After step S12, the method further includes S121: identifying crack areas in all tongue images by edge recognition algorithm. This step is mainly to improve recognition efficiency, because edge recognition algorithm has high accuracy, if cracks appear, they will definitely be recognized, if no cracks appear, they will most likely not be recognized, and the edge recognition algorithm can eliminate some images that cannot be recognized by the machine itself, thereby improving the efficiency of model training.

[0047] S13: Perform adversarial training on the crack areas in all tongue images to build a gastrointestinal disease recognition model. By performing adversarial training on the real sample set and the virtual sample set together, and then identifying the subtle differences and patterns between the two, the recognition model is made more robust. The adversarial training method used in this embodiment can effectively identify and distinguish the features of the images in the real sample set and the virtual sample set, and then continuously identify and judge the differences between the two methods to improve the model's recognition ability for the images produced by the two methods. Provide a more accurate model for more effective detection. Through such adversarial training, even if the user eats colored food, the model can distinguish whether the cracks and depressions are caused by gastrointestinal disease or other reasons.

[0048] Embodiment 2

[0049] Embodiment 2 discloses a computer-readable storage medium, which is used to store a program, and when the program is executed by a processor, the recognition model construction method of embodiment 1 is implemented.

[0050] Embodiment 3

[0051] like Figure 2 As shown, this embodiment provides a gastrointestinal disease early warning method based on tongue diagnosis, comprising the following steps:

[0052] S21: Obtain the current image information, which includes the tongue image; this is mainly to obtain the image for basic judgment. When the user uses the corresponding product applied for, he needs to provide the corresponding image first. The image can be obtained directly through a camera or directly transmitted to the product, thereby completing the transmission of the basic judgment image.

[0053] S22: Extract the tongue image in the current image information; after step S22, a preprocessing step is also included: preprocessing the tongue image in the current image information, the preprocessing includes scaling, rotation and normalization. This step is also for extracting the image information of the tongue, and then further analyzing the tongue image. In the extraction step, it is necessary to compare and identify the tongue image based on the constructed tongue model.

[0054] After step S22, it also includes S221: identifying the crack area in the tongue image through the edge recognition algorithm. Because the edge recognition algorithm has high accuracy, if there is a crack, it will definitely be recognized. If there is no crack, it will most likely not be recognized. This step is mainly to improve the recognition efficiency, because in the actual detection process, some users do not have the corresponding symptoms. If all models are compared, it will be more consuming and wasteful of resources, and it will also increase the detection time. If the edge recognition method is used first, a large range of screening can be performed first, which is equivalent to setting a primary screening standard, which can greatly improve the efficiency of the detection. Tongue images with crack approximations can be screened out first.

[0055] After step S22, the method further includes step S222: after the extraction step, an image processing step is also included, and the image processing step includes the following sub-steps:

[0056] Draw the outline of the tongue edge according to the tongue image;

[0057] Divide the tongue image into five partitions according to the edge contour line, wherein the five partitions include the tongue tip, the tongue middle, the tongue root, the tongue left side and the tongue right side;

[0058] A symmetry line is drawn with the tip of the tongue as the symmetry point, and the inclined pixel points are plane stretched to obtain the processed tongue image.

[0059] S23: Compare the crack area in the tongue image with the gastrointestinal disease recognition model to determine whether the crack area is a real crack. If so, send an alarm message. The alarm message is a gastrointestinal disease alarm or a dietary recipe prevention. Due to the high accuracy of edge recognition, most of the non-real cracks will be selected as crack images, so it is necessary to further improve the accuracy to further identify these images. When it is identified that there is a real crack, the user is prompted to eat some ingredients to prevent gastrointestinal diseases for prevention.

[0060] The tongue diagnosis-based gastrointestinal disease early warning method of the present invention compares the acquired image with the gastrointestinal disease recognition model to judge the user's physical condition; the gastrointestinal disease recognition model performs adversarial training on real graphics and artificially simulated tongue fissure images to make the gastrointestinal disease recognition model more robust and avoid the problem of a large number of misjudgments.

[0061] Embodiment 4

[0062] Embodiment 4 discloses an electronic device, which includes a processor, a memory, and a program, wherein the processor and the memory may be one or more, the program is stored in the memory, and is configured to be executed by the processor, and when the processor executes the program, the gastrointestinal disease early warning method based on tongue diagnosis of embodiment 3 is implemented. The electronic device can be a series of electronic devices such as a mobile phone, a computer, and a tablet computer.

[0063] Embodiment 5

[0064] Embodiment 5 discloses a computer-readable storage medium, which is used to store a program. When the program is executed by a processor, the gastrointestinal disease early warning method based on tongue diagnosis of embodiment 3 is implemented.

[0065] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the operations of the method described above, but can also execute related operations in the method provided by any embodiment of the present invention.

[0066] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it 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 is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0067] It is worth noting that in the above-mentioned embodiment of the content update notification device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0068] The above-mentioned embodiments are only preferred embodiments of the present invention and cannot be used to limit the scope of protection of the present invention. Any non-substantial changes and substitutions made by technicians in this field on the basis of the present invention shall fall within the scope of protection required by the present invention.

Claims

1. A gastrointestinal disease early warning method based on tongue diagnosis, characterized in that: The following steps are involved: Acquisition step: acquiring current image information, wherein the image information includes a tongue image; Extraction step: extracting the tongue image from the current image information; Edge recognition step: identifying the crack area in the tongue image by edge recognition algorithm; Comparison step: comparing the crack area in the tongue image with the gastrointestinal disease recognition model to determine whether the crack area is a real crack, and if so, sending an alarm message; wherein the gastrointestinal disease recognition model is based on the crack areas in all tongue images in the real sample set and the virtual sample set for adversarial training to perform feature recognition and differentiation on the images in the real sample set and the virtual sample set, the real sample set is the original tongue image, the virtual sample set is the simulated tongue image, and the original tongue image is a picture of a tongue that has been confirmed to have a gastrointestinal disease and has cracks in the middle and rear ends, and the simulated tongue image is an image with a crack simulated on a picture of a tongue without symptoms; The image processing step is also included after the extraction step, and the image processing step includes the following sub-steps: Draw the outline of the tongue edge according to the tongue image; Divide the tongue image into five partitions according to the edge contour line, wherein the five partitions include the tongue tip, the tongue middle, the tongue root, the tongue left side and the tongue right side; A symmetry line is drawn with the tip of the tongue as the symmetry point, and the inclined pixel points are plane stretched to obtain the processed tongue image.

2. A method for early warning of gastrointestinal diseases based on tongue diagnosis as claimed in claim 1, characterized in that: The step of preprocessing is also included after the extraction step: preprocessing the tongue image in the extracted current image information, and the preprocessing includes scaling, rotating and normalizing.

3. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for early warning of gastrointestinal diseases based on tongue diagnosis as described in any one of claims 1-2 is implemented.

4. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements a gastrointestinal disease early warning method based on tongue diagnosis as described in any one of claims 1-2.