A domain-adaptive segmentation method for supercardiac images driven by eye movement attention

By using doctor's eye movement information to extract high-dimensional attention features and cross-attention fusion, it solves the problem of lack of cardiac ultrasound image data and complex noise, and achieves efficient domain adaptation and segmentation performance improvement of the model under the supervision of no target domain labels. Reduces training costs and manpower burden.

CN118154627BActive Publication Date: 2024-09-03SOUTHEAST UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410567441.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-09-03
Estimated Expiration
2044-05-09

AI Technical Summary

Technical Problem

Cardiac ultrasound image data is scarce and the noise is complex. Existing domain adaptation methods are difficult to effectively adapt to the noise patterns between different domains, resulting in the model overfitting on the training data and declining performance on other domain data, and the segmentation task is affected by various factors. Impact,category imbalance problem is difficult to solve.

Method used

A domain-adapted segmentation method for cardiac ultrasound images driven by eye movement attention is adopted. The doctor's eye movement information-assisted model is used to quickly obtain common features between different domains. The eye movement gaze intensity distribution matrix is ​​used to extract high-dimensional attention features and the teacher model. Intermediate features are cross-attentionally fused to generate universal features, and cross-entropy loss and Dice loss are used to optimize the model to reduce overfitting and category imbalance problems.

Benefits of technology

Quickly adapting to different domain data sets without manual annotation significantly improves the segmentation performance of cardiac ultrasound images, reduces training time and labor costs, and achieves efficient domain adaptation of the model and accuracy of segmentation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118154627B
    Figure CN118154627B
Patent Text Reader

Abstract

The present invention discloses a domain adaptation segmentation method for ultrasound images based on eye movement attention drive, comprising the steps of: using an eye tracker to collect the eye gaze position distribution information of doctors when reading ultrasound images in the target domain, using source domain data to train and initialize a teacher neural network model, obtaining preliminary ultrasound image segmentation capabilities, training a student model with pseudo labels as optimization targets, extracting high-dimensional attention features from an eye gaze heat map through an encoder, generating common features of a teacher model with eye movement attention on ultrasound images, and calculating the sum of the eye movement weighted loss and the common feature alignment loss to optimize the model. The eye movement heat map and domain adaptation method used by doctors during diagnosis enable the training of a good-performance ultrasound image segmentation neural network when the data set is scarce and does not consume extra time to label the data set, and the model performance can be continuously improved as the doctor's diagnosis process proceeds.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of medical image processing, and relates to a cardiac ultrasound image adaptive segmentation technology, and in particular to a cardiac ultrasound image domain adaptive segmentation method based on eye movement attention driving. Background Art

[0002] Heart disease is one of the leading causes of death worldwide. A heart attack may cause cardiac arrest or even sudden death. Cardiac ultrasound is one of the important tools for diagnosing various heart diseases. It can help doctors detect abnormalities in heart muscles, whether heart valves function properly, the size and shape of the heart, etc., to help determine the type and severity of heart disease. Using deep learning methods to segment cardiac ultrasound images and achieve accurate auxiliary diagnosis and treatment has great clinical value. However, cardiac ultrasound image data is scarce, and annotation and model training require a lot of time. There are only about 3 publicly available cardiac ultrasound semantic segmentation datasets. Compared with other modalities, these data are far from meeting the training requirements of a reliable semantic segmentation neural network, and the model is prone to overfitting on the training data, and the model performance declines on data in other domains.

[0003] In the field of medical imaging, there are already a large number of domain adaptation methods that attempt to solve the performance degradation problem of data in different domains, but none of them are suitable for cardiac ultrasound images. Ultrasound images contain a lot of noise. Due to the differences in ultrasound sampling equipment, different sampling settings, and different heart conditions of patients, the noise patterns in ultrasound images in different domains are also very different. Previous domain adaptation methods have made it difficult for the model to adapt to the complex noise patterns between different domains. Domain adaptation methods require data labels as support. Domain adaptation methods based on adversarial training, such as CycleGAN and CyCADA, use adversarial training to transfer the style of source domain ultrasound images, and use the model to perform supervised training on the source domain data after style transfer. However, domain adaptation methods based on adversarial training are more likely to cause mode collapse on cardiac ultrasound images, and the model is prone to overfitting on the collapsed source domain data. Domain adaptation methods based on self-training have no additional information to help them, and it is difficult to extract the common features of cardiac ultrasound images. The model is very likely to overfit on the pseudo-labels generated by the teacher model. Methods based on frequency domain exchange style transformation, such as FDA, cannot achieve good domain adaptation simply by exchanging high-frequency information in the frequency domain because the noise patterns and images distributed in the frequency domain and ultrasound images in different domains have no obvious distribution correlation.

