A bone age recognition modeling and prediction method and device
By integrating the Inception network, mask mechanism and attention mechanism, the bone age recognition model solves the problems of low bone age judgment efficiency and poor accuracy in the existing technology, and achieves more efficient and interpretable bone age recognition results.
Patent Information
- Application Number
- CN202410507637.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-04-25
AI Technical Summary
Existing bone age judgment methods rely on doctor experience, are inefficient and require equipment, and X-ray image noise and occlusion affect feature extraction, reducing judgment accuracy and poor interpretability.
A bone age recognition model that integrates the Inception network, mask mechanism and attention mechanism is adopted. The mask mechanism is used to remove irrelevant interference, and the attention mechanism focuses on key features. It combines diversified network structures and image enhancement methods to build a bone age recognition model in complex situations. .
It improves the accuracy and interpretability of bone age judgment, enhances the adaptability and robustness of the model, and achieves faster and smarter bone age identification.
Smart Images

Figure CN118212420B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence and image recognition technology, and in particular to a bone age recognition modeling and prediction method and device. Background Art
[0002] Judging bone age by observing the characteristics of bone development can be used to assist in judging the growth and development of children and adolescents, height prediction, etc. It is usually necessary to observe the phalanges, carpal bones, radius and ulna based on the left hand X-ray image to judge bone age. The common problems of bone age judgment at present are: most X-ray image bone age recognition is judged by doctors based on experience, which is labor-intensive and inefficient; using bone age equipment to monitor and estimate bone age is time-consuming and labor-intensive, and many hospitals do not have bone age equipment.
[0003] The use of artificial intelligence technology to extract bone age information from X-ray images, automatically evaluate bone age maturity, and realize intelligent recognition of bone age can effectively replace traditional bone age recognition methods and improve the efficiency of bone age recognition. However, in the existing technology, there are still some technical difficulties in intelligent bone age recognition of X-ray images, such as: X-ray images have various noises and shading, which affect the extraction of key features and reduce the accuracy of bone age judgment; the feature extraction technology is relatively single and it is difficult to effectively integrate medical prior knowledge; the interpretability and comprehensibility of bone age judgment are poor, etc. Summary of the invention
[0004] In order to solve the above-mentioned defects or shortcomings, the present invention provides a bone age recognition modeling and prediction method and device. Through comprehensive judgment of three image features of the focus image, the non-focus image, and the reconstructed image with occlusion, a bone age recognition model integrating the Inception network, the mask mechanism, and the attention mechanism is constructed. The mask mechanism is used to remove irrelevant interference, and the attention mechanism focuses on key features to improve the judgment accuracy. The rich image enhancement means and diversified network structure enhance the model's adaptability to complex situations.
[0005] One aspect of the present invention provides a bone age recognition modeling and prediction method, comprising:
[0006] Convert the X-ray image into a grayscale image, separate the region of interest from the background in the grayscale image, and obtain a mask image;
[0007] Performing image segmentation on the mask image using a hand bone segmentation model to obtain a focus image;
[0008] Acquire a first feature map of the X-ray image through an Inception network, analyze the first feature map using an attention mechanism to determine a focus area, generate a heat map, extract a non-focus area from the heat map, and generate a non-focus image based on the non-focus area;
[0009] Obtain a second feature map of the X-ray image through the Inception network, where the first feature map is deeper than the second feature map; create an illumination block of random position and size, use the illumination block to mask the second feature map, and input the masked second feature map into the trained generative adversarial network to generate a reconstructed image with illumination;
[0010] The focus image, the non-focus image and the reconstructed image with masking are respectively input into the Inception network to obtain three image features; the three obtained image features are fused to output the predicted bone age.
[0011] Furthermore, the step of converting the X-ray image into a grayscale image, separating the region of interest from the background in the grayscale image, and obtaining a mask image includes:
[0012] De-noise, enhance contrast and convert X-ray images into grayscale images;
[0013] According to a preset threshold, the pixel points in the grayscale image whose grayscale values are greater than the preset threshold are assigned a value of 1, and the pixel points whose grayscale values are less than the preset threshold are assigned a value of 0, so as to separate the region of interest from the background and obtain a mask image;
[0014] Optimize the mask image using dilation and erosion operations.
[0015] Furthermore, the hand bone segmentation model includes a contraction path, an expansion path, and a 1×1 convolutional layer:
[0016] The contraction path includes a plurality of repeated contraction modules, each of which includes two 3×3 convolutions, and each convolution layer is followed by a ReLU activation function and a 2×2 maximum pooling (MaxPooling) layer;
[0017] The expansion path includes multiple repeated expansion modules, each expansion module includes a 2×2 convolution to halve the number of feature channels, a feature map concatenation operation, and two 3×3 convolutions, each convolution is followed by a ReLU activation function;
[0018] The 1×1 convolutional layer generates a category prediction for each pixel and performs image segmentation by pixel classification.
[0019] Furthermore, the method of obtaining a first feature map of the X-ray image through the Inception network, analyzing the first feature map using the attention mechanism to determine the focus area, generating a heat map and extracting the non-focus area from the heat map, and generating the non-focus image according to the non-focus area includes:
[0020] The pixels in the heat map whose values are lower than a preset threshold are assigned a value of 1, and those higher than the preset threshold are assigned a value of 0, and the non-interest area is extracted to obtain a non-interest area mask, and the non-interest area mask is element-wise multiplied with the X-ray image to obtain a non-interest image.
[0021] Furthermore, the first feature map is a feature map output by the Mixed10 layer when the X-ray image is input by the Inception network in the forward propagation process; the second feature map is a feature map output by the Mixed6 layer when the X-ray image is input by the Inception network in the forward propagation process.
[0022] Another aspect of the present invention provides a bone age recognition modeling and prediction device, comprising:
[0023] The first module is configured to convert the X-ray image into a grayscale image, separate the region of interest from the background in the grayscale image, and obtain a mask image;
[0024] The second module is configured to perform image segmentation on the mask image using a hand bone segmentation model to obtain a focus image;
[0025] A third module is configured to obtain a first feature map of the X-ray image through an Inception network, analyze the first feature map using an attention mechanism to determine a focus area, generate a heat map, extract a non-focus area from the heat map, and generate a non-focus image based on the non-focus area;
[0026] The fourth module is configured to obtain a second feature map of the X-ray image through an Inception network, where the first feature map is deeper than the second feature map; create an occlusion block of a random position and size, use the occlusion block to occlude the second feature map, and input the occluded second feature map into the trained generative adversarial network to generate a reconstructed image with occlusion.
[0027] The fifth module is configured to input the focus image, the non-focus image and the reconstructed image with masking into the Inception network respectively to obtain three image features; fuse the three obtained image features to output the predicted bone age.
[0028] Furthermore, the first module is further configured as follows:
[0029] De-noise, enhance contrast and convert X-ray images into grayscale images;
[0030] According to a preset threshold, the pixel points in the grayscale image whose grayscale values are greater than the preset threshold are assigned a value of 1, and the pixel points whose grayscale values are less than the preset threshold are assigned a value of 0, so as to separate the region of interest from the background and obtain a mask image;
[0031] Optimize the mask image using dilation and erosion operations.
[0032] Furthermore, the hand bone segmentation model includes a contraction path, an expansion path, and a 1×1 convolutional layer:
[0033] The contraction path includes a plurality of repeated contraction modules, each of which includes two 3×3 convolutions, and each convolution layer is followed by a ReLU activation function and a 2×2 maximum pooling (MaxPooling) layer;
[0034] The expansion path includes multiple repeated expansion modules, each expansion module includes a 2×2 convolution to halve the number of feature channels, a feature map concatenation operation, and two 3×3 convolutions, each convolution is followed by a ReLU activation function;
[0035] The 1×1 convolutional layer generates a category prediction for each pixel and performs image segmentation by pixel classification.
[0036] Furthermore, the third module is further configured as follows:
[0037] The pixels in the heat map whose values are lower than a preset threshold are assigned a value of 1, and those higher than the preset threshold are assigned a value of 0, and the non-interest area is extracted to obtain a non-interest area mask, and the non-interest area mask is element-wise multiplied with the X-ray image to obtain a non-interest image.
[0038] Furthermore, the first feature map is a feature map output by the Mixed10 layer when the X-ray image is input by the Inception network in the forward propagation process; the second feature map is a feature map output by the Mixed6 layer when the X-ray image is input by the Inception network in the forward propagation process.
[0039] The present invention provides a bone age recognition modeling and prediction method and device, which removes interference from irrelevant areas in X-ray images through a mask mechanism; generates a focus image through a hand bone segmentation model, generates a non-focus image through an Inception network combined with an attention mechanism, and generates a reconstructed image with occlusion through an Inception network combined with a generative adversarial network, and performs feature fusion and comprehensive judgment on the focus image, the non-focus image, and the reconstructed image with occlusion, and combines the above parts to construct a bone age recognition model that integrates the Inception network, the mask mechanism, and the attention mechanism. The multi-branch Inception network structure in the bone age recognition model can extract multi-scale feature information and improve the ability to represent image details; learn the features of the region of interest through a mask mechanism to provide guidance for spatial attention; learn the distinguishing regions through an attention mechanism to improve the ability to distinguish key features; the attention mechanism and the mask mechanism make the prediction results more intuitive and improve the interpretability of the prediction results; make judgments based on multi-source images, so that the model has stronger adaptability to complex situations and improves the robustness and generalization ability of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0041] Figure 1 It is a flowchart of a bone age recognition modeling and prediction method provided by an embodiment of the present application;
[0042] Figure 2 This is a diagram of a network structure for generating a non-attention image provided by an embodiment of the present application;
[0043] Figure 3 This is a structural diagram of the Inception module provided by an embodiment of the present application;
[0044] Figure 4 This is a network structure diagram for generating a reconstructed image with shading provided by an embodiment of the present application;
[0045] Figure 5 This is a network structure diagram of a bone age recognition model provided by an embodiment of the present application;
[0046] Figure 6 This is a comparison chart of the predicted value and observed value of male bone age provided by an embodiment of the present application;
[0047] Figure 7 It is a confidence interval diagram of the predicted value of male bone age provided by an embodiment of the present application;
[0048] Figure 8 This is a comparison chart of predicted and observed bone age values for women provided in one embodiment of the present application;
[0049] Fig. 9 It is a confidence interval diagram of the predicted value of female bone age provided by an embodiment of the present application;
[0050] Fig.10 It is a structural schematic diagram of a bone age recognition modeling and prediction device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0053] It should be understood that although the terms first, second, third, etc. may be used to describe the acquisition modules in the embodiments of the present invention, the acquisition modules should not be limited to these terms. These terms are only used to distinguish the acquisition modules from each other.
[0054] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0055] It should be noted that the directional words such as "upper", "lower", "left", and "right" described in the embodiments of the present invention are described at the angles shown in the drawings and should not be understood as limiting the embodiments of the present invention. In addition, in the context, it should also be understood that when it is mentioned that an element is formed "on" or "under" another element, it can not only be formed directly "on" or "under" another element, but also be formed "on" or "under" another element indirectly through an intermediate element.
[0056] The judgment of bone age usually requires the analysis of the development status of the phalanges, carpal bones, radius and ulna based on the left hand frontal X-ray images. First, collect the left hand frontal X-ray images and the corresponding bone age data, for example, by obtaining the bone age information uploaded by users in Internet hospitals and annotated by doctors, obtaining the bone age data of X-ray images detected by offline bone age equipment, and obtaining open source data;
[0057] Then, the collected X-ray images and bone age data are screened, for example, data with incomplete bone information and bone position deviation are eliminated. Due to the differences in growth and development between men and women, the screened X-ray images and bone age data are divided according to gender information, and the training set and test set are divided proportionally for the training and evaluation of the bone age recognition model.
[0058] Different X-ray images have differences in contrast, brightness, etc., and there are also noise, occlusion, etc. that affect the extraction of key features. Therefore, X-ray images need to be processed.
[0059] See also Figure 1 An embodiment of the present invention provides a bone age recognition modeling and prediction method, comprising the following steps:
[0060] Step S101, converting the X-ray image into a grayscale image, separating the region of interest from the background in the grayscale image, and obtaining a mask image;
[0061] Specifically, convert the X-ray image to a grayscale image:
[0062] Denoising, using Gaussian smoothing to remove noise from X-ray images:
[0063]
[0064] Among them, G(x,y) is the Gaussian function, (x,y) is the pixel coordinates, and σ is the standard deviation;
[0065] Enhance contrast and use linear enhancement to improve the contrast of X-ray images:
[0066] I out =a*I in +b
[0067] Among them, I in is the original image, I out is the contrast enhanced image, a and b are contrast adjustment coefficients;
[0068] Convert to grayscale image:
[0069] I gray =0.299*R+0.587*G+0.114*B
[0070] Among them, Igray is the gray value after conversion, and B, G, and B are the three channels of the image.
[0071] According to the preset threshold, the pixels in the grayscale image whose grayscale values are greater than the preset threshold are assigned a value of 1, and those whose grayscale values are less than the preset threshold are assigned a value of 0, so as to separate the region of interest from the background and obtain a mask image.
[0072] The mask image is optimized using dilation and erosion operations. Dilation takes the maximum value of each pixel point as the value of the pixel point, and erosion takes the minimum value of each pixel point as the value of the pixel point.
[0073] Step S102, performing image segmentation according to the mask image using a hand bone segmentation model to obtain a focus image;
[0074] Specifically, a hand bone segmentation model is constructed based on the Unet network, where the Unet network mainly includes a contraction path, a symmetrical expansion path and a 1×1 convolutional layer.
[0075] The contraction path performs downsampling to obtain the context information of the segmentation target. The contraction path includes multiple repeated contraction modules, each of which includes two 3×3 convolutional layers, each of which is followed by a ReLU activation function and a 2×2 maximum pooling layer. The number of feature channels doubles at each contraction step, and the image size is reduced while obtaining the feature map, which is beneficial to reduce the computational pressure and obtain more global feature information.
[0076] The expansion path performs upsampling to obtain accurate information of the segmentation target. The expansion path includes multiple repeated expansion modules, each of which includes a 2×2 convolution layer, a feature map splicing operation, and two 3×3 convolution layers. Each convolution layer is followed by a ReLU activation function. The number of feature channels is halved at each expansion step, and the image size is restored while the feature map is obtained. The feature map splicing operation is to cut the feature map of the same size of the corresponding contraction module and splice it with the feature map of the expansion module. The image resolution is restored through the upsampling process and the detail features are obtained.
[0077] The 1×1 convolutional layer generates category predictions for each pixel and performs image segmentation by pixel classification;
[0078] Using the X-ray image training set to train the hand bone segmentation model, back-propagating the loss function in the Unet network to update the weights, and obtaining a trained hand bone segmentation model;
[0079] By using the trained hand bone segmentation model and combining it with the mask image, the effective area of the X-ray image is located to separate the background and perform image segmentation to generate an image of interest.
[0080] Step S103, obtaining a first feature map of the X-ray image through the Inception network, analyzing the first feature map using the attention mechanism to determine a focus area, generating a heat map and extracting a non-focus area from the heat map, and generating a non-focus image according to the non-focus area;
[0081] For details, see Figure 2 , forward propagate the input X-ray image through the Inception network, and obtain the feature map output by the Mixed10 layer as the first feature map:
[0082] F=Inception Mixed10 (X)
[0083] Among them, X is the input X-ray image, and F is the feature map output by the Mixed10 layer;
[0084] The attention mechanism is used to analyze the first feature map, determine the focus area in the image, and generate a heat map:
[0085] A=AttentionBranch(F)=σ(Conv 1×1 (A)
[0086] H=Upsample(A)
[0087] Where A is the original heat map, AttentionBranch represents the attention branch, σ represents the activation function, which is used to normalize the original heat map to between 0 and 1 to represent the attention weight, H is the upsampled heat map, Upsample represents the upsampling operation, which is obtained by bilinear interpolation according to the corresponding position in A, and the original heat map A is upsampled to the same size as the input image X;
[0088] According to the preset threshold, the non-interest areas with low median values in the heat map H are separated. The pixels with median values lower than the preset threshold are assigned a value of 1, and those higher than the preset threshold are assigned a value of 0. The non-interest areas are extracted to obtain the non-interest area mask, and the non-interest area mask is element-wise multiplied with the X-ray image to obtain the non-interest image.
[0089] In this embodiment, the Inception network is constructed by using four Inception modules, see Figure 3 , the four Inception modules are as follows:
[0090] The Reduction-A module is used to reduce the size of the feature map and increase its depth, i.e. the number of channels, so that the network can extract features at a deeper level. It includes the following parallel operations:
[0091] (1) 3×3 max pooling: Perform 3×3 max pooling on the input feature map with a step size of 2, halving the feature map size;
[0092] (2) 3×3 convolution: Perform 3×3 convolution on the input feature map with a step size of 2, halving the feature map size while increasing the feature map depth;
[0093] (3) 1×1 convolution followed by 3×3 convolution: A 1×1 convolution is performed on the input feature map to reduce the depth, and then a 3×3 convolution with a stride of 2 is performed to halve the feature map size.
[0094] The results of several parallel branches are concatenated to obtain the output feature map.
[0095] The Reduction-B module is a transition module used to further reduce the size of the feature map while increasing its depth, including the following parallel operations:
[0096] (1) 3×3 max pooling: Perform 3×3 max pooling on the input feature map with a step size of 2, halving the feature map size;
[0097] (2) 1×1 convolution followed by 3×3 convolution: Perform 1×1 convolution on the input feature map, and then perform 3×3 convolution with a stride of 2 to halve the feature map size;
[0098] (3) 1×1 convolution followed by two 3×3 convolutions in series: A 1×1 convolution is performed on the input feature map, and then a more complex spatial feature extraction is performed by connecting a first 3×3 convolution with a stride of 1 and a second 3×3 convolution with a stride of 2.
[0099] The results of several parallel branches are concatenated to obtain the output feature map.
[0100] The Inception-B module is used to increase the network width without significantly increasing the computational cost, including the following parallel operations:
[0101] (1) 1×1 convolution: extracts information directly from the input feature map, mainly used to reduce the number of channels;
[0102] (2) A 7×1 convolution and a 1×7 convolution are connected in series after the 1×1 convolution: This is used to effectively capture the horizontal and vertical spatial features and increase the spatial coverage of the module;
[0103] (3) A 7×1 convolution and a 1×7 convolution are connected in series after the 1×1 convolution, and then a 7×1 convolution and a 1×7 convolution are connected in series: the spatial coverage of the module is further increased through a longer convolution chain;
[0104] (4) 3×3 average pooling followed by 1×1 convolution: The pooling branch is used to capture broader contextual information, and the number of channels is adjusted through 1×1 convolution.
[0105] The results of several parallel branches are concatenated to obtain the output feature map.
[0106] The Inception-C module is used to improve the network's ability to capture image details at a deeper level, including the following parallel operations:
[0107] (1) 1×1 convolution: adjusts the depth of the feature map while retaining the original spatial information;
[0108] (2) A 1×1 convolution is followed by a 1×3 convolution and a 3×1 convolution in series: This is used to effectively capture horizontal and vertical spatial features and increase the spatial coverage of the module.
[0109] (3) A 1×1 convolution is followed by a 1×3 convolution and a 3×1 convolution, and then a 1×3 convolution and a 3×1 convolution are connected in series: a longer convolution chain further increases the spatial coverage of the module;
[0110] (4) 3×3 average pooling followed by 1×1 convolution: The pooling branch is used to capture broader contextual information, and the number of channels is adjusted through 1×1 convolution.
[0111] The results of several parallel branches are concatenated to obtain the output feature map.
[0112] Step S104, obtaining a second feature map of the X-ray image through the Inception network, wherein the first feature map is deeper than the second feature map; creating an occlusion block of random position and size, using the occlusion block to occlude the second feature map, and inputting the occluded second feature map into the trained generative adversarial network to generate a reconstructed image with occlusion;
[0113] For details, see Figure 4 , forward propagate the input X-ray image through the Inception network to obtain the feature map of the Mixed6 layer;
[0114] Create a mask block of random position and size, apply the mask block to the middle-level feature map, and obtain the masked feature map. For example, set the mask block mask area value to 0, and the other area values to 1, and obtain the masked feature map by element-wise multiplication of the mask block and the middle-level feature map;
[0115] The occluded feature map is input into the trained generative adversarial network to generate an occluded image. Specifically, the generative adversarial network consists of a generative network and a discriminative network. The two networks are trained through a training set: the occluded feature map is input into the generative network to obtain the output reconstructed image, so that the discriminative network can judge the reconstructed image as real as possible; the discriminative network judges whether the reconstructed image is a real image or a generated image, and feeds the judgment result back to the generative network, thereby updating the parameters of the generative network to make the output reconstructed image close to the real image. In the test phase, an X-ray image is input, and a reconstructed image with occlusion can be generated through the Inception network and the trained generative adversarial network.
[0116] Step S105, inputting the focus image, the non-focus image and the reconstructed image with masking into the Inception network respectively to obtain three image features; fusing the obtained three image features to output the predicted bone age.
[0117] For details, see Figure 5 , the focus image X obtained in step S102 unet , the non-focus image X obtained in step S103 non-attention and the reconstructed image X with occlusion obtained in step S104 masked Three image features are extracted using the Inception network:
[0118] F unet =Inception(X unet )
[0119] F non-attention =Inception(X non-attention )
[0120] F masked =Inception(X masked )
[0121] The three extracted image features are fused, and the fused feature data is processed by the average pooling layer, Dropout layer, fully connected layer, and Softmax layer to output the predicted bone age:
[0122] Fusion of three image features:
[0123] F combined =Concat(F unet , F non-attention, F masked )
[0124] Average pooling layer:
[0125] F pooled =AveragePooling(Fcombined )
[0126] Dropout layer:
[0127] F dropout = Dropout(F pooled )
[0128] Fully connected layer:
[0129] F fc =FullyConnected(F dropout )
[0130] Softmax layer:
[0131] Y predicted =Softmax(F fc )
[0132] The output of this is the predicted bone age Y predicted .
[0133] Through steps S101 to S105, the bone age recognition model is trained according to the male and female X-ray image training sets respectively until the online standard is reached, thereby obtaining the trained bone age recognition model, including the male bone age recognition model and the female bone age recognition model.
[0134] The trained bone age recognition model was tested with root mean square error using male and female X-ray image test sets to evaluate the prediction effect.
[0135] The male X-ray images in the test set are input into the male bone age recognition model to obtain the predicted male bone age, and the root mean square error test is performed with the observed male bone age in the test set. Figure 6 , the average error in the predicted bone age of men is calculated to be 10 to 11 months, see Figure 7 , the overall mean of the predicted bone age of males at the 95% confidence level is between (-7.5, 2.5) months;
[0136] The female X-ray images in the test set are input into the female bone age recognition model to obtain the predicted female bone age, and the root mean square error test is performed with the observed female bone age in the test set. Figure 8 , the average error in the predicted bone age of women is calculated to be 11 to 12 months, see Fig. 9 , the overall mean of the predicted bone age of women is between (-10, -1.25) at the 95% confidence level;
[0137] Depend on Figures 6 to 9 It can be seen that the bone age recognition model constructed by the present invention has a low performance error and realizes the intelligent prediction of bone age based on X-ray images.
[0138] The present embodiment provides a bone age recognition modeling and prediction method, which removes interference from irrelevant areas in X-ray images through a mask mechanism; generates a focus image through a hand bone segmentation model, generates a non-focus image through an Inception network combined with an attention mechanism, and generates a reconstructed image with masking through an Inception network combined with a generative adversarial network, and performs feature fusion and comprehensive judgment on the focus image, non-focus image, and reconstructed image with masking, and combines the above parts to construct a bone age recognition model that integrates the Inception network, masking mechanism, and attention mechanism. The multi-branch Inception network structure in the bone age recognition model can extract multi-scale feature information and improve the ability to represent image details; learn the features of the region of interest through a mask mechanism to provide guidance for spatial attention; learn the distinguishing regions through an attention mechanism to improve the ability to distinguish key features; the attention mechanism and mask mechanism make the prediction results more intuitive and improve the interpretability of the prediction results; make judgments based on multi-source images, so that the model has stronger adaptability to complex situations and improves the robustness and generalization ability of the model. It realizes the rapid identification of bone information and intelligent prediction of bone age through X-ray images.
[0139] See also Fig.10 Another embodiment of the present invention provides a bone age recognition modeling and prediction device 200, comprising:
[0140] The first module 201 is configured to convert the X-ray image into a grayscale image, separate the region of interest from the background in the grayscale image, and obtain a mask image;
[0141] The second module 202 is configured to perform image segmentation on the mask image using a hand bone segmentation model to obtain a focus image;
[0142] The third module 203 is configured to obtain a first feature map of the X-ray image through an Inception network, analyze the first feature map using an attention mechanism to determine a focus area, generate a heat map, extract a non-focus area from the heat map, and generate a non-focus image according to the non-focus area;
[0143] The fourth module 204 is configured to obtain a second feature map of the X-ray image through an Inception network, wherein the first feature map has a deeper depth than the second feature map; create an illumination block of a random position and size, use the illumination block to mask the second feature map, and input the masked second feature map into the trained generative adversarial network to generate a reconstructed image with illumination;
[0144] The fifth module 205 is configured to input the focus image, the non-focus image and the reconstructed image with masking into the Inception network respectively to obtain three image features; fuse the obtained three image features and output the predicted bone age.
[0145] Furthermore, the first module is further configured as follows:
[0146] De-noise, enhance contrast and convert X-ray images into grayscale images;
[0147] According to a preset threshold, the pixel points in the grayscale image whose grayscale values are greater than the preset threshold are assigned a value of 1, and the pixel points whose grayscale values are less than the preset threshold are assigned a value of 0, so as to separate the region of interest from the background and obtain a mask image;
[0148] Optimize the mask image using dilation and erosion operations.
[0149] Furthermore, the hand bone segmentation model includes a contraction path, an expansion path, and a 1×1 convolutional layer:
[0150] The contraction path includes a plurality of repeated contraction modules, each of which includes two 3×3 convolutions, and each convolution layer is followed by a ReLU activation function and a 2×2 maximum pooling (MaxPooling) layer;
[0151] The expansion path includes multiple repeated expansion modules, each expansion module includes a 2×2 convolution to halve the number of feature channels, a feature map concatenation operation, and two 3×3 convolutions, each convolution is followed by a ReLU activation function;
[0152] The 1×1 convolutional layer generates a category prediction for each pixel and performs image segmentation by pixel classification.
[0153] Furthermore, the third module is further configured as follows:
[0154] The pixels in the heat map whose values are lower than a preset threshold are assigned a value of 1, and those higher than the preset threshold are assigned a value of 0, and the non-interest area is extracted to obtain a non-interest area mask, and the non-interest area mask is element-wise multiplied with the X-ray image to obtain a non-interest image.
[0155] Furthermore, the first feature map is a feature map output by the Mixed10 layer when the X-ray image is input by the Inception network in the forward propagation process; the second feature map is a feature map output by the Mixed6 layer when the X-ray image is input by the Inception network in the forward propagation process.
[0156] It should be noted that the bone age identification modeling and prediction device 200 provided in this embodiment corresponds to a technical solution that can be used to execute each method embodiment. Its implementation principle and technical effects are similar to the method and will not be repeated here.
[0157] The above description is only a preferred embodiment of the present invention. Those skilled in the art should understand that the disclosure scope involved in the present invention is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present invention (but not limited to) by each other to form a technical solution.
Claims
1. A bone age recognition modeling and prediction method, characterized in that: include: Convert the X-ray image into a grayscale image, separate the region of interest from the background in the grayscale image, and obtain a mask image; Performing image segmentation on the mask image using a hand bone segmentation model to obtain a focus image; Acquire a first feature map of the X-ray image through an Inception network, analyze the first feature map using an attention mechanism to determine a focus area, generate a heat map, extract a non-focus area from the heat map, and generate a non-focus image based on the non-focus area; Obtain a second feature map of the X-ray image through the Inception network, where the first feature map is deeper than the second feature map; create a mask block of random position and size, use the mask block to mask the second feature map, and input the masked second feature map into the trained generative adversarial network to generate a reconstructed image with masking; The focus image, the non-focus image and the reconstructed image with masking are respectively input into the Inception network to obtain three image features; the three obtained image features are fused to output the predicted bone age.
2. A bone age recognition modeling and prediction method according to claim 1, characterized in that: The steps of converting the X-ray image into a grayscale image, separating the region of interest from the background in the grayscale image, and obtaining a mask image include: De-noise, enhance contrast and convert X-ray images into grayscale images; According to a preset threshold, the pixel points in the grayscale image whose grayscale values are greater than the preset threshold are assigned a value of 1, and the pixel points whose grayscale values are less than the preset threshold are assigned a value of 0, so as to separate the region of interest from the background and obtain a mask image; Optimize the mask image using dilation and erosion operations.
3. A bone age recognition modeling and prediction method according to claim 1, characterized in that: The hand bone segmentation model includes a contraction path, an expansion path, and a 1×1 convolutional layer: The contraction path includes a plurality of repeated contraction modules, each of which includes two 3×3 convolutions, and each convolution layer is followed by a ReLU activation function and a 2×2 maximum pooling layer; The expansion path includes multiple repeated expansion modules, each expansion module includes a 2×2 convolution to halve the number of feature channels, a feature map concatenation operation, and two 3×3 convolutions, each convolution is followed by a ReLU activation function; The 1×1 convolutional layer generates a category prediction for each pixel and performs image segmentation by pixel classification.
4. A bone age recognition modeling and prediction method according to claim 1, characterized in that: The method of obtaining a first feature map of an X-ray image through an Inception network, analyzing the first feature map using an attention mechanism to determine a focus area, generating a heat map, extracting a non-focus area from the heat map, and generating a non-focus image according to the non-focus area includes: The pixels in the heat map whose values are lower than a preset threshold are assigned a value of 1, and those higher than the preset threshold are assigned a value of 0, and the non-interest area is extracted to obtain a non-interest area mask, and the non-interest area mask is element-wise multiplied with the X-ray image to obtain a non-interest image.
5. A bone age recognition modeling and prediction method according to claim 1, characterized in that: The first feature map is a feature map output by the Mixed10 layer when the X-ray image is input by the Inception network through forward propagation; the second feature map is a feature map output by the Mixed6 layer when the X-ray image is input by the Inception network through forward propagation.
6. A bone age recognition modeling and prediction device, characterized in that: include: The first module is configured to convert the X-ray image into a grayscale image, separate the region of interest from the background in the grayscale image, and obtain a mask image; The second module is configured to perform image segmentation on the mask image using a hand bone segmentation model to obtain a focus image; A third module is configured to obtain a first feature map of the X-ray image through an Inception network, analyze the first feature map using an attention mechanism to determine a focus area, generate a heat map, extract a non-focus area from the heat map, and generate a non-focus image based on the non-focus area; The fourth module is configured to obtain a second feature map of the X-ray image through an Inception network, wherein the first feature map has a deeper depth than the second feature map; create an illumination block of a random position and size, use the illumination block to mask the second feature map, and input the masked second feature map into the trained generative adversarial network to generate a reconstructed image with illumination; The fifth module is configured to input the focus image, the non-focus image and the reconstructed image with masking into the Inception network respectively to obtain three image features; fuse the three obtained image features to output the predicted bone age.
7. A bone age recognition modeling and prediction device according to claim 6, characterized in that: The first module is further configured as follows: De-noise, enhance contrast and convert X-ray images into grayscale images; According to a preset threshold, the pixel points in the grayscale image whose grayscale values are greater than the preset threshold are assigned a value of 1, and the pixel points whose grayscale values are less than the preset threshold are assigned a value of 0, so as to separate the region of interest from the background and obtain a mask image; Optimize the mask image using dilation and erosion operations.
8. The bone age recognition modeling and prediction device according to claim 6, characterized in that: The hand bone segmentation model includes a contraction path, an expansion path, and a 1×1 convolutional layer: The contraction path includes a plurality of repeated contraction modules, each of which includes two 3×3 convolutions, and each convolution layer is followed by a ReLU activation function and a 2×2 maximum pooling layer; The expansion path includes multiple repeated expansion modules, each expansion module includes a 2×2 convolution to halve the number of feature channels, a feature map concatenation operation, and two 3×3 convolutions, each convolution is followed by a ReLU activation function; The 1×1 convolutional layer generates a category prediction for each pixel and performs image segmentation by pixel classification.
9. The bone age recognition modeling and prediction device according to claim 6, characterized in that: The third module is further configured as follows: The pixels in the heat map whose values are lower than a preset threshold are assigned a value of 1, and those higher than the preset threshold are assigned a value of 0, and the non-interest area is extracted to obtain a non-interest area mask, and the non-interest area mask is element-wise multiplied with the X-ray image to obtain a non-interest image.
10. The bone age recognition modeling and prediction device according to claim 6, characterized in that: The first feature map is a feature map output by the Mixed10 layer when the X-ray image is input by the Inception network through forward propagation; the second feature map is a feature map output by the Mixed6 layer when the X-ray image is input by the Inception network through forward propagation.
Citation Information
Patent Citations
Bone age evaluating method
CN110120266A
Water surface dead fish detection method based on multi-scale feature fusion and attention mechanism
CN117037052A
