Multi-modal track defect segmentation method based on large model

By using intelligent cropping and object detection modules combined with multimodal prompting methods in track defect segmentation, the problems of background noise interference and label data dependence are solved, and the accuracy and efficiency of track defect detection are improved, especially in low-contrast images and micro defect detection.

CN118887236AInactive Publication Date: 2024-11-01SOUTHWEST JIAOTONG UNIV

Patent Information

Application Number
CN202410922672.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art is susceptible to background noise interference in track defect segmentation, and rely on large-scale annotation data sets, making it difficult to distinguish defects in low-contrast images from normal tracks, and the performance of handling small defects is degraded.

Method used

Using a multimodal track defect segmentation method based on large models, the intelligent cutting module and the object detection module combine with multimodal prompts, optimize the model input, reduce dependence on the annotated data, improve detection accuracy and efficiency, and use the Darknet-53 backbone network Feature extraction and prediction with Decoupled-Head.

Benefits of technology

It significantly improves the accuracy and efficiency of track defect detection, reduces dependence on labeled data, enhances the detection ability of subtle defects, reduces computing resource consumption, and improves the flexibility of the model and pays attention to key information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118887236A_ABST
    Figure CN118887236A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-modal track defect segmentation method based on a large model. The method comprises the following steps: acquiring track defect training data and track defect data; training the defect detection model by using the track defect training data to obtain a trained defect detection model; the defect detection model comprises an intelligent cutting module, a target detection module and a comprehensive detection module; the target detection module carries out defect detection on the cut track defect training data, and the output of the target detection module comprises a track defect image of a prompt box and a prompt point; the comprehensive detection module is used for performing defect detection on the cut track defect training data in combination with the output of the target detection module, and outputting track defects; and inputting the track defect data into the trained defect detection model, and outputting a track defect detection result through the trained defect detection model. According to the invention, the track defect detection efficiency and accuracy can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer vision, and in particular to a recognition method, and in particular to a multi-modal track defect segmentation method based on a large model. Background Art

[0002] In the task of track defect segmentation, deep learning techniques such as U-Net, fully convolutional networks (FCN) and MaskR-CNN have been introduced. Although these methods have improved segmentation accuracy and processing capabilities, they still face several key challenges. First, these models are easily disturbed by background noise in complex environments, which may lead to incorrect identification of non-defective elements, thus affecting the accuracy of segmentation. Secondly, the effectiveness of these deep learning models depends heavily on large-scale and high-quality annotated datasets, which are time-consuming and costly to obtain in the field of track defect analysis. In addition, for images with low contrast, the model may find it difficult to effectively distinguish the subtle differences between defects and normal tracks, resulting in decreased segmentation performance. Finally, dealing with tiny defects such as fine cracks or wear remains a challenge for these models, because such defects are usually less obvious in the image and it is difficult to capture their characteristics through the model.

[0003] In recent years, with the rapid development of artificial intelligence technology, general large models such as the Segment Anything Model (SAM) proposed by Meta AI have been widely used in the field of image segmentation. SAM is a general, promptable segmentation model that combines an image encoder, a prompt encoder, and a mask decoder. Its more than 1 billion masks trained on more than 11 million images have demonstrated excellent zero-sample generalization capabilities and can accurately "cut out" any object in an image without additional training.

[0004] Although the SAM model has shown remarkable capabilities in the field of image segmentation, it still faces a series of challenges in specific application areas, such as rail defect detection. First, the complex network structure and the large number of parameters lead to a long inference time, which becomes a significant bottleneck in application scenarios that require real-time or near-real-time processing. Second, although SAM has demonstrated good generalization capabilities, when processing images in a specific field, its performance still has room for improvement compared to models designed specifically for that field. Summary of the invention

[0005] In view of the above-mentioned deficiencies in the prior art, the present invention provides a multi-modal track defect segmentation method based on a large model, which solves the problem of inaccurate track defect segmentation in the prior art.

[0006] In order to achieve the above-mentioned object of the invention, the technical solution adopted by the present invention is:

[0007] A multi-modal track defect segmentation method based on a large model comprises the following steps:

[0008] S1. Acquire track defect training data and track defect data;

[0009] S2. Using the track defect training data to train the defect detection model to obtain a trained defect detection model;

[0010] The defect detection model includes intelligent cutting module, target detection module and comprehensive detection module;

[0011] The intelligent cropping module is used to crop the track defect training data;

[0012] The target detection module performs defect detection on the cropped track defect training data. The output of the target detection module includes a track defect image with a prompt box and prompt points.

[0013] The comprehensive detection module is used to combine the output of the target detection module, perform defect detection on the cropped track defect training data, and output the track defects;

[0014] S3. Input the track defect data into the trained defect detection model, and output the track defect detection results through the trained defect detection model.

[0015] The beneficial effects of the above scheme are:

[0016] (1) The present invention optimizes the model input by constructing a multimodal prompt set including bounding boxes and key points, thereby improving the large model's attention to defect areas, introducing a large image model, reducing dependence on large-scale annotated data sets, and improving detection efficiency and accuracy.

[0017] (2) The present invention effectively copes with background interference by introducing multimodal prompts, while improving the detection accuracy of subtle defects. It uses multimodal prompts to perform knowledge inspiration on the large image processing model SAM, significantly reducing the model's dependence on labeled data and enhancing the flexibility of data processing.

[0018] Further, in step S2, the intelligent cropping module includes an initial convolution layer, a maximum pooling layer, a residual layer, an adaptive average pooling layer, a fully connected layer and a Dropout layer connected in sequence;

[0019] The convolution kernel size of the initial convolution layer is 7*7, the convolution step size of the initial convolution layer is 2, and the padding of the initial convolution layer is 3;

[0020] The number of residual layers is 4, each convolutional layer contains at least one residual block, and each residual block includes two convolutional layers and one SE layer.

[0021] The beneficial effect of the above further scheme is: the algorithm automatically identifies and crops out non-target areas, retaining only the core target areas, thereby optimizing the quality of the input data and significantly improving the effects of subsequent processing steps, such as feature extraction and pattern recognition; this intelligent cropping not only reduces unnecessary consumption of computing resources, but also enhances the model's focus on key information.

[0022] Further, the object detection module includes a backbone layer, an intermediate layer, and a prediction output layer connected in sequence;

[0023] The backbone layer uses Darknet-53 as the backbone network, which includes four feature extraction modules connected in sequence. Each feature extraction module includes a convolution module and a residual module connected in sequence. The residual module includes a shortcut branch and a main branch.

[0024] The main branch includes at least one C2F convolutional layer and a normalization layer connected in sequence. The convolution kernel size of the C2F convolutional layer is 3*3, and the convolution step size of the C2F convolutional layer is 1;

[0025] The feature map size output by the backbone layer is 20×20×512;

[0026] The feature map size of the intermediate layer output is 20×20×512;

[0027] The prediction output layer uses Decoupled-Head as the decoupled head.

[0028] The beneficial effect of the above further scheme is that by introducing multimodal prompts, background interference can be effectively dealt with, while the detection accuracy of subtle defects is improved.

[0029] Furthermore, the expression of the comprehensive detection module is:

[0030] M=S(I′,B,P;θ S )

[0031] Among them, M is the final prediction result, θ s represents the parameters of the segmentation model, P represents the coordinates of the point prompt, I′ represents the cropped track defect image, and B represents the box coordinates of the target defect position.

[0032] Furthermore, the loss function of the intelligent cropping module is:

[0033]

[0034] Where N is the number of training samples, Output i and i are the i-th predicted output and i-th actual label of the smart cropping module, respectively.

[0035] Furthermore, the loss function of the target detection module includes distribution focal loss (DFL) and complete IoU loss (CIOU), where the distribution focal loss DFL is:

[0036]

[0037] Where N is the total number of samples in the training batch, C is the number of categories, and p ij is the probability that the i-th sample belongs to the j-th category, t ij is an indicator variable, indicating whether the i-th sample belongs to the j-th category, a and b are adjustment parameters in the focal loss;

[0038] The complete iou loss CIOU is:

[0039]