[0004] In addition to the difficulties brought by the domain adaptation task, the segmentation task also faces great challenges. Cardiac ultrasound images are often affected by multiple factors, such as beam scattering, tissue inhomogeneity, and mechanical movement, which introduce noise and artifacts, degrade image quality, and increase the difficulty of image segmentation. In addition, the heart is a dynamic organ, and its morphology and position change with factors such as the cardiac cycle and breathing. This dynamicity makes it more difficult to accurately segment cardiac structures in different cardiac phases. In cardiac ultrasound images, the sizes and shapes of different cardiac structures vary greatly, leading to a class imbalance problem, that is, some structures may appear less frequently, making it difficult for the model to fully learn and recognize these structures.

[0005] The introduction of eye movement information can help us cope with the difficulties of domain adaptation segmentation of cardiac ultrasound images. Previous domain adaptation methods lacked the support of exogenous auxiliary information. The eye movement information of doctors when reading cardiac ultrasound contains a lot of implicit prior knowledge when doctors make diagnoses. Combining the doctor's prior knowledge helps the model quickly adapt to the noise pattern of the target domain and quickly obtain common features between different domains, so that the model can obtain better segmentation performance in different ultrasound sampling scenarios. Using this technology, doctors can collect eye movement data while reading the film and use the eye movement data to update the model for domain adaptation in real time, which saves a lot of labeling time costs and training time consumption compared to traditional technologies. Summary of the invention

[0006] The purpose of the present invention is to provide a domain adaptation segmentation method for echocardiogram images driven by eye movement attention. At present, there are few high-quality annotated echocardiogram data sets. Due to different sampling equipment, sampling angles, and patient conditions, there are huge differences in the styles of echocardiogram images in different domains. The model needs to supplement the doctor's eye movement knowledge information to assist the domain adaptation process of the model. The neural network model with basic segmentation ability is trained using the existing annotated source domain echocardiogram image data. For other unlabeled echocardiogram image data, the eye movement information of the doctor in other unlabeled echocardiogram images is collected using an eye tracker, and the neural network model is trained without the supervision of manually annotated labels using the eye movement information and pseudo labels generated by the neural network with basic segmentation ability. The doctor's eye movement information contains professional prior knowledge. Using a neural network to extract prior knowledge can help the model quickly obtain common features between different domains, and at the same time help the model quickly locate the segmented area of ​​interest. Using eye movement information, the model can quickly adapt to data sets in other fields without manually annotated labels, and show excellent segmentation performance. The eye movement information of the doctor during diagnosis is easy to collect, which can realize the doctor's diagnosis while assisting the segmentation model to show good adaptability. Compared with the tedious manual annotation fully supervised segmentation model training process, the eye movement attention-driven echocardiogram domain adaptation segmentation method gets rid of the training process's dependence on labels and greatly improves the training efficiency of the segmentation model.

[0007] In order to achieve the above object, the present invention provides an ultrasound image domain adaptation segmentation method based on eye movement attention driving, comprising the following steps:

[0008] S1: When doctors read cardiac ultrasound images, an eye tracker is introduced to collect eye gaze position information and use it for domain adaptive segmentation;

[0009] S2: Leveraging source domain datasets Train and initialize the teacher neural network model to obtain preliminary cardiac ultrasound image segmentation capabilities;

[0010] S3: Generate the target domain dataset using the teacher model trained in step S2 Pseudo labels , the student model is pseudo-labeled with the target domain dataset Train for optimization goals;

[0011] S4: Extract the eye movement high-dimensional attention features from the eye movement gaze intensity distribution matrix collected in step S1 through the encoder ;

[0012] S5: Eye movement high-dimensional attention features generated by step S4 Intermediate features with the teacher model decoder Perform cross-attention fusion to generate universal features of the teacher model with eye-gaze attention on cardiac ultrasound images ;

