Visual detection and recognition method and device based on mode of reducing model learning redundant features

By adopting the channel attention mechanism and feature sorting in the visual detection and recognition module to independently screen and fuse features, the problem of learning redundant features in the deep learning model is solved, the detection accuracy is improved and the consumption of computing resources is reduced.

CN118570574APending Publication Date: 2024-08-30FREESENSE IMAGE TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410712560.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing deep learning models are prone to learn redundant features in visual detection and recognition, resulting in high computational costs and misoperations in manual screening of features, which affects detection accuracy.

Method used

By adopting the channel attention mechanism in the visual detection and recognition module, we can independently screen and weight feature information, sort and divide strong features and weak features, only transfer strong features for deep extraction, and combine weak features for fusion to achieve autonomous learning of the model to reduce redundancy. remaining features.

Benefits of technology

It reduces the model's burden on computing resources, improves detection accuracy, reduces feature loss caused by manual misoperation, and is suitable for a variety of model types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570574A
    Figure CN118570574A
Patent Text Reader

Abstract

The invention discloses a visual detection and identification method based on a mode of reducing model learning redundant features. The method comprises the following steps: S1, collecting a product image and preprocessing the collected image; s2, transmitting the processed image data to a visual detection and identification module based on reduced model learning redundancy features, and completing the training and reasoning process of the image data; and S3, outputting a model reasoning result in an image form through a result output module, the invention provides a defect detection method based on a mode of reducing model learning redundant features, and the model autonomously completes learning and filtering redundant features, so that the accuracy of the model is improved, and the calculation cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field related to model training of deep learning, and mainly to a visual detection and recognition method and device based on reducing redundant features of model learning. This scheme can reduce redundant features of model learning, improve the accuracy of visual detection and recognition, and reduce computational complexity and resource consumption. Background Art

[0002] With the widespread application of deep learning in the field of visual detection and recognition, model complexity and related computational costs have become the focus of attention. Conventional deep learning algorithms, when faced with a large amount of data (such data may have more background than target, causing the model to learn too many redundant features), may consume a lot of computational costs to learn useful features from redundant features.

[0003] The common method currently starts from the data aspect and filters out some unnecessary features from the data level. This method relies on manual work and is subject to the problem of manual error, which may lead to the loss of some important features. As a result, the model has not learned such features, which affects the detection rate in actual application. Summary of the invention

[0004] In view of the deficiencies in the prior art, the present invention provides a visual detection and recognition method based on reducing the redundant features of model learning. The model autonomously learns to filter redundant features to improve the accuracy of the model and reduce the computing cost.

[0005] To achieve the above object, the present invention provides the following technical solutions: The visual detection and recognition method based on reducing the redundant features of model learning includes the following steps: Step S1: Capture product images and pre-process the captured images; Step S2: passing the processed image data to a visual detection and recognition module based on reducing redundant features of model learning to complete the training and reasoning process of the image data; Step S3: Output the model reasoning results in the form of images through the result output module.

[0006] As a further solution of the present invention, the training and reasoning process of the visual detection and recognition module on image data is as follows: Obtain the initial feature map of the model, and then use the channel attention mechanism method to perform weighted calculation on its features to obtain feature information with weight values; Sort the feature information with weight values ​​in reverse order and obtain the sequence number information in the original list; Set a threshold between 0 and 1, which represents the strong feature information and weak feature information of the division; The strong feature information is passed to the convolution layer for deep feature extraction to obtain the convolutional features; The obtained weak feature information is fused with the feature information after convolution. In the present invention, the visual detection and recognition module can also establish training and reasoning of image data by visual detection and recognition. In the present invention, it should be noted that the visual detection and recognition module includes functions such as visual detection, visual recognition, and defect detection. In some embodiments, the defect detection module is preferably used.

[0007] As a further solution of the present invention, the visual inspection and recognition module includes defect detection of common classification models, common detection models and common segmentation models, as well as visual inspection and recognition.

[0008] As a further solution of the present invention, the feature map is a feature layer map calculated by the front neural network convolution layer.

[0009] As a further solution of the present invention, the sum of the strong feature information and the weak feature information is equal to 1.

[0010] The present invention also provides a visual inspection and recognition device based on reducing redundant features of model learning, including an image acquisition module, an image preprocessing module, a visual inspection and recognition module and a result output module; the image acquisition module acquires relevant product images on the industrial production line, and processes the acquired data through the image preprocessing module; the processed image data is passed to the visual inspection and recognition module based on reducing redundant features of model learning to complete the training and reasoning process of the image data, and the result of the model reasoning is output in the form of an image to on-site personnel through the result output module to view the model learning status.