[0040] Among them, cx and cy are the center coordinates of the predicted bounding box, gx and gy are the center coordinates of the real bounding box, gw and gh are the width and height of the real bounding box, IoU is the intersection-over-union ratio of the predicted bounding box and the real bounding box, cIoU is the normalized coefficient of the IoU loss, areaInter is the intersection area of ​​the predicted bounding box and the real bounding box, and areaUnion is the union area of ​​the predicted bounding box and the real bounding box.

[0041] The beneficial effect of the above further solution is that the training of the intelligent cropping module and the target detection module can be accelerated, so that the training of the intelligent cropping module and the target detection module can converge better.

[0042] Furthermore, the method further comprises:

[0043] S4. Evaluate the trained defect detection model using evaluation indicators;

[0044] The evaluation indicators include average intersection-over-union ratio, Jaccard similarity coefficient, Dice similarity coefficient and precision.

[0045] Furthermore, the formula for the average intersection-over-union ratio is:

[0046]

[0047] Among them, TP_i, FP_i and FN_i represent the number of samples correctly classified as positive, the number of samples incorrectly classified as positive and the number of samples incorrectly classified as negative of the i-th class respectively; MIOU represents the average intersection over union ratio; IoU_i represents the intersection over union ratio index of the i-th class, and MIOU represents the average intersection over union ratio;

[0048] The formula for the Jaccard similarity coefficient is:

[0049]

[0050] Among them, TP represents the number of samples correctly classified as positive, FP represents the number of samples misclassified as positive, FN represents the number of samples misclassified as negative, and JSC represents the Jaccard similarity coefficient;

[0051] The formula for the Dice similarity coefficient is:

[0052]

[0053] Among them, TP represents the number of samples correctly classified as positive, FP represents the number of samples misclassified as positive, FN represents the number of samples misclassified as negative, and DSC represents the Dice similarity coefficient;

[0054] The formula for precision is:

[0055]

[0056] Among them, TP represents the number of samples correctly classified as positive, FP represents the number of samples incorrectly classified as positive, and Pre represents the precision.

[0057] The beneficial effects of the above further scheme are: through the evaluation results, it can be determined whether the model has achieved the expected effect, helping to decide whether the model needs to be further optimized or improved; by comparing the evaluation results of different models, the optimal model can be selected to solve specific tasks or problems, adjust the complexity of the model or take other measures to solve the overfitting or underfitting problems, and improve the generalization ability of the model; by evaluating the model performance under different parameter settings, the optimal parameter combination can be selected to improve the effect and generalization ability of the model; by analyzing the model evaluation results, the characteristics of the data and model can be better understood to provide support for business decisions. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 It is a flowchart of a multi-modal track defect segmentation method based on a large model;

[0059] Figure 2 It is a structural diagram of the intelligent cutting module;

[0060] Figure 3 It is a schematic diagram of the structure of the target detection module;

[0061] Figure 4 It is a schematic diagram of the structure of the middle layer;

[0062] Figure 5 This is a structural diagram of the defect detection model. DETAILED DESCRIPTION

[0063] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0064] Example 1

[0065] like Figure 1 As shown, a multimodal track defect segmentation method based on a large model includes the following steps:

[0066] S1. Acquire track defect training data and track defect data.

[0067] In this embodiment, the track defect training data may be Type-I_RSDDs_dataset and RailDefect-main data set, as shown in Table 1, which is key information of the track defect training data. The track defect training data is divided into training and test data sets at a ratio of 8:2.

[0068] Table 1 Key information of track defect training data

[0069]

[0070] S2. Using the track defect training data to train the defect detection model to obtain a trained defect detection model;

[0071] The defect detection model includes intelligent cutting module, target detection module and comprehensive detection module;

[0072] The intelligent cropping module is used to crop the track defect training data;

[0073] The target detection module performs defect detection on the cropped track defect training data. The output of the target detection module includes a track defect image with a prompt box and prompt points.

[0074] The comprehensive detection module is used to combine the output of the target detection module, perform defect detection on the cropped track defect training data, and output the track defects.