[0013] S6: Exploiting common features Intermediate features with the student model decoder Compute the general feature alignment loss ;

[0014] S7: Eye gaze weight matrix after normalization as the segmentation result of weight and student model Multiply it with the pseudo label of the target domain dataset Calculating eye balance loss ;

[0015] S8: Loss of eye balance and feature alignment loss And Dice loss The weighted sum is used to calculate the eye movement weighted loss, and the optimizer is used to optimize the model performance.

[0016] Furthermore, in step S1, when the doctor collects the doctor's eye movement information through the eye tracker while using the ultrasound image for diagnosis, there is no need to learn the operation of the eye tracker. The doctor only needs to keep his attention on the ultrasound image, and the eye tracker will automatically collect the eye movement trajectory. Compared with the traditional interaction method based on the doctor's prior knowledge, such as mouse clicking, graffiti, etc., the eye movement trajectory is more in line with the doctor's intuitive judgment, and the eye movement information is also more valuable. The refresh frequency of the eye tracker collection should be maintained at 10 to 20 times per second. A rate that is too low will result in poor quality of the gaze intensity distribution matrix, and a rate that is too high will result in unbalanced local attention distribution. The gaze intensity distribution matrix is ​​generated using the coordinate sequence, and the gaze intensity distribution matrix is ​​used to generate a gaze intensity heat map.

[0017] Furthermore, in step S2, the source domain data set includes mask labels of source domain echocardiogram images, and the teacher neural network model is trained in a fully supervised manner so that the model has the ability to initially segment echocardiogram images and can generate pseudo labels of average quality. The source domain data set uses a data set with more images as much as possible to ensure that it has a certain generalization performance. The teacher model uses U-Net as the basic backbone network. U-Net is a classic medical image segmentation network. Using U-Net can ensure that the model has accurate segmentation results on cardiac ultrasound images. U-Net includes 4 downsampling modules composed of convolutional layers for extracting feature information of the foreground, and 4 upsampling modules use deep foreground features to generate segmentation results.

[0018] Furthermore, in step S3, the teacher model is in the source domain dataset After training on the target domain dataset, Test and generate pseudo labels for the target domain dataset ,

[0019] Using model pseudo labels for self-training can effectively avoid the mode collapse problem caused by adversarial network domain adaptation. The target domain cardiac ultrasound image data needs to be preprocessed to keep its image size the same as the source domain data cardiac ultrasound image size, with a length and width of 224. The student model uses U-Net as the backbone network and uses the parameters of the teacher model on the model. Initialization is performed, and the parameters of the teacher model remain fixed and are not updated when the student model is trained.

[0020] Furthermore, the eye movement gaze intensity distribution matrix in step S4 is generated by Gaussian blurring and regularizing the coordinate data of the eye movement trajectory. The Gaussian blurring operation realizes the transformation of the eye movement data from point coordinates to intensity maps, and the intensity maps are more in line with human cognition of the importance of different areas of attention. The feature encoder for eye movement feature extraction consists of five convolutional layers, three batch normalization layers, and three ReLU activation layers. The convolution operation is used to extract the detailed texture features and edge features in the eye movement weight matrix, and to construct the doctor's visual prior knowledge features. The eye movement feature encoder takes a low-dimensional eye movement gaze weight matrix as input and outputs a high-dimensional eye movement attention feature with a dimension of 512. , ensuring the number of dimensions is consistent with the intermediate features of the teacher model decoder match.

[0021] Furthermore, in step S5, the generated eye movement high-dimensional attention feature , and the intermediate features of the teacher model decoder Perform cross attention fusion, where the eye movement high-dimensional attention features After being processed by the Patch Embedding layer, it is mapped to the Q matrix in the cross attention module, the intermediate features of the teacher model decoder After being processed by the PatchEmbedding layer, it is mapped to the K matrix and V matrix in the cross attention module. The Q matrix is ​​used as query information to calculate the correlation between the data at different positions in the Q and K matrices. The correlation matrix of Q and K is multiplied with V to obtain features with doctor's eye movement guidance, and the channel splicing operation is used to simulate the residual. Finally, the Patch UnEmbedding layer is used to decode and obtain the general features. , the cross attention fusion process expression is as follows:

[0022] ,

