A fundus image segmentation method and system based on multi-scale feature enhancement
By introducing multi-scale feature enhancement and blood vessel detail feature extraction modules into the fundus blood vessel image segmentation method, the problems of insufficient multi-scale semantic information exploration and noise processing in the existing technology are solved, and more accurate and stable fundus blood vessel image segmentation is achieved. Improved support for clinical diagnosis.
Patent Information
- Application Number
- CN202410912546.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-07-09
AI Technical Summary
Existing fundus blood vessel image segmentation methods have deficiencies in multi-scale semantic information exploration and noise processing, which results in limited accuracy and stability of the segmentation model, making it difficult to effectively capture changes in blood vessel structure and process unexpected noise data.
A fundus image segmentation method based on multi-scale feature enhancement is designed. Through the multi-scale feature input module, local multi-scale feature extraction module and global multi-scale feature module, combined with the blood vessel detail feature enhancement branch, multi-scale and local features are integrated, and the use The attention mechanism and dynamic serpentine convolution adaptively extract features, and a T-Loss loss function is constructed to optimize the segmentation results.
Significantly improves the model's ability to capture multi-scale semantic information, enhances the extraction of detailed blood vessel features, improves the accuracy and robustness of the segmentation model, provides more accurate and stable fundus blood vessel image segmentation results, and supports doctors high-quality clinical diagnosis.
Smart Images