[0075] In this embodiment, the intelligent cropping module includes an initial convolution layer, a maximum pooling layer, a residual layer, an adaptive average pooling layer, a fully connected layer and a Dropout layer connected in sequence; the convolution kernel size of the initial convolution layer is 7*7, the convolution step size of the initial convolution layer is 2, and the padding of the initial convolution layer is 3; the number of residual layers is 4, each convolution layer contains at least one residual block, and each residual block includes two convolution layers and one SE layer.

[0076] For example, Figure 2As shown, Figure 2 The diagram is a schematic diagram of the structure of the smart cropping module. First, the input image of the smart cropping module is subjected to feature extraction through an initial convolution layer, which uses a 7×7 convolution kernel, a step size of 2, and a padding of 3. The mathematical representation is:

[0077] X conv =ReLU(BN(Conv(X input )))

[0078] Among them, X input is the input image, Conv, BN and ReLU represent convolution, batch normalization and activation functions respectively.

[0079] Then apply the maximum pooling layer to further reduce the spatial dimension of the feature map to reduce the amount of subsequent calculations:

[0080] X pool =MaxPool(X conv )

[0081] The core part of the smart cropping module is four residual layers. Each residual layer consists of multiple residual blocks. The basic structure of each residual block is two convolutional layers plus an SE attention layer. The mathematical expression of the residual block is:

[0082] X out =ReLU(X res +SE(BN(ReLU(BN(Conv(Conv(X res )))))))

[0083] The processing of the SE attention layer is as follows:

[0084] s=σ(W2δ(W1z))

[0085]

[0086] x′ c =s c ·x c

[0087] Among them, X out represents the output of the residual block, X res represents the residual input, σ represents the sigmoid activation function, FC represents the fully connected layer, z c represents the result of global average pooling of the cth channel in the input feature map, H, W represent the height and width of the input feature map, s represents the weight corresponding to the feature map, σ represents the Sigmoid activation function, δ represents the ReLU activation function, W1, W2 represent the weight matrices of the two fully connected layers, s c represents the weight of the cth channel, x'c Represents the adjusted feature map.

[0088] Exemplarily, the first component of the smart cropping module is an initial convolution layer, which uses a large 7x7 convolution kernel and a stride of 2 for convolution operations. Such a design can not only capture image features in a larger receptive field, but also reduce the computational burden while reducing the size of the feature map, and help suppress overfitting. The use of large convolution kernels can more effectively cover the target area in the image, which is conducive to the extraction of preliminary features. The convolution layer is followed by a maximum pooling layer, which increases the model's computational speed by further reducing the spatial dimension of the feature map and increases the network's tolerance to slight translation changes. This design helps to capture image features while keeping the model insensitive to small local changes, thereby improving model stability.

[0089] At the same time, the residual block introduced in the smart cropping module builds a deep network through identity mapping support. Each residual block contains two convolution operations, and enhances the nonlinear representation of features through batch normalization and ReLU activation function. The skip connection in the residual block helps to alleviate the gradient vanishing problem in the training process of deep neural networks and facilitates deeper feature learning. In addition, the introduction of SE blocks further improves the performance of the network. The SE block extracts global information through global average pooling, and then recalibrates the features through a two-layer fully connected network. Through this mechanism, the network can learn the importance of different feature channels and adjust the feature response between channels accordingly, so that the model can suppress unimportant features while focusing on features that help identify the target area.

[0090] In the deep network structure of the smart cropping module, downsampling is achieved through convolution operations with a stride of 1, which not only reduces the size of the feature map but also improves the abstraction level of the feature map. In these residual blocks, downsampling operations are necessary to adapt to feature learning at different scales. When the step size change causes dimension mismatch, the dimension of the residual connection is adjusted by introducing a downsampling module containing 1x1 convolution and batch normalization layers to ensure seamless connection of information. At the end of the model, an adaptive average pooling layer is used to convert the feature map to a fixed-size output. This step is to prepare the features to enter the final fully connected layer.

[0091] The model outputs the target variable through a fully connected layer. Here, the fully connected layer is designed to output four values, corresponding to the edge distances of the target area in the image. In addition, in order to reduce overfitting, a Dropout layer is also included in the model. The Dropout layer randomly discards a part of neurons during training, thereby forcing the network to learn more robust feature representations. Through this composite network architecture, the model of this study can effectively identify and process the key areas of the image, providing an accurate preprocessing step for image detection tasks.