[0023] in, Represents the dimension of the feature matrix. The cross-attention mechanism has excellent long-distance relationship modeling capabilities, ensuring that the eye movement attention information is well utilized. The cross-attention mechanism has excellent long-distance relationship modeling capabilities, integrating the eye movement information into the target domain data at a larger scale, ensuring that the eye movement attention information can be effectively utilized. General features It contains significant common features between different cardiac ultrasound image domains under the guidance of eye movement information. The common features can help the model quickly acquire the features of the segmentation target between different domains.

[0024] Furthermore, in step S6, the universal feature is used Intermediate features with the student model decoder Compute the general feature alignment loss Feature alignment loss , which can help the model effectively extract common features between different domains without label supervision, and avoid overfitting of the neural network model on the source domain data due to different noise patterns. Common features that incorporate eye movement information Intermediate features with the student model decoder Calculate the mean square loss (MSE), the loss function expression is as follows:

[0025] .

[0026] Furthermore, in step S7, the eye gaze weight matrix is ​​first normalized, and the normalization range is , get the normalized eye gaze weight matrix , and the segmentation results of the student model The corresponding positions are multiplied to obtain the output result with eye movement information, and the weighted result is combined with the pseudo label of the target domain dataset Calculate the cross entropy loss. The loss calculation expression is as follows:

[0027] .

[0028] The weighted cross entropy loss using eye gaze information helps the model obtain more segmentation possibilities in the eye gaze area without target domain data label supervision, and addresses the problems of overfitting and falling into local optimality caused by the imbalance of foreground and background pixels.

[0029] Furthermore, in step S8, eye movement balance loss is used And feature alignment loss , Dice loss And the cross entropy loss The weighted calculation loss is expressed as follows:

[0030] ,

[0031] ,

[0032] , , , , representing the weights of each loss, respectively, are set to 0.3, 1.2, 1.0, 1.0, and cross entropy loss and Dice loss As the main medical segmentation loss, it is used to improve the segmentation performance, while the eye movement alignment loss and loss of eye balance . Combining the losses of different proportions can achieve multi-level optimization effects on the model, improving the shape, edges, and details of the segmentation results. And through general feature optimization and segmentation area optimization, it can quickly adapt to cardiac ultrasound images in different domains. While doctors continuously obtain eye movement attention heat maps during the diagnosis process, they constantly use eye movement attention information to supplement the model. Continuously optimizing model performance and achieving parallel advancement of diagnosis and model training saves a lot of time and labor costs and reduces the burden on doctors.

[0033] Beneficial effects: Compared with the prior art, the present invention has the following advantages:

[0034] The present invention uses an eye tracker to collect the doctor's eye movement information, making full use of the doctor's prior knowledge related to disease diagnosis, and uses it as supplementary information for pre-adaptive segmentation of echocardiogram images, thereby realizing the segmentation domain adaptation of the neural network model without the supervision of target domain data labels, and improving the model performance through domain adaptation technology without consuming additional time and manpower costs;

[0035] The present invention proposes a feature alignment structure based on eye movement information fusion for optimization of neural network models at the feature layer. Eye movement information is extracted through a special encoder and fused with the intermediate features of the teacher model using a cross-attention mechanism to extract the common visual features of the teacher model. The intermediate features of the student model and the common visual features are used to calculate the loss and optimize the model. Compared with traditional methods, the feature alignment structure of eye movement information fusion enables the model to quickly learn the common features between different domains, reducing the overfitting problem of the model.

[0036] The present invention proposes a loss based on eye movement area balance. The eye movement weight matrix is ​​used to assign weights to the difficult-to-segment areas that are difficult for the model to notice, and the model has a higher loss in the difficult-to-segment areas. Compared with other traditional methods, the eye movement weight matrix can encourage the model to explore more segmentation possibilities outside the pseudo-label area and avoid overfitting the model on the pseudo-label.

[0037] The present invention proposes a domain adaptation segmentation method for echocardiogram images based on eye movement attention driving. The method can collect eye movement attention heat maps during doctor's diagnosis to help the model better adapt to the domain. While the doctor is diagnosing, the performance of the neural network model is also continuously improved, which creates a beneficial cycle of neural network assisting doctor's diagnosis and doctor's diagnosis driving the improvement of neural network performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of the structure of the supercardiac image domain adaptation segmentation method based on eye movement attention driving provided by the present invention,