[0011] The present invention has the following beneficial effects: The visual detection and recognition method based on reducing the redundant features of model learning of the present invention reduces the burden of the model on computer hardware resources. The method of reducing the redundant features of learning by the model autonomously learns better to focus on the foreground defect features, which helps to improve the detection effect of the model. This method is applicable to various types of models, including classification, detection and segmentation.

[0012] In view of the problems that existing solutions have, such as the loss of important features due to human error operation, the present invention proposes a visual detection and recognition method and device based on reducing the redundant features of model learning. In view of the problems that existing solutions have, such as the loss of important features due to human error operation, the present invention proposes a visual detection and recognition method and device based on reducing the redundant features of model learning. The scheme includes four modules, namely, an image acquisition module, an image preprocessing module, a visual detection and recognition module (based on reducing the redundant features of model learning) and a result output module. By forming these four modules into a complete process, the end-to-end detection task of defects can be completed. The core of the present invention lies in the visual detection and recognition module based on reducing the redundant features of model learning. The module allows the model to autonomously learn the foreground data features (defect features) with strong features and suppresses the interfering background data features to replace the manual operation model, so as to realize the fully automated parameter reduction learning of the model. At the same time, compared with the original convolution layer extracting all features, the method of learning some features can reduce the parameters of the model and reduce the burden of the model on computer hardware resources.

[0013] In order to more clearly illustrate the structural features and effects of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 This is a call overview diagram mentioned in an embodiment of the present invention.

[0015] Figure 2 It is the model type supported by the visual detection and recognition module mentioned in the embodiment of the present invention.

[0016] Figure 3 This is a call flow chart based on reducing redundant features of model learning mentioned in an embodiment of the present invention. DETAILED DESCRIPTION

[0017] The present invention will be further explained below in conjunction with the accompanying drawings and related knowledge, and described clearly and completely. Obviously, the described application is only a part of the embodiments of the present invention, rather than all the embodiments.

[0018] In view of the problems that existing solutions have, such as the loss of important features due to human error, the present invention proposes a visual inspection and recognition method and device based on reducing the redundant features of model learning. In view of the problems that existing solutions have, such as the loss of important features due to human error, the scheme includes four modules, namely, image acquisition module, image preprocessing module, visual inspection and recognition module (based on reducing the redundant features of model learning) and result output module. By forming these four modules into a complete process, the end-to-end detection task of defects can be completed.

[0019] Reference Figure 1-Figure 3As shown, the present invention provides a visual detection and recognition method based on reducing redundant features of model learning, comprising the following steps: Step S1: Collect product images and preprocess the collected images; specifically, collect relevant product images on the industrial production line through the image acquisition module, which mainly refers to the camera tool in the production line, used to capture product images, and prepare data for subsequent model training and reasoning; according to the needs of different projects and different shooting conditions, it is necessary to perform preprocessing operations on the image data, including methods such as image scaling, image denoising, image threshold segmentation, etc. At this time, the image needs to be passed to the image preprocessing module, which integrates the scene image processing method; Step S2: passing the processed image data to a visual detection and recognition module based on reducing redundant features of model learning to complete the training and reasoning process of the image data; specifically, passing the processed image data to a visual detection and recognition module based on reducing redundant features of model learning to complete the training and reasoning process of the image data, the module integrates a deep learning algorithm and a method for reducing redundant features of model learning at the core of the present invention; the module allows the model to autonomously learn foreground data features (defect features) with strong features and suppresses interfering background data features to replace the manual operation model, thereby realizing fully automated parameter reduction learning of the model, and at the same time, compared with the original convolutional layer extracting all features, the method of learning some features can reduce the parameters of the model and reduce the burden of the model on computer hardware resources; Step S3: Output the result of model reasoning in the form of an image through the result output module. Specifically, the result output module outputs the result of model reasoning in the form of an image to on-site personnel to view the model learning status. This module represents an electronic screen or display with display function in the production line.

[0020] The present invention takes multiple models as examples. First, the image acquisition module takes a product picture of the actual production line on the industrial project site. Secondly, the product picture is passed to the image preprocessing module, and the image processing is continued according to the specific needs of the project. The processed product image is again passed to the visual detection and recognition module based on reducing redundant features. Finally, the result obtained by the previous module is returned in the result output module.

[0021] In a preferred embodiment of the present invention, referring to Figure 3As shown in the figure, the specific method based on reducing redundant features of model learning is as follows: First, obtain the initial feature map of the model, which is the feature layer map calculated by the convolution layer of the front neural network. After obtaining the feature map, use the channel attention mechanism method to weight its features to obtain feature information with weight values. Sort the feature information with weight values ​​in reverse order (from large to small), and obtain the sequence information in the original list. Set a threshold between 0 and 1, which represents the range of division. For example, 0.6 means extracting 60% of the weighted features as strong feature information, and the remaining 40% as weak feature information. Pass the strong feature information to the convolution layer for deep feature extraction to obtain the convolutional features. Finally, fuse the weak feature information just obtained with the convolutional feature information.

