Trained model generation device, information processing device, trained model generation method, information processing method, trained model generation program, and information processing program
The trained model generation device uses machine learning to classify object shapes by maximizing same-subject probability and varying across subjects, addressing the challenge of human determination limitations in shape categorization for medical and other applications.
Patent Information
- Application Number
- JP2024093213
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-07
AI Technical Summary
Existing techniques struggle to accurately classify the shapes of objects when it is difficult for humans to determine the shape category to which they belong, particularly for genetically inherited body parts like the tongue, which hinders applications in medical diagnostics and other classification tasks.
A trained model generation device and method that utilizes machine learning to process images, adjusting for image angles and noise, and trains models to maximize the probability of the same shape category for the same subject while increasing variance across different subjects, using equations (A), (B), and (C) to minimize loss functions.
Enables accurate classification of object shapes even when human determination is challenging, allowing for applications in medical diagnostics and other classification tasks with high discrimination performance.
Smart Images

Figure 0007539073000001
Abstract
Description
[Technical field]
[0001] The disclosed technology relates to a trained model generation device, an information processing device, a trained model generation method, an information processing method, a trained model generation program, and an information processing program. [Background technology]
[0002] Patent Document 1 discloses a method for classifying tongue shapes using a computer. Specifically, Patent Document 1 discloses a technology for identifying tongue shapes by acquiring 120 peripheral points from a tongue image using snake calculation, equalizing the peripheral points, and correcting the tongue shape for deflection.
[0003] A tongue-like object recognition method is disclosed in Patent Document 2. Specifically, Patent Document 2 discloses a convolutional neural network as a tongue-like object identification model, and discloses that tongue segmentation is performed using this convolutional neural network.
[0004] A tongue shape identification method based on image processing is disclosed in Patent Document 3. Specifically, Patent Document 3 discloses a technology in which a tongue body image is subjected to gray processing based on a previously acquired HSV color space model to obtain a binary tongue body image, boundary depiction is performed on the binary tongue body image to obtain a tongue image boundary, and tongue shape identification is performed on the tongue image boundary.
[0005] Patent Document 4 discloses a method for identifying the shape of tongue cracks based on computer vision. Specifically, Patent Document 4 discloses a technology for detecting and marking tongue cracks, and for identifying and marking the shape of the cracks on the tongue. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] China Patent Publication No. 1932848 [Patent Document 2] China Patent Publication No. 110363073 [Patent Document 3] China Patent Application Publication No. 111582113 [Patent Document 4] China Patent Application Publication No. 113177499 Summary of the Invention [Problem to be solved by the invention]
[0007] Incidentally, the shape of the tongue is said to be a genetic trait. There are other body parts besides the tongue that are said to be genetic traits. If it were possible to classify the shapes of body parts that are genetic traits, this could be applied to, for example, classifying pathological conditions in medicine. For this reason, technology for classifying the shapes of body parts is considered to be useful.
[0008] In addition, a technology for classifying the shapes of various objects, not limited to body parts, is useful. As a method for classifying the shapes of objects, for example, a method is considered in which a person judges in advance which shape category out of a plurality of shape categories the shape of the object belongs to, and generates a trained model using the judgment result as learning data. In this case, for example, when an image in which a subject appears is input to the trained model, the probability of the shape category to which the subject belongs is output from the trained model.
[0009] However, there are cases where a person cannot determine in advance which shape category a learning object belongs to. For example, it is difficult to determine whether a certain object and another object belong to the same shape category, and it may be difficult for a person to determine this.
[0010] For this reason, if it is difficult for a person to determine the shape category to which a learning subject belongs, there is a problem that it is also difficult to classify the shape of the target subject.
[0011] The disclosed technology has been made in consideration of the above-mentioned circumstances, and provides a trained model generation device, an information processing device, a trained model generation method, an information processing method, a trained model generation program, and an information processing program that can classify the shape of a target subject even when it is difficult for a human to determine the shape category to which the subject belongs. [Means for solving the problem]
[0012] In order to achieve the above object, a first aspect of the present disclosure is a trained model generation device that includes a training acquisition unit that acquires a plurality of training images in which a subject that is a part of an individual or a species is photographed for each individual or species, and a trained model generation unit that generates the trained model by training a training model by machine learning based on the plurality of training images, so that when a trained model is generated in which a probability of a shape category to which the subject belongs is output when an image in which the subject is photographed is input, the training model is trained so that when training images in which the subject of the same individual or species is photographed are input to the training model, the probability of the same shape category is highest, and when training images in which the subject of a plurality of different individuals or species is photographed are each input to the training model, the training model is trained so that the variance of the probability distribution output from the training model is large, thereby generating the trained model.
[0013] A second aspect of the present disclosure is a trained model generation method in which a computer executes a process of acquiring a plurality of training images each showing a subject that is a part of an individual or a species, the plurality of training images being taken for each individual or species, and training a training model by machine learning based on the plurality of training images to generate a trained model that outputs a probability of a shape category to which the subject belongs when an image showing the subject is input, the training model is trained so that when training images showing the subject of the same individual or species are input to the training model, the probability of the same shape category is highest, and when training images showing the subject of multiple different individuals or species are each input to the training model, the training model is trained so that the variance of the probability distribution output from the training model is large, thereby generating the trained model.
[0014] A third aspect of the present disclosure is a trained model generation program for causing a computer to execute a process of acquiring a plurality of training images each showing a subject that is a part of an individual or species, the plurality of training images being taken for each individual or species, and training a training model by machine learning based on the plurality of training images, thereby generating a trained model that outputs a probability of a shape category to which the subject belongs when an image showing the subject is input, by training the training model so that when training images showing the subject of the same individual or species are input to the training model, the probability of the same shape category is highest, and training the training model so that when each of training images showing the subject of multiple different individuals or species is input to the training model, the variance of the probability distribution output from the training model is large, thereby generating the trained model.
[0015] A fourth aspect of the present disclosure is an information processing device that includes an acquisition unit that acquires an image containing a target subject, and an identification unit that inputs the image acquired by the acquisition unit into a previously generated trained model to acquire a probability of a shape category output from the trained model and identifies the shape category to which the subject in the image belongs using the probability, wherein the trained model is a trained model that outputs a probability of a shape category to which the subject in the image belongs when an image containing a subject is input, and the trained model is obtained by training the training model so that when training images containing the subject of the same individual or species are input to the training model, the probability of the same shape category is highest, and when training images containing the subject of multiple different individuals or species are input to the training model, the variance of the probability distribution output from the training model is large.
[0016] A fifth aspect of the present disclosure is an information processing method in which a computer executes a process, comprising: acquiring an image containing a target subject; inputting the acquired image into a trained model generated in advance to acquire a probability of a shape category output from the trained model; and using the probability to identify a shape category to which a body part contained in the image belongs; the trained model is a trained model that outputs a probability of a shape category to which the subject contained in the image belongs when an image containing a subject is input; the trained model is obtained by training the training model such that, when training images containing the subject of the same individual or species are input to the training model, the probability of the same shape category is highest; and, when training images containing the subject of multiple different individuals or species are input to the training model, the variance of the probability distribution output from the training model is large.
[0017] A sixth aspect of the present disclosure is an information processing program for causing a computer to execute a process comprising: acquiring an image containing a target subject; inputting the acquired image into a trained model generated in advance to acquire a probability of a shape category output from the trained model; and using the probability to identify a shape category to which the subject in the image belongs; the trained model is a trained model that outputs a probability of a shape category to which the subject in the image belongs when an image containing a subject is input; the trained model is obtained by training the training model so that when training images containing the subject of the same individual or species are input to the training model, the probability of the same shape category is highest, and when training images containing the subject of multiple different individuals or species are input to the training model, the variance of the probability distribution output from the training model is large. Effect of the Invention
[0018] According to the disclosed technology, even when it is difficult for a person to determine the shape category to which a subject belongs, it is possible to obtain an effect of classifying the shape of a target subject. [Brief description of the drawings]
[0019] [Figure 1] FIG. 1 illustrates an example of a schematic configuration of an information processing apparatus according to an embodiment. [Diagram 2] FIG. 13 is a diagram for explaining pre-processing. [Diagram 3] FIG. 1 is a diagram for explaining a trained model. [Figure 4] FIG. 13 is a diagram for explaining the probability distribution output from the trained model. [Diagram 5] FIG. 13 is a diagram for explaining cross entropy. [Figure 6] FIG. 13 is a diagram for explaining control of the number of categories. [Figure 7] FIG. 1 illustrates an example of a computer constituting an information processing device. [Figure 8] FIG. 11 illustrates an example of pre-processing executed by the information processing apparatus of the embodiment. [Figure 9] FIG. 10 is a diagram illustrating an example of a trained model generation process executed by the information processing apparatus of the embodiment. [Figure 10] FIG. 2 illustrates an example of information processing executed by the information processing apparatus of the embodiment. [Figure 11] FIG. 1 shows the results of an example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0020] Hereinafter, embodiments of the disclosed technology will be described in detail with reference to the drawings.
[0021] <Information processing device according to an embodiment> Fig. 1 shows an information processing device 10 according to an embodiment. As shown in Fig. 1, the information processing device 10 functionally includes a data storage unit 20, a learning acquisition unit 22, a preprocessing unit 24, a learning data storage unit 26, a trained model generation unit 28, a trained model storage unit 30, an acquisition unit 32, an identification unit 34, and an output unit 36. The information processing device 10 is realized by a computer as described below.
[0022] The information processing device 10 of this embodiment classifies the shape (or contour) of the tongue using a machine learning model. A specific description will be given below. In this embodiment, a case where a subject, which is a part of an individual or a species, is a tongue will be described as an example. In addition, in this embodiment, a case where a subject corresponds to an individual or a species will be described as an example.
[0023] A plurality of learning images of the tongue of each subject are stored in the data storage unit 20. The learning images are images of the tongue photographed for each subject.
[0024] The learning acquisition unit 22 reads out a plurality of learning images stored in the data storage unit 20, thereby acquiring a plurality of learning images.
[0025] The pre-processing unit 24 performs pre-processing on each of the multiple learning images acquired by the learning acquisition unit 22 using a known method.
[0026] Specifically, first, the preprocessing unit 24 extracts a tongue region from the learning image using a known image processing method. For example, the preprocessing unit 24 extracts the tongue region from the learning image using a trained model for tongue region extraction that outputs 1 for the tongue region and 0 for regions other than the tongue region for an input image. Note that this trained model for tongue region extraction can be constructed by a known machine learning technique.
[0027] Next, the pre-processing unit 24 uses a known image processing method to remove noise in the image from which the tongue region has been extracted. Then, the pre-processing unit 24 uses a known image processing method to correct the inclination of the tongue region in the image. Specifically, the pre-processing unit 24 calculates an angle that maximizes the left-right symmetry of the tongue region, and rotates the tongue region according to the calculated angle.
[0028] FIG. 2 is a diagram for explaining the pre-processing. As shown in FIG. 2, first, the pre-processing unit 24 uses a known image processing method to extract a tongue region from the learning image IM, and generates an image IM1 from which the tongue region is extracted. Next, the pre-processing unit 24 uses a known image processing method to remove noise from the image IM1 from which the tongue region is extracted. As shown in FIG. 2, noise is removed from the image IM1 from which the tongue region is extracted, and an image IM2 is generated. Then, the pre-processing unit 24 adjusts the angle of the image IM2 from which the noise has been removed, to generate an image IM3 in which the tongue region appears.
[0029] The learning data storage unit 26 stores a plurality of learning images that have been preprocessed by the preprocessing unit 24 .
[0030] The trained model generation unit 28 trains a training model by unsupervised machine learning based on a plurality of preprocessed training images stored in the training data storage unit 26, thereby generating a trained model that outputs the probability of a shape category to which the tongue belongs when an image of the tongue is input. The trained model is, for example, a known neural network model.
[0031] 3 is a diagram for explaining the trained model of this embodiment. As shown in FIG. 3, when an image showing a tongue is input to the trained model of this embodiment, the probability y that the tongue shown in the image belongs to the shape category is output. In the example of FIG. 3, five shape categories are set, and the probability y that the tongue shown in the image belongs to shape category 1 is 1 , the probability that the tongue belongs to shape category 2, y 2 , the probability that the tongue belongs to shape category 3, y 3 , the probability that the tongue belongs to shape category 4, y 4 , and the probability that the tongue belongs to shape category 5, y 5 The output is the probability y 1 , probability y 2 , probability y 3 , probability y 4 , and probability y 5 The sum of these is adjusted using the well-known softmax function to be 1.
[0032] 3, the trained model generation unit 28 trains the training model so that the probability of the same shape category is highest when training images of the same subject are input to the training model. Also, when generating the trained model, the trained model generation unit 28 trains the training model so that the variance of the probability distribution output from the training model is large when training images of multiple different subjects are each input to the training model.
[0033] More specifically, the trained model generation unit 28 calculates the probability y of the i-th shape category output from the training model, as shown in the following formula (A): iA training model is trained so that the first entropy for is small, and a trained model is generated. The following formula (A) is a loss function for maximizing the probability of a single shape category without dispersing the probability distribution output from the trained model too much when a certain image is input to the trained model.
[0034]
number
[0035] The trained model generation unit 28 also calculates the probability y of the i-th shape category to be output when the first training image of a first subject, which is a certain subject, is input to the training model, as shown in the following formula (B). i and the probability y of the i-th shape category being output when the second training image, which is another image of the first subject, is input to the training model. i The training model is trained so that the second entropy, which is the cross entropy between ', is small, and a trained model is generated. The following equation (B) is a loss function that maximizes the probability of the same shape category when two images obtained from the same subject are input to the trained model.
[0036]
number
[0037] In addition, the trained model generation unit 28 calculates the probability y of the i-th shape category that is output when each of the multiple training images is input to the training model, as shown in the following formula (C). i Sample mean of <y iA training model is trained so that the third entropy for > is large, and a trained model is generated. The following formula (C) is a loss function for increasing the variance of the probability distribution output from the trained model when each of the images obtained from multiple different subjects is input to the trained model. This is because each of the tongue images from multiple subjects has a variety of shapes, and it is assumed that the shape categories to which the tongues belong are also distributed.
[0038]
number
[0039] FIG. 4 is a diagram for explaining the probability distribution output from the trained model. As shown in FIG. 4, the trained model generation unit 28 trains the training model so that when a certain preprocessed training image is input to the trained model, the probability for one shape category is high and the probabilities for the other shape categories are low. In the example of FIG. 4, when a certain image is input to the trained model, the probability y 2 is 98%, and the probabilities of the other shape categories are low. To achieve this state, the trained model generation unit 28 calculates the probability y i The learning model is trained so that the first entropy for is small, and a trained model is generated. This makes it possible to suppress the dispersion of the probability of output from the trained model when a certain image is input to the trained model, and to realize a state in which the input image belongs to a specific single shape category.
[0040] The trained model generation unit 28 trains the training model so as to reduce the second entropy shown in the above formula (B) to generate a trained model. The second entropy shown in the above formula (B) is a set of probabilities {y i ’} and the set of probabilities when the second training image of the first subject is input to the trained model {y i} is the cross entropy between
[0041] 5 is a diagram for explaining cross-entropy. In this embodiment, as shown in FIG. 5, an image set is selected from a plurality of preprocessed learning images to set the mini-batch BT. Also, an image set different from the mini-batch BT is selected from a plurality of preprocessed learning images to set it as the reference batch RBT. At this time, the reference batch RBT is configured to be a combination of images different from the mini-batch BT and the same subjects as the mini-batch BT.
[0042] In this case, the set of output probabilities when multiple preprocessed training images included in the mini-batch BT are input to the training model is i} is obtained. In addition, the set of output probabilities {y i In this case, the trained model generation unit 28 obtains a set of output probabilities {y i} and the set of output probabilities corresponding to the reference batch RBT {y iThe training model is trained so that the second entropy, which is the cross entropy between {\displaystyle \mathbb {'}}, is minimized. For example, if the probability of shape category 2 is maximized when an image of the tongue of subject A is input to the trained model, the training model is trained so that the probability of shape category 2 is also maximized when an image of the tongue of subject A taken on a different day is input to the trained model. By generating a trained model so that this second entropy is small, the probability of the same shape category is maximized when images of the same subject are input to the trained model.
[0043] In addition, the trained model generation unit 28 trains the training model so that the third entropy shown in the above formula (C) is large, and generates the trained model. This makes it possible to increase the number of shape categories to which the training images of multiple subjects belong as much as possible. This makes it possible to widely distribute the tongue shape categories.
[0044] When the above formulas (A), (B), and (C) are integrated, it is possible to set the loss function L shown in the following formula (D1).
[0045]
number
[0046] In the above formula (D1), b represents a mini-batch, which is a set of images selected from multiple learning images, and <> b represents the sample mean probability of the shape category of the training images included in the mini-batch, and n represents the number of shape categories. For example, if the number of shape categories is 5, then n = 5.
[0047] As described above, by training the learning model so that the third entropy shown in the above formula (C) is large, a trained model can be obtained in which the shape categories to which the learning images of multiple subjects belong are as dispersed as possible.
[0048] In learning using the above formula (D1), learning proceeds so that all categories are evenly distributed at a ratio of 1 / n. However, there are cases where it is appropriate for the frequency of each category to vary. In this case, classification with variation in frequency between categories is achieved by converging the value of the term in the above formula (C) to the value 0 when all are distributed to a single category, and the intermediate value -εln(1 / n) between the maximum value -ln(1 / n) when all categories are evenly distributed at 1 / n. ε is given in the range of ε∈[0,1]. Based on this, the definition of the loss function in which formula (D1) is modified so that the value of the term in formula (C) does not contribute when it exceeds -εln(1 / n) is written as formula (D2). The optimal value of ε must be determined separately. For example, in the tongue task above, it is possible to select ε that minimizes the proportion of images of the same subject classified across multiple categories in the validation data after learning.
[0049]
number
[0050] FIG. 6 is a diagram for explaining the control of the number of shape categories. The numbers shown in FIG. 6 represent the number of subjects belonging to each shape category. For example, when the parameter ε=1.0, the shape category 1 is 24. This means that when the parameter ε=1.0, the number of subjects with the highest probability of the shape category 1 was 24. As shown in FIG. 6, when the parameter ε is set to a large value, a trained model is generated in which multiple subjects are distributed into many shape categories. On the other hand, when the parameter ε is set to a small value, the distribution of the shape categories is suppressed. For example, when the parameter ε=0.8, the number of tongues belonging to the shape category 5 is 0, so the existence of this shape category 5 is unnecessary. In such a case, measures are taken such as reducing the number of nodes in the final layer of the trained model to four. The number of shape categories is preset by the user through such processing.
[0051] In this embodiment, the trained model generation unit 28 trains the training model so that the loss function L shown in the above formula (D2) is minimized, and generates a trained model. Note that, in this embodiment, an example is described in which the training model is trained so that the loss function L shown in the above formula (D2) is minimized, but the training model may be trained so that the loss function L shown in the above formula (D1) is minimized. In addition, the training model may be trained so that each of the loss functions of the above formulas (A), (B), and (C) is minimized.
[0052] The trained model storage unit 30 stores the trained model generated by the trained model generation unit 28.
[0053] The acquisition unit 32 acquires an image of a target tongue. Note that this image is different from the learning image described above, and is an image for which a shape category is to be identified.
[0054] The identification unit 34 performs preprocessing similar to that performed by the preprocessing unit 24 on the image acquired by the acquisition unit 32. Then, the identification unit 34 inputs the preprocessed image into the trained model stored in the trained model storage unit 30, thereby acquiring the probability of the shape category output from the trained model. The identification unit 34 identifies the shape category to which the tongue in the image belongs using the probability of the shape category. For example, the identification unit 34 identifies the shape category with the highest probability in the probability distribution of shape categories as the shape category to which the tongue in the image belongs.
[0055] The output unit 36 outputs the shape category identified by the identification unit 34 as a result.
[0056] The user operating the information processing device 10 checks the output results and confirms the shape category of the tongue shown in the image.
[0057] The information processing device 10 can be realized by, for example, a computer 50 shown in Fig. 7. The computer 50 includes a CPU 51, a memory 52 as a temporary storage area, and a non-volatile storage unit 53. The computer 50 also includes an input / output interface (I / F) 54 to which an external device, an output device, etc. are connected, and a read / write (R / W) unit 55 that controls reading and writing of data from and to a recording medium. The computer 50 also includes a network I / F 56 that is connected to a network such as the Internet. The CPU 51, the memory 52, the storage unit 53, the input / output I / F 54, the R / W unit 55, and the network I / F 56 are connected to one another via a bus 57.
[0058] The storage unit 53 can be realized by a hard disk drive (HDD), a solid state drive (SSD), a flash memory, etc. The storage unit 53 as a storage medium stores a program for operating the computer 50. The CPU 51 reads the program from the storage unit 53, expands it in the memory 52, and sequentially executes the processes contained in the program.
[0059] [Operation of the information processing device of the embodiment]
[0060] Next, a specific operation of the information processing device 10 according to the embodiment will be described. The information processing device 10 executes pre-processing shown in FIG.
[0061] First, in step S100, the learning acquisition unit 22 reads out a plurality of learning images stored in the data storage unit 20 to acquire a plurality of first learning images.
[0062] In step S102, the preprocessing unit 24 performs the above-described preprocessing on each of the multiple learning images acquired in step S100.
[0063] Next, in step S104, the preprocessing unit 24 stores the plurality of preprocessed learning images obtained in step S102 in the learning data storage unit 26.
[0064] Next, the information processing device 10 executes a trained model generation process shown in FIG.
[0065] First, in step S200, the learning acquisition unit 22 reads out a plurality of preprocessed learning images stored in the learning data storage unit 26, thereby acquiring a plurality of preprocessed learning images.
[0066] In step S202, the trained model generation unit 28 trains a training model based on the multiple preprocessed training images acquired in step S200 so as to minimize the loss function L in the above equation (D2), thereby generating a trained model.
[0067] Next, in step S204, the trained model generation unit 28 stores the generated trained model in the trained model storage unit 30.
[0068] By executing the trained model generation process of Figure 9, a trained model is generated that outputs the probability of the shape category to which the tongue belongs when an image of the tongue is input, and the tongue shape category can be identified using the probability output from the trained model.
[0069] Next, upon receiving a predetermined instruction signal, the information processing device 10 executes the information processing shown in FIG.
[0070] In step S300, the acquisition unit 32 acquires an image showing the target tongue.
[0071] In step S302, the identification unit 34 reads out the trained model from the trained model storage unit 30.
[0072] In step S303, the identification unit 34 inputs the image acquired in step S300 to the trained model read out in step S302, thereby acquiring the probability of the shape category output from the trained model.
[0073] In step S304, the identification unit 34 identifies the shape category of the tongue appearing in the image acquired in step S300, using the probability of the shape category acquired in step S303.
[0074] In step S306, the output unit 36 outputs the shape category identified in step S306 as a result.
[0075] As described above, the information processing device 10 of the embodiment acquires a plurality of learning images in which the tongue of each subject is captured, and the plurality of learning images are captured for each subject. The information processing device 10 trains the learning model by machine learning based on the plurality of learning images, so that when a trained model is generated in which the probability of a shape category to which the tongue belongs is output when an image in which the tongue is captured is input, the information processing device 10 trains the learning model so that the probability of the same shape category is highest when the learning images of the same subject are input to the learning model. In addition, the information processing device 10 trains the learning model so that the variance of the probability distribution output from the learning model is large when each of the learning images of a plurality of different subjects is input to the learning model, thereby generating a trained model. This makes it possible to classify the shape of the tongue from an image in which the target tongue is captured, even when it is difficult for a person to determine the shape category to which the tongue belongs.
[0076] Furthermore, the information processing device 10 trains the learning model so that when learning images of the same subject are input to the learning model, the probability of the same shape category is maximized. In this way, by utilizing information that the subject is the same, it is possible to classify tongue shapes even when it is difficult for a person to determine in advance the shape category to which the tongue belongs.
[0077] Moreover, the information processing device 10 can classify the shape of the tongue more accurately by correcting the angle of the image in which the tongue is captured. Moreover, unlike the geometric classification of the tongue, this embodiment does not require homogenization using a dedicated tool such as fixing the face during shooting, and can achieve high discrimination performance through comprehensive discrimination using machine learning. Specifically, it is possible to suppress the variation in shape on the image due to the shooting conditions.
[0078] As described above, the number of shape categories can be adjusted by adjusting the parameter ε, making it possible to set an optimal number of shape categories.
[0079] Furthermore, by utilizing the results of the tongue shape classification according to this embodiment, it is possible to apply the results to pre-screening of pathological conditions or health condition diagnosis in medical care, basic classification for applications in estimating taste preferences, etc., or classification for customizing learning methods for acquiring the pronunciation of other languages. EXAMPLES
[0080] Next, an example corresponding to the above embodiment will be described. Fig. 11 shows the result of classifying tongue shapes using the method of the above embodiment. In Fig. 11, tongue shapes are classified into five shape categories. Referring to Fig. 11, it can be seen that tongues with roughly similar shapes are classified into the same shape category.
[0081] The technology of the present disclosure is not limited to the above-described embodiment, and various modifications and applications are possible without departing from the spirit and scope of the present invention.
[0082] For example, although the present specification has been described as an embodiment in which a program is pre-installed, the program may also be provided by being stored on a computer-readable recording medium.
[0083] In the above embodiment, the process executed by the CPU after reading the software (program) may be executed by various processors other than the CPU. In this case, examples of the processor include a PLD (Programmable Logic Device) whose circuit configuration can be changed after manufacturing such as an FPGA (Field-Programmable Gate Array), and a dedicated electric circuit such as an ASIC (Application Specific Integrated Circuit) which is a processor having a circuit configuration designed exclusively for executing a specific process. Alternatively, a GPGPU (General-purpose graphics processing unit) may be used as the processor. Each process may be executed by one of these various processors, or may be executed by a combination of two or more processors of the same or different types (for example, a plurality of FPGAs, a combination of a CPU and an FPGA, etc.). The hardware structure of these various processors is, more specifically, an electric circuit that combines circuit elements such as semiconductor elements.
[0084] In addition, in each of the above embodiments, the program is described as being pre-stored (installed) in the storage, but the present invention is not limited to this. The program may be provided in a form stored in a non-transitory storage medium such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), or a USB (Universal Serial Bus) memory. The program may also be downloaded from an external device via a network.
[0085] Furthermore, each process of the present embodiment may be implemented by a computer or server equipped with a general-purpose processor and a storage device, and each process may be executed by a program. This program is stored in a storage device, and may be recorded on a recording medium such as a magnetic disk, an optical disk, or a semiconductor memory, or may be provided through a network. Of course, any other components do not have to be implemented by a single computer or server, and may be distributed and implemented on multiple computers connected by a network.
[0086] In the above embodiment, by utilizing partial information that a pair of an image and another image are obtained from the same subject and are classified into the same category, appropriate classification can be realized for a task in which the boundary between categories is unknown. In the above embodiment, when the subject is a tongue, information that the subject is the same is used as partial information, but information other than the subject can also be used as partial information. For this reason, for example, the above "same subject" may be read as "same individual or species" and "multiple different subjects" may be read as "multiple different individuals or species". In addition, in the above embodiment, the subject of interest is a tongue, but this is not limited to this. For example, the following modifications can be made regarding the "individual or species" and "subject" to which the present embodiment can be applied.
[0087] [Variation 1] In the above embodiment, the subject is a human tongue, and the tongue shape is classified as an example. However, other parts of the human body may be used as the subject. For example, the above embodiment may be applied to classifying the shape of the whole or part of the face, the shape of the teeth, or the shape of the hair (e.g., the shape of baldness). In this case, for example, information that a pair of a certain image and another image are obtained from the same subject is used as partial information. For example, when classifying the shape of the whole or a part of the face, the above embodiment may be applied to classifying the shapes of remodeled face parts. In addition, when classifying the shape of the entire face or a part of the face, the above embodiment can also be applied to applications such as creating artificial teeth (e.g., mold guides) based on the results of face shape classification. In addition, when classifying the shape of the entire face or a part of the face, the above embodiment can also be applied to an application that suggests matching glasses that suit the shape of the entire face or a part of the face.
[0088] [Variation 2] Alternatively, for example, an internal part of a human body may be taken as the subject. For example, the subject may be an organ or a tumor, and the shape of the organ or the tumor may be classified. In this case, for example, information that a pair of a certain image and another image is obtained from the same subject is used as partial information. Alternatively, for example, information that a pair of a certain image and another image is obtained from different subjects suffering from the same disease may be used as partial information. The classification result of the shape of an organ or a tumor is useful information when performing various medical procedures. Therefore, the technology of this embodiment can also be a useful technology when performing medical procedures.
[0089] [Variation 3] Alternatively, for example, a body part of an animal may be used as the subject. For example, the shape of an animal's body part may reflect characteristics specific to the species or individual of the animal. For this reason, for example, when a body part of an animal is used as the subject, it is possible to classify the shape of the animal's body part by using information on the species or individual of the animal as partial information. The classification result of the shape of the animal's body part is useful information when used, for example, for evaluating the quality of the meat of the animal. For example, the classification result of the shape of a cow's tongue (so-called beef tongue) also reflects information on the species of the cow, and it is also possible to identify the species of the cow from the result of the classification of the shape of the beef tongue. For this reason, the information processing device 10 of this embodiment can also be applied to, for example, a technology for preventing counterfeiting of breeds.
[0090] [Variation 4] Alternatively, for example, a fruit or vegetable may be used as the subject. For example, the shape of the fruit or vegetable may be classified to automatically evaluate the quality of the fruit or vegetable based on the shape. Therefore, for example, when a certain fruit or vegetable is used as the subject, it is possible to classify the shape of the fruit or vegetable by using information on the species or individual of the fruit or vegetable as partial information.
[0091] [Variation 5] Alternatively, for example, a part of a human body may be taken as a subject, and changes in the part over time may be detected. In this case, the information processing device 10 detects changes in the shape of the part, for example, a face, tongue, teeth, or hair, taken as a subject. For example, if the shape of a body part of a subject was classified as category 1 until a certain point in the past, but the shape of the body part of the subject is currently classified as category 2, it means that the shape of the part has changed over time. For this reason, for example, the body part of the subject is photographed every time a predetermined time or period has elapsed, and the shape of the body part shown in the image is classified, so that changes in the body part over time can be detected. For example, this can be applied to dental applications such as detecting changes in the condition inside the oral cavity. It can also be used for applications such as detecting deterioration of the entire or part of the face. In addition, when using this modified example, it is necessary to train the trained model using partial information that images of a short period of time that can be considered to have a sufficiently small change over time are classified into the same category.
[0092] [Variation 6] Alternatively, for example, a human face may be used as a subject, and facial expressions shown on the human face may be classified as shape categories. Human facial expressions express emotions. For this reason, for example, by using information that both a certain subject A and another subject B have been exposed to the same audio, text, or video as partial information, it is also possible to classify facial expressions caused by similar emotions. For example, the facial expression when subject A listens to text X (for example, badmouthing) and the facial expression when subject B listens to text X should be classified into the same category. This makes it possible to classify objects such as human facial expressions, which have ambiguous boundaries. In addition, by classifying human facial expressions, it is also possible to classify objects such as emotions, which have ambiguous boundaries.
[0093] In addition, by utilizing the classification results of the shapes of various body parts, it is possible to apply the results to pre-screening of pathological conditions or health condition diagnosis in medicine, basic classification for estimating taste preferences, etc., or classification for customizing learning methods for acquiring the pronunciation of other languages.
[0094] In the above embodiment, the information processing device 10 executes the trained model generation process of FIG. 9 and the information processing of FIG. 10, but the present invention is not limited to this. For example, the trained model generation device may execute the trained model generation process of FIG. 9, and the information processing device may execute the information processing of FIG. 10. In this case, the trained model generation device includes at least the learning acquisition unit 22 and the trained model generation unit 28. In addition, in this case, the information processing device includes at least the acquisition unit 32 and the identification unit 34.
[0095] All publications, patent applications, and standards mentioned in this specification are herein incorporated by reference to the same extent as if each individual publication, patent application, or standard was specifically and individually indicated to be incorporated by reference.
[0096] (Additional Note) The following additional notes are given regarding aspects of the present disclosure.
[0097] (Appendix 1) a learning acquisition unit that acquires a plurality of learning images each including a subject that is a part of an individual or a species, the learning images being captured for each individual or species; When generating a trained model that outputs a probability of a shape category to which the subject belongs when an image containing the subject is input by training a training model by machine learning based on the plurality of training images, training the learning model so that the probability of the same shape category is maximized when learning images showing the subjects of the same individual or species are input to the learning model; a trained model generation unit that generates the trained model by training the training model so that the variance of the probability distribution output from the training model is increased when each of training images showing the subject of a plurality of different individuals or species is input to the training model; A trained model generating device comprising: (Appendix 2) The trained model generation unit is The probability y of the i-th shape category output from the training model is shown in the following equation (A). i The first entropy with respect to becomes smaller, The probability y of the i-th shape category being output when the first learning image showing the subject of the first individual or species is input to the learning model is expressed by the following formula (B): i and the probability y of the i-th shape category being output when the second learning image containing the subject of the first individual or species is input to the learning model. i 'The second entropy, which is the cross entropy between The probability y of the i-th shape category being output when each of the multiple learning images is input to the learning model is shown in the following formula (C). i Sample mean of <y i > so that the third entropy with respect to Generate the trained model; 2. A trained model generation device as described in claim 1.
number
number
number
[0098] 10. Information processing device 20 Data storage unit 22 Learning acquisition section 24 Pretreatment section 26 Learning data storage unit 28 Trained model generation unit 30 Trained model memory 32 Acquisition Department 34 Specific part 36 Output section
Claims
1. a learning acquisition unit that acquires a plurality of learning images each including a subject that is a part of an individual or a species, the learning images being captured for each individual or species; When generating a trained model that outputs a probability of a shape category to which the subject belongs when an image containing the subject is input by training a training model by machine learning based on the plurality of training images, training the learning model so that the probability of the same shape category is maximized when learning images showing the subjects of the same individual or species are input to the learning model; a trained model generation unit that generates the trained model by training the training model so that the variance of the probability distribution output from the training model is increased when each of training images showing the subject of a plurality of different individuals or species is input to the training model; A trained model generating device comprising:
2. The trained model generation unit is The probability y of the i-th shape category output from the learning model is shown in the following formula (A): i The first entropy for becomes smaller, The probability y of the i-th shape category being output when the first learning image showing the subject of the first individual or species is input to the learning model is expressed by the following formula (B): i and the probability y of the i-th shape category being output when a second learning image containing the subject of the first individual or species is input to the learning model. i ', the second entropy, which is the cross entropy between The probability y of the i-th shape category being output when each of the multiple learning images is input to the learning model is expressed by the following formula (C): i The sample mean of <y i > so that the third entropy becomes large, Generate the trained model; The trained model generating device according to claim 1 . [0010] (A) 【number】 (B) 【number】 (C)
3. The trained model generation unit is The trained model is generated so that the loss function L shown in the following formula (D1), which is an integration of the formulas (A), (B), and (C), is small. The trained model generating device according to claim 2 . [0025] (D1) where b represents a mini-batch, which is a set of images selected from multiple learning images, and < > b represents the sample mean of the probability of the shape category of the training images included in the mini-batch, and n represents the number of shape categories.
4. The trained model generation unit is The trained model is generated so that the loss function L shown in the following formula (D2) which combines the formulas (A), (B), and (C) is small. The trained model generating device according to claim 2 . [0030] (D2) where b represents a mini-batch, which is a set of images selected from multiple learning images, and < > b represents the sample mean of the probability of the shape category of the training images included in the mini-batch, n represents the number of shape categories, and ε is a parameter less than or equal to 1.
5. an acquisition unit for acquiring an image including a target subject; an identification unit that inputs the image acquired by the acquisition unit into a trained model generated in advance, thereby acquiring a probability of a shape category output from the trained model, and identifies a shape category to which a subject appearing in the image belongs using the probability; Including, The trained model is a trained model that outputs a probability of a shape category to which an object appearing in an image belongs when an image in which the object appears is input, The trained model is trained so that when training images showing the subjects of the same individual or species are input to the training model, the probability of the same shape category is maximized; The trained model is obtained by training the learning model so that, when each of the learning images showing the subject of a plurality of different individuals or species is input to the learning model, the variance of the probability distribution output from the learning model becomes large. Information processing device.
6. acquiring a plurality of learning images each including a subject that is a part of an individual or a species, the learning images being taken for each individual or species; When generating a trained model that outputs a probability of a shape category to which the subject belongs when an image containing the subject is input by training a training model by machine learning based on the plurality of training images, training the learning model so that the probability of the same shape category is maximized when learning images showing the subjects of the same individual or species are input to the learning model; generating the trained model by training the learning model so that, when each of the learning images showing the subject of a plurality of different individuals or species is input to the learning model, the variance of the probability distribution output from the learning model is increased; A method for generating trained models in which processing is performed by a computer.
7. Obtain an image of the target subject, The acquired image is input to a trained model generated in advance, thereby obtaining a probability of a shape category output from the trained model, and using the probability to identify a shape category to which a body part shown in the image belongs; The trained model is a trained model that outputs a probability of a shape category to which an object appearing in an image belongs when an image in which the object appears is input, The trained model is trained so that when training images showing the subjects of the same individual or species are input to the training model, the probability of the same shape category is maximized; The trained model is obtained by training the learning model so that, when each of the learning images showing the subject of a plurality of different individuals or species is input to the learning model, the variance of the probability distribution output from the learning model becomes large. An information processing method in which processing is performed by a computer.
8. acquiring a plurality of learning images each including a subject that is a part of an individual or a species, the learning images being taken for each individual or species; When generating a trained model that outputs a probability of a shape category to which the subject belongs when an image containing the subject is input by training a training model by machine learning based on the plurality of training images, training the learning model so that the probability of the same shape category is maximized when learning images showing the subjects of the same individual or species are input to the learning model; generating the trained model by training the learning model so that, when each of the learning images showing the subject of a plurality of different individuals or species is input to the learning model, the variance of the probability distribution output from the learning model is increased; A trained model generation program for allowing a computer to execute processing.
9. Obtain an image of the target subject, The acquired image is input to a trained model generated in advance, thereby obtaining a probability of a shape category output from the trained model, and using the probability, identifying a shape category to which a subject appearing in the image belongs; The trained model is a trained model that outputs a probability of a shape category to which an object appearing in an image belongs when an image in which the object appears is input, The trained model is trained so that when training images showing the subjects of the same individual or species are input to the training model, the probability of the same shape category is maximized; The trained model is obtained by training the learning model so that, when each of the learning images showing the subject of a plurality of different individuals or species is input to the learning model, the variance of the probability distribution output from the learning model becomes large. An information processing program for causing a computer to execute processing.
Citation Information
Patent Citations
Tongue shape recognition method and device, computer equipment and computer readable storage medium
CN110363073A
Tongue shape identification method and system based on Matlab image processing
CN111582113A
Tongue crack shape identification method and identification system based on computer vision
CN113177499A
Tongue crack feature recognition and length measurement method and system
CN113239790A
Tongue shape computer classifying method
CN1932848A