[0039] Figure 2 A topological structure diagram of an eye movement alignment loss process structure provided by the present invention,

[0040] Figure 3 A schematic diagram of the topological structure of the eye balance loss process structure provided by the present invention,

[0041] Figure 4 A schematic diagram of a method for segmenting an ultrasound image domain based on eye movement attention driven by the present invention is provided.

[0042] Figure 5 This is a comparison chart of the segmentation test results of the present invention and other domain adaptation methods. DETAILED DESCRIPTION

[0043] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.

[0044] Embodiment: The ultrasound image segmentation method based on domain adaptation has high clinical value. Domain adaptation can solve the problem of shortage of ultrasound images and the adaptation of the model to the style differences between ultrasound images in different domains. However, the styles of ultrasound images in different domains are very different and the noise patterns are also different. Existing domain adaptation methods are difficult to adapt to the transformation of noise patterns between different domains. Therefore, the present invention adopts a domain adaptation segmentation method for ultrasound images driven by eye movement attention, and uses eye movement attention information as an auxiliary means of domain adaptation to improve the performance of the model. Previous domain adaptation technologies are difficult to correctly learn the common features between different domains through the intermediate feature layer. Using the cross-attention module to fuse eye movement information can help the model better learn the common features between different domain data at the feature layer. The domain adaptation learning framework based on adaptation is often limited by the pseudo-label performance generated by the teacher model. The eye movement heat map is integrated into the loss to help the model obtain more accurate segmentation results in the eye movement area. When doctors diagnose, they use neural network models to improve diagnostic efficiency. The neural network uses the eye movement attention information during the doctor's diagnosis to improve the model performance, forming a beneficial cycle of the diagnostic process. The eye-movement attention-driven supercardiac image domain adaptation segmentation framework can also reduce the reliance of segmentation model training on data labels, thereby reducing time and labor costs.

[0045] like Figure 4 FIG. 1 is a flow chart of the present invention, and the domain-adaptive echocardiogram image segmentation method includes the following steps:

[0046] S1: When doctors read cardiac ultrasound images, an eye tracker is introduced to collect eye gaze position information and use it for domain adaptive segmentation.

[0047] Compared with ordinary people without medical training, doctors can quickly capture more information when diagnosing. Therefore, the doctor's eye movement information also contains more prior knowledge related to diagnosis, and the prior knowledge can be collected for domain adaptation segmentation auxiliary information. The eye movement coordinates of the doctor during ultrasound diagnosis are recorded using an eye tracker and converted into an eye movement heat map for feature extraction in the subsequent process.

[0048] S2: Leveraging source domain datasets The teacher neural network model is trained and initialized to obtain preliminary cardiac ultrasound image segmentation capabilities.

[0049] In the scenario of adaptive segmentation tasks based on the domain of adaptive echocardiogram images, the source domain dataset needs to be used to initialize the teacher neural network model. The scale of the source domain echocardiogram data needs to be representative and have been annotated by doctors with high quality to cover most of the segmentation scenarios. The teacher neural network model uses U-Net as the basic backbone network. U-Net is a classic medical image segmentation network. Using U-Net can ensure that the model has accurate segmentation results on cardiac ultrasound images. U-Net contains 4 downsampling modules composed of convolutional layers to extract foreground feature information, and 4 upsampling modules use encoder deep features to generate segmentation results.

[0050] S3: Generate the target domain dataset using the teacher model trained in step S2 Pseudo labels , the student model is pseudo-labeled with target domain data Train for optimization goals;

[0051] The target domain dataset is echocardiogram data from other different domains. It is data from different domains with obvious style differences due to differences in sampling equipment, sampling settings, sampling angles, and patient conditions. In the scenario of adaptive echocardiogram image domain adaptation segmentation tasks, the target domain data only includes echocardiogram images, but does not include their corresponding segmentation labels. The teacher model trained with the source domain dataset is used to directly infer and generate pseudo labels on the target dataset. The student model is trained on the target domain dataset and uses pseudo labels as supervision information for domain adaptation segmentation. The target domain cardiac ultrasound image data needs to be preprocessed so that its image size remains the same as that of the source domain data cardiac ultrasound image. The student model uses U-Net as the backbone network and uses the parameters of the teacher model on the model. Initialization is performed, and the parameters of the teacher model remain fixed and are not updated when the student model is trained.