[0092] In this embodiment, the target detection module includes a backbone layer, an intermediate layer and a prediction output layer connected in sequence; the backbone layer adopts Darknet-53 as the backbone network, including four feature extraction modules connected in sequence, each feature extraction module includes a convolution module and a residual module connected in sequence, and the residual module includes a shortcut branch and a main branch; the main branch includes at least one C2F convolution layer and a normalization layer connected in sequence, the convolution kernel size of the C2F convolution layer is 3*3, and the convolution step size of the C2F convolution layer is 1; the feature map size of the backbone layer output is 20×20×512; the feature map size of the intermediate layer output is 20×20×512; the prediction output layer uses Decoupled-Head as the decoupling head.

[0093] For example, Figure 3 It is a schematic diagram of the structure of the target detection module. Figure 3 As shown in the figure, the target detection module consists of three parts: Backbone (i.e., main layer), Neck (i.e., middle layer), and Head (i.e., prediction output layer). The Backbone part is the main network of the model, responsible for extracting features. The Neck part is located between the Backbone and the Head, responsible for further processing and compressing feature maps, reducing the amount of calculation and memory usage, and reducing the difficulty of model training. The Head part is responsible for predicting and outputting the feature maps processed by the Neck part.

[0094] In this embodiment, the Backbone part uses Darknet-53 as the backbone network, and connects four feature extraction modules in series. Each feature extraction module consists of a convolution module and a residual block. By introducing the residual block, the gradient vanishing problem is solved, so that the model converges quickly. The residual block consists of a shortcut and a main branch. The residual process is as follows:

[0095] r=x+F(x)

[0096] Among them, x represents the input feature map of the residual block, F(x) represents the operation of the main branch, and r is the final output of the residual block.

[0097] When the shapes of the input and output feature maps are inconsistent, the shortcut branch will use a 1×1 convolution layer and a normalization layer to downsample the input feature map and adjust the number of channels so that it has the same shape and number of channels as the output feature map. If the shape and number of channels are already the same, the input feature map is directly assigned to the shortcut branch output. The main branch consists of multiple C2F convolution layers and normalization layers. Each convolution layer uses a 3×3 convolution kernel with a step size of 1 and uses ReLU as the activation function. A normalization layer is added after the last convolution layer, and the output feature map is sent to the shortcut branch for summation. Then, the shortcut branch output and the main branch output are added, and the result of the addition is ReLU activated to finally output the feature map.

[0098] The Neck part designs two branches for each convolution layer, one of which is set with a smaller number of channels, and the other is set with a larger number of channels, and finally the two branches are cross-connected. Figure 4 As shown, Figure 4 It is a schematic diagram of the structure of the middle layer. The feature map size output by the fourth stage layer of Backbone is 20×20×512, denoted as feature_map1. After upsampling, the output feature map size is 40×40×512, and the feature map output by the third stage layer of Backbone is fused. The fused feature map is extracted by the CSPLayer layer, and the output feature map size is 40×40×512, denoted as feature_map2. After upsampling, feature_map2 is sized to 80×80×256, and the feature map output by the second stage layer of Backbone is fused. The output result is processed by CSPLayer, and the output feature map size is 80×80×256, denoted as feature_map3. After feature_map3 is processed by a convolutional layer with a 3×3 convolution kernel, a sliding step of 1, and zero padding of width 1, the output feature map size is 40×40×256. It is fused with feature_map2 and processed by CSPLayer. The output feature map size is 40×40×512, which is recorded as feature_map4. After feature_map4 is processed by the convolutional layer in the third step above, the size is converted to 20×20×512, and then it is fused with feature_map1. The output result is processed by CSPLayer, and the final output feature map size is 20×20×512, which is feature_map5.

[0099] like Figure 5 As shown, Figure 5 This is a schematic diagram of the defect detection model. Figure 5In , the comprehensive detection module is used to combine the output of the target detection module, perform defect detection on the cropped track defect training data, and output the track defects.