[0022] The pseudo code of the relevant algorithm is as follows: Algorithm 1 Algorithm based on reducing redundant features of model learning Input: Model feature map data (feature_orig).

[0023] Output: model feature map data (feature_fusion).

[0024] Prerequisites: feature_ fore = [ ] # Used to store foreground feature data feature_fore_index = [ ] # Index used to store foreground feature data feature_back = [ ] # Used to store background feature data feature_back_index = [ ] # Index used to store background feature data scale = 0.6 # Extract the percentage of data (as foreground feature data) 1.while True do: 2. Get the feature map data feature_orig.

[0025] 3. Calculate the channel attention mechanism for the feature_orig feature data and assign weights.

[0026] 4. Sort the features with weights in descending order.

[0027] 5. Extract foreground feature data from the sorted features according to the value of scale, use the value of 1-scale as the extraction percentage of background feature data, store the foreground feature data index in the feature_fore_index list, and store the background feature data index in the feature_back_index list.

[0028] 6. According to the foreground feature data index list (feature_fore_index), the data in the original feature map data is searched and stored in the feature_fore list. Similarly, according to the background feature data index list (feature_back_index), the data in the original feature map data is searched and stored in the feature_back list.

[0029] 7. Perform convolution on the feature data of the foreground feature data list feature_fore to extract deep features.

[0030] 8. The feature data after feature extraction by the convolution layer is fused with the data in the background feature data feature_back to obtain the fused feature data feature_fusion.

[0031] 9.End To sum up, the core of the present invention lies in a visual inspection and recognition module based on reducing redundant features of model learning. This module allows the model to autonomously learn foreground data features with strong features (defect features, visual recognition, visual inspection) and suppresses interfering background data features to replace the manual operation model. In this way, fully automated parameter-reduced learning of the model can be achieved. At the same time, compared with the original convolutional layer extracting all features, the method of learning partial features can reduce the parameters of the model and reduce the burden of the model on computer hardware resources.

[0032] The technical principle of the present invention is described above in combination with the specific embodiments, which are only preferred implementations of the present invention. The protection scope of the present invention is not limited to the above embodiments, and all technical solutions under the idea of ​​the present invention belong to the protection scope of the present invention. Those skilled in the art can think of other specific implementations of the present invention without creative work, and these methods will fall within the protection scope of the present invention.

Claims

1. A visual detection and recognition method based on reducing redundant features of model learning, characterized in that: The following steps are involved: Step S1: Capture product images and pre-process the captured images; Step S2: passing the processed image data to a visual detection and recognition module based on reducing redundant features of model learning to complete the training and reasoning process of the image data; Step S3: Output the model reasoning results in the form of images through the result output module.

2. The visual detection and recognition method based on reducing redundant features of model learning as claimed in claim 1, characterized in that: The training and reasoning process of the visual detection and recognition module for image data is as follows: Obtain the initial feature map of the model, and then use the channel attention mechanism method to perform weighted calculation on its features to obtain feature information with weight values; Sort the feature information with weight values ​​in reverse order and obtain the sequence number information in the original list; Set a threshold between 0 and 1, which represents the strong feature information and weak feature information of the division; The strong feature information is passed to the convolution layer for deep feature extraction to obtain the convolutional features; The obtained weak feature information is fused with the feature information after convolution.

3. The visual detection and recognition method based on reducing redundant features of model learning as claimed in claim 2, characterized in that: The visual detection and recognition module includes visual detection and recognition of common classification models, common detection models and common segmentation models.

4. The visual detection and recognition method based on reducing redundant features of model learning as claimed in claim 3, characterized in that: The feature map is a feature layer map calculated by the convolutional layer of the front neural network.

5. The visual detection and recognition method based on reducing redundant features of model learning as claimed in claim 4, characterized in that: The sum of strong feature information and weak feature information is equal to 1.

6. A visual detection and recognition device based on reducing redundant features of model learning, characterized in that: It includes an image acquisition module, an image preprocessing module, a visual inspection and recognition module and a result output module; the image acquisition module collects relevant product images on the industrial production line, and processes the collected data through the image preprocessing module; the processed image data is passed to the visual inspection and recognition module based on reducing the redundant features of model learning, completing the training and reasoning process of image data, and the result of model reasoning is output in the form of an image to on-site personnel through the result output module to check the model learning status.

Citation Information

Patent Citations

  • Sorting and grouping convolution method based on attention mechanism

    CN113487013A

  • Infrared weak and small target detection method for constructing convolutional neural network by using multi-directional features

    CN114821018A

  • Student behavior identification method based on improved YOLOv5

    CN115830392A

  • Unsupervised abnormal event detection algorithm for guiding attention based on memory

    CN116416558A