[0052] S4: Extract high-dimensional attention features from the eye gaze intensity distribution matrix collected in step S1 through the encoder ,

[0053] The sequence of eye movement attention point coordinates collected in step S1 needs to be converted to obtain information that can be used for segmentation. Gaussian blur is used to convert the coordinate point map into a heat map to reflect the doctor's attention intensity distribution. The eye movement attention intensity distribution indicates the location information that the doctor is interested in during diagnosis, which can be used to help the model perform domain adaptation segmentation. The encoder used for feature extraction consists of five convolutional layers, three batch normalization layers, and three ReLU activation layers. Convolution operations are used to extract detailed texture features and edge features in the eye movement weight matrix, and to construct the doctor's visual prior knowledge features. The encoder takes a low-dimensional eye movement gaze weight matrix as input and outputs high-dimensional eye movement attention features. .

[0054] S5: Eye movement high-dimensional attention features generated by step S4 Intermediate features with the teacher model decoder Perform cross-attention fusion to generate universal features of the teacher model with eye-gaze attention on cardiac ultrasound images ;

[0055] There are great differences in the styles of echocardiogram data from different domains, but doctors can still quickly locate and obtain the required diagnostic information from different styles. Obviously, there are common visual features and texture features between echocardiogram image data from different domains. Eye movement high-dimensional attention features contain a lot of guidance information, which can be used to quickly obtain cross-domain common features. Figure 2 As shown in the figure, the cross attention mechanism is used to transform the high-dimensional attention features of eye movements into and the intermediate features of the teacher model Fusion helps the student model quickly learn the robust universal features of the teacher model and use the universal features to segment images across domains. After being processed by the Patch Embedding layer, it is mapped to the Q matrix in the cross attention module, the intermediate features of the teacher model decoder After being processed by the Patch Embedding layer, it is mapped to the K matrix and V matrix in the cross attention module. The Q matrix is ​​used as query information to calculate the correlation between the data at different positions in the Q and K matrices. The correlation matrix of Q and K is multiplied with V to obtain features with the doctor's eye movement guidance, and the channel splicing operation is used to simulate the residual, and finally the PatchUnEmbedding layer is used to decode to obtain the general features The cross attention fusion process is expressed as follows:

[0056] .

[0057] S6: Exploiting common features Intermediate features with the student model decoder Compute the general feature alignment loss ;

[0058] The supervision of the loss function is needed to help the decoder of the student model quickly obtain common features.

[0059] Universal features incorporating eye gaze information Intermediate features with the student model decoder Perform feature alignment loss, where the loss function is the mean square loss function MSE, and the loss function expression is as follows:

[0060] .

[0061] S7: Eye gaze weight matrix after normalization as the segmentation result of weight and student model Multiply it with the pseudo label of the target domain dataset Calculating eye balance loss ;

[0062] In the context of the self-trained domain adaptation segmentation task, the target domain has no labels as supervision information, and the model is prone to overfitting on pseudo labels. The uneven distribution of foreground and background pixels in medical images can also easily cause the model to focus too much on the background area and ignore the supervision of the foreground area. Using eye movement heatmaps as supplementary information can solve the above problems. Figure 3 As shown, the normalized eye gaze weight matrix is ​​obtained , and multiplied by the corresponding position of the cardiac ultrasound image segmentation prediction result of the student model , obtain the output with eye gaze information, and compare the weighted result with the target domain pseudo label generated by the teacher model Calculate the cross entropy loss. The loss calculation expression is as follows:

[0063] .

[0064] S8: and The weighted sum of Dice loss is used to calculate the eye movement weighted loss, and the optimizer is used to optimize the model performance.

[0065] In step S8, eye movement balance loss is used And feature alignment loss , Dice loss And the cross entropy loss The weighted calculation loss is expressed as follows:

[0066] ,

[0067] ,

[0068] , , , , represent the weights of each loss, which are set to 0.3, 1.2, 1.0, 1.0 respectively. The model is optimized at multiple levels by combining losses of different proportions, and rapid adaptation of cardiac ultrasound images in different domains is achieved through general feature optimization and segmentation region optimization.