[0100] In this embodiment, the expression of the comprehensive detection module is:

[0101] M=S(I′,B,P;θ S )

[0102] Among them, M is the final prediction result, θ s represents the parameters of the segmentation model, P represents the coordinates of the point prompt, I′ represents the cropped track defect image, and B represents the box coordinates of the target defect position.

[0103] In this embodiment, the loss function of the intelligent cropping module is:

[0104]

[0105] Where N is the number of training samples, Output i and i are the i-th predicted output and i-th actual label of the smart cropping module, respectively.

[0106] In this embodiment, the loss function of the target detection module includes distribution focal loss (DFL) and complete IoU loss (CIOU), where the distribution focal loss DFL is:

[0107]

[0108] Where N is the total number of samples in the training batch, C is the number of categories, and p ij is the probability that the i-th sample belongs to the j-th category, t ij is an indicator variable, indicating whether the i-th sample belongs to the j-th category, a and b are adjustment parameters in the focal loss;

[0109] The complete iou loss CIOU is:

[0110]

[0111] Among them, cx and cy are the center coordinates of the predicted bounding box, gx and gy are the center coordinates of the real bounding box, gw and gh are the width and height of the real bounding box, IoU is the intersection-over-union ratio of the predicted bounding box and the real bounding box, cIoU is the normalized coefficient of the IoU loss, areaInter is the intersection area of ​​the predicted bounding box and the real bounding box, and ereaUnion is the union area of ​​the predicted bounding box and the real bounding box.

[0112] S3. Input the track defect data into the trained defect detection model, and output the track defect detection result through the trained defect detection model. The track defect detection result includes a track curve image with a prompt box and prompt points.

[0113] After step S3, the method may further include:

[0114] S4. Use evaluation indicators to evaluate the trained defect detection model.

[0115] In this embodiment, the evaluation indicators include average intersection-over-union ratio, Jaccard similarity coefficient, Dice similarity coefficient and precision: the formula of average intersection-over-union ratio is:

[0116]

[0117] Among them, TP_i, FP_i and FN_i represent the number of samples correctly classified as positive, the number of samples incorrectly classified as positive and the number of samples incorrectly classified as negative of the i-th class respectively; MIOU represents the average intersection over union ratio; IoU_i represents the intersection over union ratio index of the i-th class, and MIOU represents the average intersection over union ratio;

[0118] The formula for the Jaccard similarity coefficient is:

[0119]

[0120] Among them, TP represents the number of samples correctly classified as positive, FP represents the number of samples misclassified as positive, FN represents the number of samples misclassified as negative, and JSC represents the Jaccard similarity coefficient;

[0121] The formula for the Dice similarity coefficient is:

[0122]

[0123] Among them, TP represents the number of samples correctly classified as positive, FP represents the number of samples misclassified as positive, FN represents the number of samples misclassified as negative, and DSC represents the Dice similarity coefficient.

[0124] The formula for precision is:

[0125]

[0126] Among them, TP represents the number of samples correctly classified as positive, FP represents the number of samples incorrectly classified as positive, and Pre represents the precision.

[0127] Example 2

[0128] A multi-modal track defect segmentation system based on a large model, the system comprises: a user registration and login process module, a system main interface module and an extended function and consideration module.

[0129] User registration and login process module, used for user registration and login.

[0130] The system main interface module is used to obtain track defect training data and track defect data; the track defect training data is used to train the defect detection model to obtain a trained defect detection model; the defect detection model includes an intelligent cropping module, a target detection module and a comprehensive detection module; the intelligent cropping module is used to crop the track defect training data; the target detection module performs defect detection on the cropped track defect training data, and the output of the target detection module includes a track defect image with a prompt box and prompt points; the comprehensive detection module is used to perform defect detection on the cropped track defect training data in combination with the output of the target detection module, and output the track defect; the track defect data is input into the trained defect detection model, and the track defect detection result is output through the trained defect detection model.

[0131] Extended functions and consideration modules are used to encrypt user data and provide technical support and response to users.