Figure CN118470034B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer image technology, and in particular to a fundus image segmentation method and system based on multi-scale feature enhancement. Background Art
[0002] Cardiovascular and ophthalmic diseases can bring inconvenience to patients' lives and reduce their quality of life. Severe diseases can even lead to blindness, which is a heavy blow to patients' lives. The retina is the only tissue in the human body that can observe the deepest blood vessels. It has rich morphological characteristics such as vessel diameter, branch angle, branch length, and branch pattern. By observing the vessel width, angle, diameter, color, and vessel branching status of the retinal image, it is an important basis for auxiliary diagnosis of retinal vascular lesions. It can be used for the detection and diagnosis of various cardiovascular and ophthalmic diseases such as hypertension, diabetic retinopathy, arteriosclerosis, and stroke. Therefore, accurate segmentation of fundus blood vessels is crucial. It can assist doctors in completing many diseases such as retinal diseases of hypertension, glaucoma, cataracts, and diabetic retinopathy. Therefore, fundus blood vessel image segmentation technology, due to its significant clinical application value, can not only effectively improve the quality of medical services, but also greatly promote the deep integration of medicine and engineering technology.
[0003] At present, most of the fundus vascular image segmentation methods are based on U-Net neural networks. Although significant progress has been made in improving model accuracy and generalization ability, which has strongly promoted the development of intelligent diagnosis based on computer-aided diagnosis, the current fundus image segmentation work still faces many challenges and drawbacks: multi-scale semantic information has not been fundamentally and effectively explored, and the corresponding multi-scale semantic mining capabilities need to be further improved to more comprehensively capture the changes in vascular structure; due to the continuous downsampling process, some key vascular details will be lost, which undoubtedly weakens the accuracy of the segmentation model; unexpected noise data poses a major challenge to retinal vascular segmentation, and most existing methods have shortcomings in dealing with unexpected noise data, which affects the stability and robustness of the segmentation model.
[0004] Based on this, it is necessary to design a new fundus vascular image segmentation method to solve the above challenges and drawbacks and provide doctors with more accurate and complete segmentation results, thereby effectively assisting them in making more accurate judgments in clinical diagnosis and further improving the efficiency and quality of medical services. Summary of the invention
[0005] In view of the above situation, the main purpose of the present invention is to propose a fundus image segmentation method and system based on multi-scale feature enhancement to solve the above technical problems.
[0006] The present invention provides a fundus image segmentation method based on multi-scale feature enhancement, the method comprising the following steps:
[0007] Step 1: acquiring a fundus vascular image dataset, and preprocessing the fundus vascular image dataset to generate preprocessed image data;
[0008] Step 2: input the preprocessed image data into a multi-scale feature enhancement branch, and the preprocessed image data is processed in turn by a multi-scale feature input module, a local multi-scale feature extraction module, and a global multi-scale feature module in the multi-scale feature enhancement branch to obtain output features of the multi-scale feature enhancement branch; input the preprocessed image data into a vascular detail feature enhancement branch to obtain output features of the vascular detail feature enhancement branch;
[0009] Step 3, fusing the output features of the multi-scale feature enhancement branch with the output features of the vascular detail feature enhancement branch to obtain a segmentation feature map;
[0010] Step 4: Perform binary classification on the segmentation feature map to obtain the segmentation result, construct the T-Loss loss function through the segmentation result and the true label, optimize the segmentation result by minimizing the T-Loss loss function, and achieve accurate segmentation of the fundus image.
[0011] The present invention also proposes a fundus image segmentation system based on multi-scale feature enhancement, the system comprising:
[0012] A preprocessing module, used for acquiring a fundus vascular image data set, and preprocessing the fundus vascular image data set to generate preprocessed image data;
[0013] A dual-branch module, inputting the preprocessed image data into a multi-scale feature enhancement branch, wherein the preprocessed image data is sequentially processed by a multi-scale feature input module, a local multi-scale feature extraction module, and a global multi-scale feature module in the multi-scale feature enhancement branch to obtain output features of the multi-scale feature enhancement branch; inputting the preprocessed image data into a vascular detail feature enhancement branch to obtain output features of the vascular detail feature enhancement branch;
[0014] A fusion module, which fuses the output features of the multi-scale feature enhancement branch with the output features of the vascular detail feature enhancement branch to obtain a segmentation feature map;
[0015] In the training module, the segmentation feature map is subjected to binary classification to obtain the segmentation result. The T-Loss loss function is constructed through the segmentation result and the true label. The segmentation result is optimized by minimizing the T-Loss loss function to achieve accurate segmentation of the fundus image.
[0016] Compared with the prior art, the present invention has the following beneficial effects:
[0017] 1. The present invention designs a multi-scale feature input module, integrates features of three scales, and captures multi-scale semantic information from the source in a simple and effective way, so that the model can better understand and process vascular features of different sizes in fundus images.
[0018] 2. The present invention designs a local multi-scale feature extraction module to replace the traditional U-Net codec, and solves the problems of insufficient local multi-scale information and unexpected noise interference through cascaded convolution kernels and attention mechanism, so as to further mine multi-scale information.
[0019] 3. The present invention designs a plug-and-play vascular detail enhancement branch, which adaptively extracts vascular detail features through dynamic snake-like convolution.
[0020] 4. This invention greatly supports doctors' clinical diagnosis work through accurate and efficient fundus vascular image segmentation technology, thus laying a solid foundation for achieving high-quality medical services. This technology can accurately extract the key features of fundus blood vessels, provide doctors with clear and accurate diagnostic basis, and promote the continuous progress and development of the medical industry.
[0021] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description or learned through embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 A flowchart of a fundus image segmentation method based on multi-scale feature enhancement proposed by the present invention;
[0023] Figure 2 It is a structural diagram of a multi-scale feature input module in a fundus image segmentation method based on multi-scale feature enhancement proposed by the present invention;
[0024] Figure 3 This is a structural diagram of a local multi-scale extraction module in a fundus image segmentation method based on multi-scale feature enhancement proposed by the present invention;
[0025] Figure 4 It is a structural diagram of a global multi-scale feature enhancement module in a fundus image segmentation method based on multi-scale feature enhancement proposed by the present invention;
[0026] Figure 5 This is a schematic diagram of a detail enhancement branch in a fundus image segmentation method based on multi-scale feature enhancement proposed by the present invention;
[0027] Figure 6 A model diagram of a fundus image segmentation method based on multi-scale feature enhancement proposed by the present invention;
[0028] Figure 7 This is an overall framework diagram of a fundus image segmentation system based on multi-scale feature enhancement proposed by the present invention. DETAILED DESCRIPTION
[0029] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0030] These and other aspects of the embodiments of the present invention will be apparent with reference to the following description and accompanying drawings. In these descriptions and accompanying drawings, some specific implementations of the embodiments of the present invention are specifically disclosed to represent some ways of implementing the principles of the embodiments of the present invention, but it should be understood that the scope of the embodiments of the present invention is not limited thereto.
[0031] See also Figure 1 The embodiment of the present invention provides a fundus image segmentation method based on multi-scale feature enhancement, the method comprising the following steps:
[0032] Step 1: acquiring a fundus vascular image dataset, and preprocessing the fundus vascular image dataset to generate preprocessed image data;
[0033] In the above scheme, data enhancement is performed on the acquired fundus vascular image dataset, and the corresponding processing steps are as follows:
[0034] The acquired fundus vascular image dataset is flipped and rotated at various angles and Gaussian noise is added;
[0035] The fundus vascular images are equalized using the CLAHE algorithm;
[0036] Crop the images to a size of 512×512 to enhance the dataset:
[0037] The acquired fundus vascular image dataset is flipped and rotated at various angles and Gaussian noise is added;
[0038] The fundus vascular images are equalized using the CLAHE algorithm;
[0039] The images are uniformly cropped to a size of 512×512 to enhance the data set.
[0040] Step 2: input the preprocessed image data into a multi-scale feature enhancement branch, and the preprocessed image data is processed in turn by a multi-scale feature input module, a local multi-scale feature extraction module, and a global multi-scale feature module in the multi-scale feature enhancement branch to obtain output features of the multi-scale feature enhancement branch; input the preprocessed image data into a vascular detail feature enhancement branch to obtain output features of the vascular detail feature enhancement branch;
[0041] Please refer to Figure 2 and Figure 6 In the above scheme, in the multi-scale feature enhancement branch, the steps of inputting the pre-processed image data into the multi-scale feature input module to obtain the output features of the multi-scale feature input module are as follows:
[0042] The input pre-processed image data is enlarged by two times and reduced by one time to obtain pixel features of three different sizes, and the pixel features of the three different sizes are subjected to convolution operation and fused to obtain fused multi-scale features;
[0043] Based on the fused multi-scale features, the Gaussian context converter module is used to perform global average pooling operations and Gaussian context activation operations to obtain the output features of the multi-scale feature input module. The formula used for the global average pooling operation is:
[0044] ;
[0045] in, Indicates the length of the feature, represents the width of the feature, represents the number of features, represents the index of the channel, Represents the pixel value at the current index, represents the output features of the multi-scale feature input module, represents a natural constant, Represents the horizontal index of the feature map, Represents the vertical index of the feature map, represents global average pooling;
[0046] The formula used for the Gaussian context activation operation is:
[0047] ;
[0048] in, It represents the result of normalizing the output features of the multi-scale feature input module. represents the standard deviation of the Gaussian function, Represents the obtained attention activation value.
[0049] Please refer to Figure 3 and Figure 6 In the above scheme, the output features of the multi-scale feature input module are input into the local multi-scale feature extraction module to obtain refined features. The specific steps are as follows:
[0050] The output features of the multi-scale feature input module are used to obtain the features through the first 3×3 convolution ;
[0051] The characteristics The features are obtained through the second 3×3 convolution ;
[0052] The characteristics The features are obtained through the third 3×3 convolution ;
[0053] By cascading two 3×3 convolutions, a 5×5 receptive field is obtained, and by cascading three 3×3 convolutions, a 7×7 receptive field is obtained to enrich the features. ,feature and Features Multi-scale information in
[0054] The characteristics Get features through DropBlock operation ;
[0055] The characteristics and Features Features obtained by splicing ;
[0056] Based on the obtained features ,The Gaussian context transformer module is used to obtain refined features after average pooling operation and Gaussian context activation operation.
[0057] Please refer to Figure 4 and Figure 6 Based on the refined features, the output features of the multi-scale feature enhancement branch are obtained through the global multi-scale feature module. The specific steps are as follows:
[0058] The global multi-scale feature module consists of a U-Net encoding branch and a global multi-scale enhancement branch. In the global multi-scale enhancement branch;
[0059] The values of the refined features are adjusted to the same range through a group normalization operation to obtain the adjusted refined features;
[0060] The adjusted refined features are passed through four parallel dilated convolutions with dilation rates of 1, 2, 4, and 8 to extract multi-view and multi-scale features of four different scales;
[0061] The four multi-view multi-scale features and refined features are concatenated, and then the output features of the global multi-scale feature enhancement branch are obtained through group normalization, MLP, Resize operation and skip connection;
[0062] In the U-Net encoding branch:
[0063] Input the refined features into the U-Net encoding branch to obtain the output features of the U-Net branch;
[0064] The output features of the global multi-scale feature enhancement branch are concatenated with the output features of the U-Net branch to obtain the output features of the multi-scale feature enhancement branch;
[0065] Among them, the corresponding formula is as follows:
[0066] ;
[0067] ;
[0068] in, represents the output features of the U-Net branch, represents the output features of the multi-scale feature enhancement branch, represents the feature concatenation operation, represents the output features of the global multi-scale feature enhancement branch, Represents refined features, represents the group normalization operation, represents four parallel dilated convolution operations, Represents the MLP&Resize operation;
[0069] Please refer to Figure 5 and Figure 6 In the above scheme, in the step of inputting the preprocessed image data into the vascular detail feature enhancement branch to obtain the output features of the vascular detail feature enhancement branch, the vascular detail feature enhancement branch uses two consecutive dynamic snake convolution modules to extract the features of the image data. In the dynamic snake convolution module, the preprocessed image data is first subjected to a snake dynamic convolution with a convolution kernel size of 3, and then subjected to a batch normalization operation and a ReLU activation function. The calculation formula in the process is as follows:
[0070] ;
[0071] in, represents image data, represents the features after the first dynamic snake convolution module, represents the output features of the vascular detail feature enhancement branch, represents a dynamic snake convolution with a convolution kernel of 3. represents a batch normalization operation, Represents the ReLu activation function.
[0072] Step 3: Fuse the output features of the multi-scale feature enhancement branch with the output features of the vascular detail feature enhancement branch to obtain a segmentation feature map.
[0073] Please refer to Figure 6 In the above scheme, the specific steps of fusing the output features of the multi-scale feature enhancement branch with the output features of the vascular detail feature enhancement branch to obtain the segmentation feature map are as follows:
[0074] The output features of the vascular detail feature enhancement branch are subjected to a maximum pooling operation to obtain one-fold, two-fold, four-fold, and eight-fold features respectively;
[0075] The obtained one-fold, two-fold, four-fold and eight-fold features are complementarily fused with the output features of the multi-scale feature enhancement branch, and finally the segmentation feature map is obtained;
[0076] Step 4: Perform binary classification on the segmentation feature map to obtain the segmentation result, construct the T-Loss loss function through the segmentation result and the true label, optimize the segmentation result by minimizing the T-Loss loss function, and achieve accurate segmentation of the fundus image.
[0077] In the above scheme, in the process of constructing the T-Loss loss function through the segmentation results and the true labels, the corresponding calculation formula is:
[0078] ;
[0079] in, represents an image dataset, represents the segmentation feature map, represents the segmentation result, Indicates the degree of response of the control loss function to different noise levels, represents the total number of samples, represents the T-Loss loss function, represents the covariance matrix of the normal distribution, Represents the probability density function based on the Student-t distribution.
[0080] See also Figure 7 The embodiment of the present invention further provides a fundus image segmentation system based on multi-scale feature enhancement, the system comprising:
[0081] A preprocessing module, used for acquiring a fundus vascular image data set, and preprocessing the fundus vascular image data set to generate preprocessed image data;
[0082] A dual-branch module, inputting the preprocessed image data into a multi-scale feature enhancement branch, wherein the preprocessed image data is sequentially processed by a multi-scale feature input module, a local multi-scale feature extraction module, and a global multi-scale feature module in the multi-scale feature enhancement branch to obtain output features of the multi-scale feature enhancement branch; inputting the preprocessed image data into a vascular detail feature enhancement branch to obtain output features of the vascular detail feature enhancement branch;
[0083] A fusion module, which fuses the output features of the multi-scale feature enhancement branch with the output features of the vascular detail feature enhancement branch to obtain a segmentation feature map;
[0084] In the training module, the segmentation feature map is subjected to binary classification to obtain the segmentation result. The T-Loss loss function is constructed through the segmentation result and the true label. The segmentation result is optimized by minimizing the T-Loss loss function to achieve accurate segmentation of the fundus image.
[0085] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0086] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0087] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A fundus image segmentation method based on multi-scale feature enhancement, It is characterized in that The method comprises the following steps: Step 1: acquiring a fundus vascular image dataset, and preprocessing the fundus vascular image dataset to generate preprocessed image data; Step 2: input the preprocessed image data into a multi-scale feature enhancement branch, and the preprocessed image data is processed in turn by a multi-scale feature input module, a local multi-scale feature extraction module, and a global multi-scale feature module in the multi-scale feature enhancement branch to obtain output features of the multi-scale feature enhancement branch; input the preprocessed image data into a vascular detail feature enhancement branch to obtain output features of the vascular detail feature enhancement branch; Step 3, fusing the output features of the multi-scale feature enhancement branch with the output features of the vascular detail feature enhancement branch to obtain a segmentation feature map; Step 4: Perform binary classification on the segmentation feature map to obtain the segmentation result, construct the T-Loss loss function through the segmentation result and the true label, optimize the segmentation result by minimizing the T-Loss loss function, and achieve accurate segmentation of the fundus image; In step 2, in the multi-scale feature enhancement branch, the steps of inputting the pre-processed image data into a multi-scale feature input module to obtain output features of the multi-scale feature input module are as follows: The input pre-processed image data is enlarged by two times and reduced by one time to obtain pixel features of three different sizes, and the pixel features of the three different sizes are subjected to convolution operation and fused to obtain fused multi-scale features; Based on the fused multi-scale features, the Gaussian context converter module is used to perform global average pooling operations and Gaussian context activation operations to obtain the output features of the multi-scale feature input module. The formula used for the global average pooling operation is: ; in, Indicates the length of the feature, represents the width of the feature, represents the number of features, represents the index of the channel, Represents the pixel value at the current index, represents the output features of the multi-scale feature input module, represents a natural constant, Represents the horizontal index of the feature map, Represents the vertical index of the feature map, represents global average pooling; The formula used for the Gaussian context activation operation is: ; in, It represents the result of normalizing the output features of the multi-scale feature input module. represents the standard deviation of the Gaussian function, represents the obtained attention activation value; The output features of the multi-scale feature input module are input into the local multi-scale feature extraction module to obtain refined features. The specific steps are as follows: The output features of the multi-scale feature input module are used to obtain the features through the first 3×3 convolution ; The characteristics The features are obtained through the second 3×3 convolution ; The characteristics The features are obtained through the third 3×3 convolution ; By cascading two 3×3 convolutions, a 5×5 receptive field is obtained, and by cascading three 3×3 convolutions, a 7×7 receptive field is obtained to enrich the features. ,feature and Features Multi-scale information in The characteristics Get features through DropBlock operation ; The characteristics and Features Features obtained by splicing ; Based on the obtained features , using the Gaussian context transformer module, refined features are obtained through average pooling operations and Gaussian context activation operations; Based on the refined features, the output features of the multi-scale feature enhancement branch are obtained through the global multi-scale feature module. The specific steps are as follows: The global multi-scale feature module consists of a U-Net encoding branch and a global multi-scale enhancement branch. In the global multi-scale enhancement branch; The values of the refined features are adjusted to the same range through a group normalization operation to obtain the adjusted refined features; The adjusted refined features are passed through four parallel dilated convolutions with dilation rates of 1, 2, 4, and 8 to extract multi-view and multi-scale features of four different scales; The four multi-view multi-scale features and refined features are concatenated, and then the output features of the global multi-scale feature enhancement branch are obtained through group normalization, MLP, Resize operation and skip connection; In the U-Net encoding branch: Input the refined features into the U-Net encoding branch to obtain the output features of the U-Net branch; The output features of the global multi-scale feature enhancement branch are concatenated with the output features of the U-Net branch to obtain the output features of the multi-scale feature enhancement branch; Among them, the corresponding formula is as follows: ; ; in, represents the output features of the U-Net branch, represents the output features of the multi-scale feature enhancement branch, represents the feature concatenation operation, represents the output features of the global multi-scale feature enhancement branch, Represents refined features, represents the group normalization operation, represents four parallel dilated convolution operations, Represents MLP&Resize operation; In the step of inputting the preprocessed image data into the blood vessel detail feature enhancement branch to obtain the output features of the blood vessel detail feature enhancement branch; The vascular detail feature enhancement branch uses two consecutive dynamic snake convolution modules to extract the features of the image data. In the dynamic snake convolution module, the preprocessed image data is first subjected to a snake dynamic convolution with a convolution kernel size of 3, and then subjected to batch normalization and ReLU activation function processing. The calculation formula in the process is as follows: ; in, represents image data, represents the features after the first dynamic snake convolution module, represents the output features of the vascular detail feature enhancement branch, represents a dynamic snake convolution with a convolution kernel of 3. represents a batch normalization operation, Represents the ReLu activation function.
2. The method for fundus image segmentation based on multi-scale feature enhancement according to claim 1, It is characterized in that In step 1, data enhancement is performed on the acquired fundus vascular image dataset, and the corresponding processing steps are as follows: The acquired fundus vascular image dataset is flipped and rotated at various angles and Gaussian noise is added; The fundus vascular images are equalized using the CLAHE algorithm; The images are uniformly cropped to a size of 512×512 to enhance the data set.
3. The fundus image segmentation method based on multi-scale feature enhancement according to claim 1, It is characterized in that In step 3, the specific steps of fusing the output features of the multi-scale feature enhancement branch with the output features of the vascular detail feature enhancement branch to obtain the segmentation feature map are as follows: The output features of the vascular detail feature enhancement branch are subjected to a maximum pooling operation to obtain one-fold, two-fold, four-fold, and eight-fold features respectively; The obtained one-fold, two-fold, four-fold and eight-fold features are complementarily fused with the output features of the multi-scale feature enhancement branch, and finally the segmentation feature map is obtained.
4. The method for fundus image segmentation based on multi-scale feature enhancement according to claim 3, It is characterized in that In step 4, in the process of constructing the T-Loss loss function through the segmentation results and the true labels, the corresponding calculation formula is: ; in, represents an image dataset, represents the segmentation feature map, represents the segmentation result, Indicates the degree of response of the control loss function to different noise levels, represents the total number of samples, represents the T-Loss loss function, represents the covariance matrix of the normal distribution, Represents the probability density function based on the Student-t distribution.
5. A fundus image segmentation system based on multi-scale feature enhancement, It is characterized in that The system applies a fundus image segmentation method based on multi-scale feature enhancement as described in any one of claims 1 to 4 above, and the system comprises: A preprocessing module, used for acquiring a fundus vascular image data set, and preprocessing the fundus vascular image data set to generate preprocessed image data; A dual-branch module, inputting the preprocessed image data into a multi-scale feature enhancement branch, wherein the preprocessed image data is sequentially processed by a multi-scale feature input module, a local multi-scale feature extraction module, and a global multi-scale feature module in the multi-scale feature enhancement branch to obtain output features of the multi-scale feature enhancement branch; inputting the preprocessed image data into a vascular detail feature enhancement branch to obtain output features of the vascular detail feature enhancement branch; A fusion module, which fuses the output features of the multi-scale feature enhancement branch with the output features of the vascular detail feature enhancement branch to obtain a segmentation feature map; In the training module, the segmentation feature map is subjected to binary classification to obtain the segmentation result. The T-Loss loss function is constructed through the segmentation result and the true label. The segmentation result is optimized by minimizing the T-Loss loss function to achieve accurate segmentation of the fundus image.