[0069] In order to prove the effectiveness of the present invention, the present invention also provides the following experiments:

[0070] Specifically, the present invention selects to use the CAMUS dataset as the source domain data and the HMC-QU dataset as the target domain data. The source domain data training set contains 9964 cardiac ultrasound images, the target domain data training set contains 2114 cardiac ultrasound images, and the test set contains 235 images. Figure 1 The training framework shown performs domain adaptation training and finally evaluates the performance on the target domain test set.

[0071] In the comparative experiment, the segmentation results of this method are compared with the mainstream unsupervised domain adaptation segmentation model. As shown in Table 1, in terms of segmentation performance evaluation indicators, this method has obvious improvements compared with other domain adaptation methods.

[0072]

[0073] Table 1 Comparison results of the segmentation of the echocardiogram domain adaptation method driven by eye movement attention and other domain adaptation methods on the target domain test data. The bold ones represent the best performance.

[0074] In order to more intuitively demonstrate the effectiveness of this method, the comparative test output is as follows Figure 5 As shown, the first column represents the input target domain echocardiogram image, the second column represents the segmentation result without domain adaptation, the third column represents the segmentation result of CycleGAN, the fourth column represents the segmentation result of SIFA, the fifth column represents the segmentation result of domain adaptation based on VAE, the sixth column represents the segmentation result of FDA, the seventh column represents the segmentation result of this method, and the eighth column represents the true segmentation label of the corresponding original input image. It can be seen that the segmentation result of the domain adaptation method proposed in the present invention is morphologically closer to the true segmentation result, and can better segment echocardiogram images of different domains without the label of the target domain.

[0075] It should be noted that the above embodiments are not intended to limit the protection scope of the present invention, and equivalent changes or substitutions made on the basis of the above technical solutions all fall within the protection scope of the claims of the present invention.

Claims

1. A method for segmenting supercardiac images based on eye movement attention, characterized in that: The method comprises the following steps: S1: When doctors read cardiac ultrasound images, an eye tracker is introduced to collect eye gaze position information, which is used for domain adaptive segmentation. The eye gaze intensity distribution matrix is ​​generated from the coordinate data of the eye trajectory through Gaussian blur and regularization operations. S2: Using the source domain dataset D s {X s , Y s } Train and initialize the teacher neural network model to obtain preliminary cardiac ultrasound image segmentation capabilities; S3: Generate the target domain dataset D using the teacher model trained in step S2 t {X t } The student model is pseudo-labeled with the target domain dataset Train for optimization goals; S4: The eye movement gaze intensity distribution matrix collected in step S1 is passed through the encoder to extract the eye movement high-dimensional attention feature f G ; Use convolution operation to extract detailed texture features and edge features in the eye movement weight matrix, and construct the doctor's visual prior knowledge features. The encoder takes the low-dimensional eye movement weight matrix as input and outputs a 512-dimensional eye movement high-dimensional attention feature f G , ensuring that the number of dimensions is consistent with the intermediate features f of the teacher model decoder T match; S5: The eye movement high-dimensional attention feature f generated by step S4 G and the intermediate feature f of the teacher model decoder T Perform cross attention fusion to generate the universal feature f of the teacher model with eye gaze attention on cardiac ultrasound images GA ; Among them, the eye movement high-dimensional attention feature f G After being processed by the Patch Embedding layer, it is mapped to the Q matrix in the cross attention module, and the intermediate feature f of the teacher model decoder T After being processed by the Patch Embedding layer, it is mapped to the K matrix and V matrix in the cross attention module. The Q matrix is ​​used as query information to calculate the association between the data at different positions in the Q and K matrices. The association matrix of Q and K is multiplied with V to obtain features with doctor's eye movement guidance, and the channel splicing operation is used to simulate the residual. Finally, the Patch UnEmbedding layer is used to decode and obtain the general feature f GA , S6: Using the common feature f GA and the intermediate features f of the student model decoder S Calculate the general feature alignment loss L GAA ; S7: Eye gaze weight matrix after normalization as the segmentation result of weight and student model Multiply it with the pseudo label of the target domain dataset Calculate the eye movement balance loss L GB ; S8: Loss of eye movement balance L GB and feature alignment loss L GAA And the Dice loss L DICE The weighted sum is used to calculate the eye movement weighted loss, and the optimizer is used to optimize the model performance.