[0132] For example, in the user registration and login process module, when a user accesses the system for the first time, he / she will enter the login interface. For new users, the system provides a simple registration option. After clicking the "Register" button, the user needs to fill in basic information, including but not limited to user name, password, email address, etc. The system can also provide email verification or mobile phone verification to enhance the security of the account.

[0133] After completing the registration, the user will be directed back to the login interface. At this point, the user can enter their username and password and successfully log into the system after being authenticated.

[0134] For example, in the system main interface module, after the user logs in, the user will see the main interface of the system, which has a clear design and convenient operation. The main functions are accessed through the left navigation bar. It includes the following functions:

[0135] Information viewing and modification: Users can view their personal information in this module and make necessary modifications, such as changing passwords, updating contact information, etc.

[0136] Image upload and segmentation: Users can upload image files for automatic segmentation. After receiving the image uploaded by the user, the image can be segmented using a large model-based multimodal track defect segmentation method provided in Example 1.

[0137] Results review: After the segmentation is completed, users can view and download the segmented images in the results review interface. In addition, the system can also provide a segmentation quality evaluation report to help users understand the segmentation effect.

[0138] Work group chat room: To enhance team collaboration, the system provides a group chat function where all users can conduct real-time discussions and information sharing.

[0139] Exemplarily, the extended functions and consideration modules may include the following functions: security, user interface, and technical support.

[0140] Security: Considering the security of user information, the system uses advanced encryption technology to protect user data and conducts regular security audits.

[0141] User Interface: The system interface adopts responsive design to ensure a good user experience on various devices.

[0142] Technical Support: The system provides online help and technical support functions, and users can get help or submit technical questions with one click.

[0143] Exemplarily, the operating environment of a large-model-based multimodal track defect segmentation system may include, but is not limited to, the following: Based on Springboot and Vue frameworks, the knowledge-inspired multimodal skin lesion segmentation model proposed in this study is deployed to achieve automatic segmentation of skin lesions. The front end of the system uses the Vue framework, which is based on JavaScript and is suitable for building user interfaces and single-page applications. At the same time, the Vue framework has responsive data binding and a componentized development model, making front-end development more efficient and flexible. The back end uses the Springboot framework, an open source framework based on Java, which can quickly create independent, production-level Spring applications, greatly simplifying the configuration process, and significantly improving development efficiency and system maintainability through automated configuration and a built-in Web server.

[0144] (I) Front-end environment construction

[0145] The Vue project is initialized and dependencies are installed through Node.js and npm (Node package manager), ensuring the integrity and consistency of the development environment. During the development process, the VueCLI (command line interface) tool is used to simplify project creation, dependency management, and development server configuration, improving development efficiency. At the same time, VueRouter is used for routing management and Vuex is used for state management, making the front-end application have a good structure and maintainability.

[0146] (II) Backend environment construction

[0147] First, generate the SpringBoot project skeleton through SpringInitializr and configure related dependencies, such as SpringWeb, SpringDataJPA, etc. During the development process, the automatic configuration function and embedded server of SpringBoot are used to simplify the deployment and operation process of the project.

[0148] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the invention.

Claims

1. A multimodal track defect segmentation method based on a large model, characterized in that: The method comprises: S1. Acquire track defect training data and track defect data; S2. Training a defect detection model using the track defect training data to obtain a trained defect detection model; The defect detection model includes an intelligent cutting module, a target detection module and a comprehensive detection module; The intelligent cutting module is used to cut the track defect training data; The target detection module performs defect detection on the cropped track defect training data, and the output of the target detection module includes a track defect image with a prompt box and prompt points; The comprehensive detection module is used to combine the output of the target detection module, perform defect detection on the cropped track defect training data, and output the track defects; S3. Input the track defect data into the trained defect detection model, and output the track defect detection result through the trained defect detection model.

2. The method according to claim 1, characterized in that In step S2, the intelligent cropping module includes an initial convolution layer, a maximum pooling layer, a residual layer, an adaptive average pooling layer, a fully connected layer and a Dropout layer connected in sequence; The convolution kernel size of the initial convolution layer is 7*7, the convolution step size of the initial convolution layer is 2, and the padding of the initial convolution layer is 3; The number of the residual layers is 4, each convolutional layer contains at least one residual block, and each residual block includes two convolutional layers and one SE layer.

