Child lung PIBO prediction method and prediction system based on deep width learning network
By combining deep learning and width learning, a PIBO prediction model for children's lungs based on VGG16 and CBAM attention mechanism was designed, which solved the problems of low auxiliary diagnosis accuracy and large parameters in children's lungs, achieving higher prediction accuracy and diagnostic speed, suitable for the use of common medical equipment.
Patent Information
- Application Number
- CN202410743523.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-10
Smart Images

Figure CN118629628A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical image processing, and in particular provides a method and a system for predicting PIBO in children's lungs based on a deep and wide learning network, which are used for assisting the prediction and judgment of PIBO (post-infectious bronchiolitis obliterans) in children's lungs. Background Art
[0002] According to statistics from the World Health Organization, childhood pneumonia still ranks first in mortality among many fatal diseases. Pneumonia seriously affects children's lives and health. CT imaging is one of the auxiliary means of diagnosing pneumonia, but due to factors such as children's physiological age, the quality of lung tissue imaging is poorer than that of adults, and the professional ability requirements for doctors are often higher, requiring experienced doctors to diagnose and treat. With the continuous development of computer science and technology and the continuous improvement of medical technology, the application of artificial intelligence in the medical field has continued to deepen, and computer-aided diagnosis (CAD) has played an increasingly important role in clinical diagnosis. By processing images through computers, CT images can be effectively classified and doctors can be assisted in diagnosis, thereby effectively reducing the misdiagnosis rate, and can diagnose pneumonia more accurately and quickly, while also alleviating the pressure on doctors to read films.
[0003] Currently, many deep learning network model methods are used in auxiliary diagnosis research. However, due to the scarcity of CT image data of children with pulmonary PIBO, there are few systematic studies on auxiliary diagnosis of childhood pneumonia. In addition, the number of deep learning network parameters is huge and the requirements for machine resources are high.
[0004] Therefore, it has become an urgent problem to propose a new model method to improve the accuracy and diagnostic speed of PIBO prediction in children's lungs, assist doctors in making further diagnoses, and be applicable to medical equipment with corresponding computing capabilities. Summary of the invention
[0005] In view of this, the purpose of the present invention is to provide a method and system for predicting PIBO in children's lungs based on a deep and wide learning network, combining deep learning and wide learning systems to solve the problems of low accuracy and large number of parameters in the existing technology for auxiliary diagnosis of children.
[0006] On the one hand, the present invention provides a method for predicting PIBO in children's lungs based on a deep width learning network, comprising the following steps:
[0007] S1: Obtain a children's lung CT image dataset and divide it into a labeled training dataset and a test dataset, wherein the labels are PIBO and non-PIBO;
[0008] S2: Design a children's lung PIBO prediction network model based on deep width learning and use the training data set and the test data set to train and test the children's lung PIBO prediction network model to obtain a trained children's lung PIBO prediction network model, wherein the children's lung PIBO prediction network model includes a VGG16 feature extraction module and a width learning network module embedded with an attention mechanism, and the width learning network module includes a width learning network feature layer, a CBAM attention mechanism layer, a width learning network enhancement layer and an output layer connected in sequence;
[0009] S3: Use the trained children's lung PIBO prediction network model to perform PIBO prediction on the children's lung CT images to be predicted to obtain a prediction result.
[0010] Preferably, in S1, the children's lung CT images are divided into a training data set and a test data set in a ratio of 4:1, and the image data are tiled and labeled in sequence.
[0011] Further preferably, in S2, the method for training the children's lung PIBO prediction network model is as follows:
[0012] S21: inputting the CT image data in the training data set obtained in S1 as an input matrix into the children's lung PIBO prediction network model;
[0013] S22: extracting global semantic features from the input child lung CT image using the backbone structure of the VGG16 feature extraction module;
[0014] S23: Use the width learning network feature layer to further map the global semantic features extracted in S22 to obtain the mapping feature matrix Zn, where Z n ≡[Z1, ..., Z n ], n is the number of mapping features in the feature layer of the width learning network;
[0015] S24: Use the CBAM attention mechanism layer to map the feature matrix Z obtained in S23 n Redistribute the weights of the mapping features in to obtain the feature matrix F after adjusting the weights 2 ;
[0016] S25: The weighted feature matrix F obtained in S24 is 2Input to the width learning network enhancement layer, expand the network by adding enhanced features, and obtain the enhanced feature matrix H m , where H m ≡[H1, ..., H m ], m represents the number of enhanced features, H m The jth enhanced feature is H j ≡ξ(F 2 W hj +β hj ), j = 1, ..., m, ξ is the mapping function of the enhanced features, W hj and β hj are randomly generated weights and offsets respectively;
[0017] S26: The enhanced feature matrix H obtained in S25 m and the mapping feature matrix Z obtained in S23 n Merge and use the pseudo-inverse method to solve the connection weight W m , and obtain the trained children's lung PIBO prediction network model.
[0018] Further preferably, in S22, the network weights of the first five convolutional layers and the maximum pooling layer in the fixed VGG16 feature extraction module are used to train the children's lung CT image data, wherein the convolutional layer uses multiple 3*3 convolution kernels instead of 5*5 and 7*7 convolution kernels for convolution and pooling.
[0019] Further preferably, in S23, the mapping feature matrix Z n The i-th mapping feature is Among them, W ei is the initial weight matrix obtained from randomly generated numbers, representing the weight matrix that maps the input data X to the i-th mapping feature and further transforms the feature through the e-th enhancement feature, β ei is a randomly generated offset, Represents the linear activation function of the network.
[0020] Further preferably, in S24, the CBAM attention mechanism layer includes a channel attention layer and a spatial attention layer, the channel attention layer is used to aggregate the spatial information of the features, and the spatial attention layer is used to aggregate the channel information of the features.
[0021] Further preferably, in S24, the method for obtaining the feature matrix after adjusting the weights is as follows:
[0022] S241: Using the channel attention layer to obtain the channel attention layer feature matrix M c (Z n ), specifically expressed as:
[0023] M C (Z n )=σ(MLP(AvgPool(Z n ))+MLP(MaxPool(Z n )));
[0024] Where MLP represents a shared multi-layer perceptron, AvgPool is average pooling, MaxPool is maximum pooling, and σ is the sigmoid function;
[0025] S242: The channel attention layer feature matrix M C (Z n ) and the mapping feature matrix Z n Multiply element by element to get the feature matrix F 1 , then, the feature matrix F 1 Input to the spatial attention layer, retain the spatial feature information, and obtain the spatial attention layer feature matrix M s (F 1 ), specifically expressed as:
[0026]
[0027] M s (F 1 )=σ(f 7*7 ([AvgPool(F 1 );MaxPool(F 1 )]));
[0028] In the formula, AvgPool is the average pooling, MaxPool is the maximum pooling, σ is the sigmoid function, and f 7*7 The convolution kernel is 7*7 in size;
[0029] S243: The spatial attention layer feature matrix M s (F 1 ) and the feature matrix F 1 Multiply element by element to perform adaptive feature optimization and obtain the feature matrix F after adjusting the weights 2 , the specific expression is:
[0030]
[0031] Further preferably, in S26, the connection weight W m The calculation method is as follows:
[0032] Y=[Z n |H m ]W m ;
[0033] Wm =[Z n |H m ] + Y;
[0034] Where Y represents the prediction result corresponding to the CT image, that is, the label PIBO or non-PIBO.
[0035] The present invention also provides a children's lung PIBO prediction system based on a deep and wide learning network, which is used to execute the above-mentioned children's lung PIBO prediction method based on a deep and wide learning network.
[0036] The children's lung PIBO prediction method and prediction system based on deep and wide learning network provided by the present invention can make up for the shortcomings of the wide learning system in feature extraction by extracting features through the VGG16 model, and can further improve the accuracy of the model's prediction by combining the attention mechanism in the wide learning network. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The present invention will be further described in detail below in conjunction with the accompanying drawings and implementation modes.
[0038] Figure 1 A flow chart of a method for predicting PIBO in children's lungs based on a deep and wide learning network provided by the present invention;
[0039] Figure 2 This is a diagram of the children's lung PIBO prediction model based on the deep width learning network constructed by the present invention. DETAILED DESCRIPTION
[0040] The present invention will be further explained below in conjunction with specific implementation schemes, but the present invention is not limited thereto.
[0041] At present, the CT image prediction technology based on deep learning has a large number of parameters, high requirements for machine configuration and long prediction time, and due to the small number of data samples of PIBO in children's lungs, there are few research results on it. In view of this, the present invention aims at the shortcomings of current deep learning in predicting CT images of children's lungs, combines the mechanism of global feature extraction of images by the VGG16 module and the advantages of simple network structure and small number of parameters of the wide learning system, designs a deep wide learning network model and completes the prediction of PIBO in children's lungs.
[0042] On the one hand, the present invention provides a method for predicting PIBO in children's lungs based on a deep width learning network, comprising the following steps:
[0043] S1: Obtain a children's lung CT image dataset and divide it into a labeled training dataset and a test dataset, wherein the labels are PIBO and non-PIBO;
[0044] The acquired pediatric lung CT images include PIBO pediatric lung CT images and non-PIBO pediatric lung CT images. Preferably, the pediatric lung CT images are divided into a training data set and a test data set at a ratio of 4:1, and the image data are tiled and labeled in turn. The labels are divided into PIBO and non-PIBO categories. The PIBO label is set to 10, and the non-PIBO label is set to 01. The labeled data is put into a file as a data set;
[0045] S2: Design a children's lung PIBO prediction network model based on deep and wide learning and use the training data set and the test data set to train and test the children's lung PIBO prediction network model to obtain a trained children's lung PIBO prediction network model, wherein, Figure 2 As shown, the children's lung PIBO prediction network model includes a VGG16 feature extraction module and a width learning network module embedded with an attention mechanism, and the width learning network module includes a width learning network feature layer, a CBAM attention mechanism layer, a width learning network enhancement layer and an output layer connected in sequence;
[0046] The method for training the children's lung PIBO prediction network model is as follows:
[0047] S21: inputting the CT image data in the training data set obtained in S1 as an input matrix into the children's lung PIBO prediction network model;
[0048] S22: extracting global semantic features from the input pediatric lung CT images using the backbone structure of the VGG16 feature extraction module, specifically: training the pediatric lung CT image data using the network weights of the first five convolutional layers and the maximum pooling layer in the fixed VGG16 feature extraction module, wherein the convolutional layer uses multiple 3*3 convolutional kernels instead of 5*5 and 7*7 convolutional kernels for convolution and pooling, and the number of network parameters generated is relatively small;
[0049] S23: Use the width learning network feature layer to further map the global semantic features extracted in S22 to obtain the mapping feature matrix Z n , where Z n ≡[Z1, ..., Z n ], n is the number of mapping features in the feature layer of the width learning network;
[0050] Specifically: the data output from the network output of the VGG16 feature extraction module is used as the input matrix X of the width learning network module, and the feature matrix Z is mapped n The i-th mapping feature is Among them, W eiis the initial weight matrix obtained from randomly generated numbers, representing the weight matrix that maps the input data X to the i-th mapping feature and further transforms the feature through the e-th enhancement feature, β ei is a randomly generated offset, represents the linear activation function of the network;
[0051] S24: Use the CBAM attention mechanism layer to map the feature matrix Z obtained in S23 n Redistribute the weights of the mapping features in to obtain the feature matrix F after adjusting the weights 2 By adjusting the weights, the effect of focusing on important features and suppressing irrelevant features can be achieved. The CBAM attention mechanism layer includes a channel attention layer and a spatial attention layer. The channel attention layer is used to aggregate the spatial information of the features, and the spatial attention layer is used to aggregate the channel information of the features.
[0052] Among them, the method for obtaining the feature matrix after adjusting the weight is as follows:
[0053] S241: Using the channel attention layer to obtain the channel attention layer feature matrix M c (Z n ), specifically expressed as:
[0054] M C (Z n )=σ(MLP(AvgPool(Z n ))+MLP(MaxPool(Z n )));
[0055] Where MLP represents a shared multi-layer perceptron, AvgPool is average pooling, MaxPool is maximum pooling, and σ is the sigmoid function;
[0056] S242: The channel attention layer feature matrix M C (Z n ) and the mapping feature matrix Z n Multiply element by element to get the feature matrix F 1 , then, the feature matrix F 1 Input to the spatial attention layer, retain the spatial feature information, and obtain the spatial attention layer feature matrix M s (F 1 ), specifically expressed as:
[0057]
[0058] M s (F 1 )=σ(f 7*7 ([AvgPool(F1 );MaxPool(F 1 )]));
[0059] In the formula, AvgPool is the average pooling, MaxPool is the maximum pooling, σ is the sigmoid function, and f 7*7 The convolution kernel is 7*7 in size;
[0060] S243: The spatial attention layer feature matrix M s (F 1 ) and the feature matrix F 1 Multiply element by element to perform adaptive feature optimization and obtain the feature matrix F after adjusting the weights 2 , the specific expression is:
[0061]
[0062] S25: The weighted feature matrix F obtained in S24 is 2 Input to the width learning network enhancement layer, expand the network by adding enhanced features, and obtain the enhanced feature matrix H m , where H m ≡[H1, ..., H m ], m represents the number of enhanced features, H m The jth enhanced feature is H j ≡ξ(F 2 W hj +β hj ), j = 1, ..., m, ξ is the mapping function of the enhanced features, W hj and β hj are randomly generated weights and offsets respectively;
[0063] S26: The enhanced feature matrix H obtained in S25 m and the mapping feature matrix Z obtained in S23 n Merge and use the pseudo-inverse method to solve the connection weight W m , we get the children's lung PIBO prediction network model after adjusting the weights, that is, the trained children's lung PIBO prediction network model, where the connection weights W m The calculation method is as follows:
[0064] Y=[Z n |H m ]W m ;
[0065] W m =[Z n |H m ] + Y;
[0066] Where Y represents the prediction result corresponding to the CT image, that is, the label PIBO or non-PIBO.
[0067] S3: Use the trained children's lung PIBO prediction network model to perform PIBO prediction on the children's lung CT images to be predicted to obtain a prediction result.
[0068] The present invention also provides a children's lung PIBO prediction system based on a deep and wide learning network, which is used to execute the children's lung PIBO prediction method based on the deep and wide learning.
[0069] The method for predicting PIBO in children's lungs provided by the present invention integrates deep learning and wide learning, uses a partial architecture in deep learning as the first step of image feature extraction, and uses the CBAM attention mechanism in the wide learning network module embedded with the attention mechanism to improve the feature extraction capability. The method includes: inputting children's lung CT image data into the prediction model for training, obtaining an optimized network model, and using the model to predict children's lung CT images to assist doctors in further diagnosis.
[0070] The model used in the present invention has a simple structure, fast speed and high accuracy. Compared with the complex network structure of the deep learning network, its network structure is relatively simple, with a small number of parameters and a fast training speed. The requirements for the equipment are also correspondingly reduced, making it more suitable for embedded use in medical equipment. At the same time, compared with the single network structure of the wide learning network, it makes up for its shortcomings in feature extraction and improves its feature extraction ability. The model used in the present invention can predict children's lung CT images more accurately and quickly, and assist doctors in diagnosing children's lung PIBO.
[0071] The detailed description of the present invention is written in a progressive manner, emphasizing the differences between the various implementations, and similar parts thereof can be referred to each other.
[0072] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
Claims
1. A method for predicting PIBO in children's lungs based on a deep and wide learning network, characterized in that: The steps include: S1: Obtain a children's lung CT image dataset and divide it into a labeled training dataset and a test dataset, wherein the labels are PIBO and non-PIBO; S2: Design a children's lung PIBO prediction network model based on deep width learning and use the training data set and the test data set to train and test the children's lung PIBO prediction network model to obtain a trained children's lung PIBO prediction network model, wherein the children's lung PIBO prediction network model includes a VGG16 feature extraction module and a width learning network module embedded with an attention mechanism, and the width learning network module includes a width learning network feature layer, a CBAM attention mechanism layer, a width learning network enhancement layer and an output layer connected in sequence; S3: Use the trained children's lung PIBO prediction network model to perform PIBO prediction on the children's lung CT images to be predicted to obtain a prediction result.
2. The method for predicting PIBO in children's lungs based on a deep and wide learning network according to claim 1, characterized in that: In S1, the children's lung CT images are divided into a training data set and a test data set in a ratio of 4:1, and the image data are tiled and labeled in turn.
3. The method for predicting PIBO in children's lungs based on a deep width learning network according to claim 1, characterized in that: In S2, the method for training the children's lung PIBO prediction network model is as follows: S21: inputting the CT image data in the training data set obtained in S1 as an input matrix into the children's lung PIBO prediction network model; S22: extracting global semantic features from the input child lung CT image using the backbone structure of the VGG16 feature extraction module; S23: Use the width learning network feature layer to further map the global semantic features extracted in S22 to obtain the mapping feature matrix Z n , where Z n ≡[Z1, ..., Z n ], n is the number of mapping features in the feature layer of the width learning network; S24: Use the CBAM attention mechanism layer to map the feature matrix Z obtained in S23 n Redistribute the weights of the mapping features in to obtain the feature matrix F after adjusting the weights 2 ; S25: The weighted feature matrix F obtained in S24 is 2 Input to the width learning network enhancement layer, expand the network by adding enhanced features, and obtain the enhanced feature matrix H m , where h m ≡[H1, ..., H m ], m represents the number of enhanced features, H m The jth enhanced feature is H j ≡ξ(F 2 W hj +β hj ), j = 1, ..., m, ξ is the mapping function of the enhanced features, W hj and β hj are randomly generated weights and offsets respectively; S26: The enhanced feature matrix H obtained in S25 m and the mapping feature matrix Z obtained in S23 n Merge and use the pseudo-inverse method to solve the connection weight W m , and obtain the trained children's lung PIBO prediction network model.
4. The method for predicting PIBO in children's lungs based on a deep width learning network according to claim 3, characterized in that: In S22, the network weights of the first five convolutional layers and the maximum pooling layer in the fixed VGG16 feature extraction module are used to train the children's lung CT image data. Among them, the convolutional layer uses multiple 3*3 convolution kernels instead of 5*5 and 7*7 convolution kernels for convolution and pooling.
5. The method for predicting PIBO in children's lungs based on a deep width learning network according to claim 3, characterized in that: In S23, the mapping feature matrix Z n The i-th mapping feature in is Among them, W ei is the initial weight matrix obtained from randomly generated numbers, representing the weight matrix that maps the input data X to the i-th mapping feature and further transforms the feature through the e-th enhancement feature, β ei is a randomly generated offset, Represents the linear activation function of the network.
6. The method for predicting PIBO in children's lungs based on a deep and wide learning network according to claim 3, characterized in that: In S24, the CBAM attention mechanism layer includes a channel attention layer and a spatial attention layer. The channel attention layer is used to aggregate the spatial information of the features, and the spatial attention layer is used to aggregate the channel information of the features.
7. The method for predicting PIBO in children's lungs based on a deep width learning network according to claim 6, characterized in that: In S24, the method for obtaining the feature matrix after adjusting the weight is as follows: S241: Using the channel attention layer to obtain the channel attention layer feature matrix M c (Z n ), specifically expressed as: M C (WITH n )=σ(MLP(AvgPool(Z n ))+MLP(MaxPool(Z n ))); Where MLP represents a shared multi-layer perceptron, AυgPool is average pooling, MaxPool is maximum pooling, and σ is the sigmoid function; S242: The channel attention layer feature matrix M C (Z n ) and the mapping feature matrix Z n Multiply element by element to get the feature matrix F 1 , then, the feature matrix F 1 Input to the spatial attention layer, retain the spatial feature information, and obtain the spatial attention layer feature matrix M s (F 1 ), specifically expressed as: M s (F 1 )=σ(f 7*7 ([AugPool(F 1 );MaxPool(F 1 )])); In the formula, AυgPool is the average pooling, MaxPool is the maximum pooling, σ is the sigmoid function, and f 7*7 The convolution kernel is 7*7 in size; S243: The spatial attention layer feature matrix M s (F 1 ) and the feature matrix F 1 Multiply element by element to perform adaptive feature optimization and obtain the feature matrix F after adjusting the weights 2 , the specific expression is:
8. The method for predicting PIBO in children's lungs based on a deep width learning network according to claim 3, characterized in that: In S26, the connection weight W m The calculation method is as follows: Y=[Z n |H m ]W m ; W m =[Z n |H m ] + Y; Where Y represents the prediction result corresponding to the CT image, that is, the label PIBO or non-PIBO.
9. A children's lung PIBO prediction system based on deep width learning network, characterized by: Used to execute the children's lung PIBO prediction method based on deep width learning network as described in any one of claims 1 to 8.