2. The method for segmenting an ultrasound image in the domain of eye-movement-driven adaptive segmentation according to claim 1, characterized in that: In step S1, the doctor needs to use an eye tracker to collect eye movement position information during ultrasound diagnosis. The eye tracker collects the doctor's gaze position on the computer screen at a frequency of 20 times per second and saves it as an eye movement gaze coordinate sequence. The eye tracker collection refresh frequency should be maintained at 10 to 20 times per second. The coordinate sequence is used to generate a gaze intensity distribution matrix, and the gaze intensity distribution matrix is ​​used to generate a gaze intensity pseudo-color map.

3. The eye-movement attention-driven ultrasound image domain adaptation segmentation method according to claim 1, characterized in that: In step S2, according to the application scenario of the method, the source domain data set includes source domain data label Y s , the target domain data does not contain the target domain data label Y t The teacher model uses U-Net as the basic backbone network. U-Net is a classic medical image segmentation network. Using U-Net can ensure that the model has accurate segmentation results on cardiac ultrasound images. U-Net contains 4 downsampling modules composed of convolutional layers for extracting feature information, and 4 upsampling modules use the deep features of the encoder to generate segmentation results.

4. The method for segmenting an ultrasound image in the domain of eye-movement-driven adaptive segmentation according to claim 1, characterized in that: In step S3, the teacher model is based on the source domain dataset D s {X S , Y s } and then directly use it in the target domain dataset D t {X t } and generate pseudo labels for the target domain dataset The target domain cardiac ultrasound image data needs to be preprocessed to keep its image size the same as that of the source domain data cardiac ultrasound image, with a length and width of 224. The student model uses U-Net as the backbone network and uses the teacher model to initialize the model parameters θ. When the student model is trained, the parameters of the teacher model remain fixed and are not updated.

5. The method for segmenting an ultrasound image in the domain of eye-movement-driven adaptive segmentation according to claim 1, characterized in that: In step S4, the encoder is composed of five convolutional layers, three batch normalization layers and three ReLU activation layers.

6. The eye-movement attention-driven ultrasound image domain adaptation segmentation method according to claim 1, characterized in that: In step S5, the generated eye movement high-dimensional attention feature f G , and the intermediate feature f of the teacher model T Perform cross attention fusion. The cross attention fusion process expression is as follows: Among them, d represents the dimension of the feature matrix. The cross-attention mechanism has excellent modeling ability of long-distance relationships, which ensures that the eye movement attention information is well utilized. The general feature f GA It contains significant common features between different cardiac ultrasound image domains under the guidance of eye movement information. The common features can help the model quickly acquire the features of the segmentation target between different domains.

7. The eye-movement attention-driven ultrasound image domain adaptation segmentation method according to claim 1, characterized in that: In step S6, the general feature f is integrated with the eye movement information. GA and the intermediate features f of the student model decoder s Perform feature alignment loss, where the loss function is the mean square loss function MSE, and the loss function expression is as follows:

8. The eye-movement attention-driven ultrasound image domain adaptation segmentation method according to claim 1, characterized in that: In step S7, the eye movement weight matrix is ​​first normalized in the normalization range of [1, 230] to obtain the normalized eye movement weight matrix ω and compare it with the segmentation result of the student model. The corresponding positions are multiplied to obtain the output result with eye movement information, and the weighted result is combined with the pseudo label of the target domain dataset Calculate the cross entropy loss. The loss calculation expression is as follows:

9. The eye-movement attention-driven ultrasound image domain adaptation segmentation method according to claim 1, characterized in that: In step S8, the eye movement balance loss L is used GB And the feature alignment loss L GAA 、Dice loss L DICE And the cross entropy loss L CE The weighted calculation loss is expressed as follows: L total =λ gaa L GAA +λ gb L GB +λ dice L DICE +λ ce L CE ,λ gaa ,λ gb ,λ dice ,λ ce , represent the weights of each loss, which are set to 0.3, 1.2, 1.0, 1.0, L total The model is optimized at multiple levels by combining losses of different proportions, and rapid adaptation of cardiac ultrasound images in different domains is achieved through general feature optimization and segmentation region optimization.