3. The method according to claim 1, characterized in that The target detection module includes a backbone layer, an intermediate layer and a prediction output layer connected in sequence; The backbone layer uses Darknet-53 as the backbone network, including four feature extraction modules connected in sequence, each of which includes a convolution module and a residual module connected in sequence, and the residual module includes a shortcut branch and a main branch; The main branch includes at least one C2F convolution layer and a normalization layer connected in sequence, the convolution kernel size of the C2F convolution layer is 3*3, and the convolution step size of the C2F convolution layer is 1; The feature map size output by the backbone layer is 20×20×512; The feature map size output by the intermediate layer is 20×20×512; The prediction output layer uses Decoupled-Head as the decoupled head.

4. The method according to claim 1, characterized in that The expression of the comprehensive detection module is: M=S(I′,B,P;θ S ) Among them, M is the final prediction result, θ s represents the parameters of the segmentation model, P represents the coordinates of the point prompt, I′ represents the cropped track defect image, and B represents the box coordinates of the target defect position.

5. The method according to claim 2, characterized in that: The loss function of the intelligent cropping module is: Where N is the number of training samples, Output i and i are the i-th predicted output and i-th actual label of the smart cropping module, respectively.

6. The method according to claim 3, characterized in that: The loss function of the target detection module includes distribution focal loss (DFL) and complete IoU loss (CIOU), wherein the distribution focal loss DFL is: Where N is the total number of samples in the training batch, C is the number of categories, and p ij is the probability that the i-th sample belongs to the j-th category, t ij is an indicator variable, indicating whether the i-th sample belongs to the j-th category, a and b are adjustment parameters in the focal loss; The complete iou loss CIOU is: Among them, cx and cy are the center coordinates of the predicted bounding box, gx and gy are the center coordinates of the real bounding box, gw and gh are the width and height of the real bounding box, IoU is the intersection-over-union ratio of the predicted bounding box and the real bounding box, cIoU is the normalized coefficient of the IoU loss, areaInter is the intersection area of ​​the predicted bounding box and the real bounding box, and areaUnion is the union area of ​​the predicted bounding box and the real bounding box.

7. The method according to claim 1, characterized in that The method further comprises: S4. Evaluate the trained defect detection model using evaluation indicators; The evaluation indicators include average intersection-over-union ratio, Jaccard similarity coefficient, Dice similarity coefficient and precision.

8. The method according to claim 7, characterized in that The formula for the average intersection-over-union ratio is: Among them, TP_i, FP_i and FN_i represent the number of samples correctly classified as positive, the number of samples incorrectly classified as positive and the number of samples incorrectly classified as negative of the i-th class respectively; MIOU represents the average intersection over union ratio; IoU_i represents the intersection over union ratio index of the i-th class, and MIOU represents the average intersection over union ratio; The formula for the Jaccard similarity coefficient is: Among them, TP represents the number of samples correctly classified as positive, FP represents the number of samples misclassified as positive, FN represents the number of samples misclassified as negative, and JSC represents the Jaccard similarity coefficient; The formula for the Dice similarity coefficient is: Among them, TP represents the number of samples correctly classified as positive, FP represents the number of samples misclassified as positive, FN represents the number of samples misclassified as negative, and DSC represents the Dice similarity coefficient. The formula for precision is: Among them, TP represents the number of samples correctly classified as positive, FP represents the number of samples incorrectly classified as positive, and Pre represents the precision.

Citation Information

Patent Citations

  • CT image liver automatic segmentation method based on deep convolutional neural network

    CN113470044A

  • Compression method for laparoscope video based on ViT-Slim class

    CN115526943A

  • Cargo segmentation method and system based on SAM and YOLOV8n

    CN117475148A

  • Industrial visual defect automatic labeling method

    CN117854072A

  • Mixed weak supervision wafer SEM defect segmentation method and system

    CN118096799A

Cited By

  • Track defect detection method and device based on multi-modal large model

    CN120997487A

  • A track defect detection method and device based on a multi-modal large model

    CN120997487B

  • Real-time quality monitoring method in extruded and pulled product production process

    CN121661398A