Dummy resource equipment identification method, device and equipment

Through the combination of target detection and classification models, Sw-Transformer and YOLO models are used for dumb resource device identification, which solves the problem of insufficient feature extraction capabilities and refined detection problems, and achieves efficient and accurate device identification and rapid update capabilities.

CN118799609APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410107822.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-25
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing dumb resource device recognition technology lacks feature extraction capabilities and cannot achieve refined detection, especially when the devices have similar appearances and small targets.

Method used

The target detection model is used to obtain the target position in the device image, and the type features are extracted through the target classification model. Combined with the pre-built faiss feature library to determine the category of the device, the self-attention Sw-Transformer model with moving window and the YOLO model are used for detection. and classification, preprocessing operations such as flipping, rotating, and cropping are performed to improve model robustness.

Benefits of technology

It achieves millisecond-level search response, improves recognition accuracy and speed, supports online dynamic updating of device feature libraries, simplifies the research and development process, ensures rapid update iteration, and improves precision and recall rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799609A_ABST
    Figure CN118799609A_ABST
Patent Text Reader

Abstract

The invention provides a dumb resource equipment identification method, device and equipment, and the method comprises the steps: obtaining a target position of dumb resource equipment in an equipment image based on a target detection model; based on a target classification model, extracting type features of a target area image corresponding to the target position; determining the category of the dumb resource equipment according to the type feature and a faiss feature library of the pre-constructed dumb resource equipment; according to the embodiment of the invention, the target classification model is used as a feature extractor for extracting the type features of the corresponding dumb resource equipment, the faiss feature library of the equipment is constructed, and millisecond-level search response is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and more particularly to a method, apparatus and device for identifying dumb resource devices. Background Art

[0002] The existing dumb resources (DR) equipment and facility identification based on artificial intelligence (AI) collects a large number of pictures of original equipment and facilities on site. Due to the different difficulty of collection, the distribution of various types of data is uneven, and there are large differences in data from different provinces, resulting in large differences within the class; some categories have similar appearances and small differences between classes. Through convolutional neural network model training, image feature recognition is generally performed through algorithms such as YOLO (You Only Look Once, an algorithm that uses convolutional neural networks for target detection), and then the results are output. Although the existing technology can meet the requirements of object recognition, it has the following disadvantages in the face of the characteristics of dumb resource-rich equipment and facilities and small targets:

[0003] (1) Since installation, network access and operation and maintenance pictures are collected as training data sets, front-line personnel generally have the following problems when taking pictures: the image is too dark, too bright, does not capture the whole picture, is blurry, etc. According to statistics, the proportion of operation and maintenance photos with the above problems in all photos reached 70%, and the proportion of installation and network access photos accounted for 30%. The feature extraction network of the existing technology is insufficient to retain the spatial information of the feature map.

[0004] (2) Most of the equipment in the mobile room looks similar, except for slight differences in the nameplates. It is difficult to distinguish the resource type and main information from the overall photo of the resource, and the existing target detection technology cannot achieve refined detection. Summary of the invention

[0005] The purpose of the present application is to provide a method, apparatus and device for identifying dumb resource devices, so as to solve the problem that the existing identification methods of dumb resource devices have insufficient feature extraction capabilities and cannot achieve refined detection.

[0006] In order to solve the above problems, the present application provides a method for identifying a dumb resource device, comprising:

[0007] Based on the target detection model, obtain the target position of the dumb resource device in the device image;

[0008] Based on the target classification model, the type features of the target area image corresponding to the target position are extracted;

[0009] According to the type feature and a pre-built faiss feature library of dumb resource devices, the category to which the dumb resource device belongs is determined.

[0010] Wherein, obtaining the target position of the dumb resource device in the device image based on the target detection model includes:

[0011] Detect the device image based on the target detection model, and obtain the coordinates of the detection frame of the dumb resource device in the device image;

[0012] Screening is performed based on the shape and attributes of the detection frame to determine multiple candidate detection frames that meet the preset conditions;

[0013] According to the confidence weights, mutual distance weights, and overlap weights of multiple candidate detection frames, the coordinates of the multiple candidate detection frames are weighted averaged to obtain the target coordinates of the target detection frame; the target coordinates of the target detection frame are used to indicate the target position of the dumb resource device in the device image.

[0014] The step of detecting the device image based on the target detection model and obtaining the coordinates of the detection frame of the dumb resource device in the device image includes:

[0015] The device image is detected based on the target detection model, and the coordinate values ​​of the four corner points of the detection box, the detection box confidence, and the category confidence are output.

[0016] Wherein, the method further comprises:

[0017] Based on the target detection model, the detection frame in the device image is rotated and annotated to obtain the center coordinates of the detection frame, the coordinates of the upper left corner point of the detection frame, and the coordinates of the lower right corner point of the detection frame;

[0018] Construct a heat map loss function based on the center coordinates of the detection box, the coordinates of the upper left corner of the detection box, and the coordinates of the lower right corner of the detection box;

[0019] The heat map loss function is used as the loss function of the target detection model.

[0020] The target detection model includes: a self-attention Sw-Transformer model with a moving window and a YOLO model;

[0021] The detecting the device image based on the target detection model includes:

[0022] The global information of the device image is extracted through the Sw-Transformer model, and the local information of the device image is extracted through the YOLO model;

[0023] The device image is detected according to the global information and the local information.

[0024] Wherein, the method further comprises:

[0025] Preprocessing the device image and inputting the preprocessed device image into the target detection model; wherein the preprocessing includes one or more of the following:

[0026] Flip, rotate, shift, crop, scale, adjust color space, enhance mosaic, stitch.

[0027] The embodiment of the present application also provides a dumb resource device identification device, including:

[0028] An acquisition module, used for acquiring a target position of a dumb resource device in a device image based on a target detection model;

[0029] An extraction module, used for extracting type features of a target area image corresponding to a target position based on a target classification model;

[0030] The determination module is used to determine the category to which the dumb resource device belongs according to the type feature and a faiss feature library of dumb resource devices constructed in advance.

[0031] The embodiment of the present application further provides an identification device, including a processor and a transceiver, wherein the transceiver receives and sends data under the control of the processor, and the processor is used to perform the following operations:

[0032] Based on the target detection model, obtain the target position of the dumb resource device in the device image;

[0033] Based on the target classification model, the type features of the target area image corresponding to the target position are extracted;

[0034] According to the type feature and a pre-built faiss feature library of dumb resource devices, the category to which the dumb resource device belongs is determined.

[0035] The processor is further configured to perform the following operations:

[0036] Detect the device image based on the target detection model, and obtain the coordinates of the detection frame of the dumb resource device in the device image;

[0037] Screening is performed based on the shape and attributes of the detection frame to determine multiple candidate detection frames that meet the preset conditions;

[0038] According to the confidence weights, mutual distance weights, and overlap weights of multiple candidate detection frames, the coordinates of the multiple candidate detection frames are weighted averaged to obtain the target coordinates of the target detection frame; the target coordinates of the target detection frame are used to indicate the target position of the dumb resource device in the device image.

[0039] The processor is further configured to perform the following operations:

[0040] The device image is detected based on the target detection model, and the coordinate values ​​of the four corner points of the detection box, the detection box confidence, and the category confidence are output.

[0041] The processor is further configured to perform the following operations:

[0042] Based on the target detection model, the detection frame in the device image is rotated and annotated to obtain the center coordinates of the detection frame, the coordinates of the upper left corner point of the detection frame, and the coordinates of the lower right corner point of the detection frame;

[0043] Construct a heat map loss function based on the center coordinates of the detection box, the coordinates of the upper left corner of the detection box, and the coordinates of the lower right corner of the detection box;

[0044] The heat map loss function is used as the loss function of the target detection model.

[0045] The target detection model includes: a self-attention Sw-Transformer model with a moving window and a YOLO model; the processor is also used to perform the following operations:

[0046] The global information of the device image is extracted through the Sw-Transformer model, and the local information of the device image is extracted through the YOLO model;

[0047] The device image is detected according to the global information and the local information.

[0048] The processor is further configured to perform the following operations:

[0049] Preprocessing the device image and inputting the preprocessed device image into the target detection model; wherein the preprocessing includes one or more of the following:

[0050] Flip, rotate, shift, crop, scale, adjust color space, enhance mosaic, stitch.

[0051] An embodiment of the present application also provides an identification device, including a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the dumb resource device identification method as described above is implemented.

[0052] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the steps in the dumb resource device identification method as described above.

[0053] An embodiment of the present application further provides a computer program product, including computer instructions, which, when executed by a processor, implement the steps in the dumb resource device identification method as described above.

[0054] The above technical solution of the present application has at least the following beneficial effects:

[0055] In the dumb resource device identification method, apparatus and device of the embodiment of the present application, the target classification model is used as a feature extractor to extract the type features of the corresponding dumb resource device, build the faiss feature library of the device, and achieve millisecond-level search response. This solution combines speed and accuracy, and has higher accuracy and comparable speed than the simple detection solution. It also supports online dynamic update of the device faiss feature library, facilitates the addition of subsequent models, shortens the R&D process, and ensures rapid update and iteration of capabilities. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Figure 1 A flowchart showing the steps of the method for identifying a dumb resource device provided in an embodiment of the present application;

[0057] Figure 2 An example diagram showing a method for identifying a dumb resource device provided in an embodiment of the present application;

[0058] Figure 3 A schematic diagram showing the structure of a dumb resource device identification apparatus provided in an embodiment of the present application;

[0059] Figure 4 A schematic diagram showing the structure of a dumb resource device identification device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] In order to make the technical problems, technical solutions and advantages to be solved by the present application clearer, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0061] Mobile access network resources are a key factor restricting network development. They have complex structures and large maintenance scales. The number of on-site maintenance work orders (inspection, acceptance, monitoring, maintenance, and hidden danger handling, etc.) reaches one million per year. At present, they are still manually input by front-line maintenance personnel and manually inspected and audited. The pain points such as low operation efficiency, poor quality inspection results, and huge workload are gradually emerging. Service dismantling and relocation will cause the access network resource status to change. When the number of broadband service change work orders remains high, if the fiber jumpers are not removed on site in time, the data will be inconsistent with the site, resulting in unreasonable network expansion and the rollback of new installation work orders; and special inspections and cleanups require a lot of manpower and dismantling costs, and the effectiveness is difficult to evaluate. Although the existing dumb resource recognition can meet the requirements of object recognition, the object recognition accuracy of the existing recognition method is low in the face of equipment and facility types with rich dumb resources, small targets, and more tags.

[0062] like Figure 1 As shown, the embodiment of the present application provides a method for identifying a dumb resource device, including:

[0063] Step 101, based on the target detection model, obtaining the target position of the dumb resource device in the device image;

[0064] Step 102, extracting type features of the target area image corresponding to the target position based on the target classification model;

[0065] Step 103: Determine the category to which the dumb resource device belongs according to the type feature and a pre-built faiss feature library of dumb resource devices.

[0066] The embodiment of the present application adopts a cascade method of detection model plus classification model, which can improve the detection accuracy compared to using only the detection model; and uses the target classification model as a feature extractor to extract the type features of the corresponding dumb resource equipment, build the faiss feature library of the equipment, and achieve millisecond-level search response. This solution combines speed and accuracy, and has higher accuracy and comparable speed than the simple detection solution. It also supports online dynamic update of the equipment faiss feature library, which facilitates the addition of subsequent models, shortens the R&D process, and ensures the rapid update and iteration of capabilities.

[0067] It should be noted that the target detection model and target classification model mentioned in the embodiments of the present application support online updating of the faiss feature library. For most new device models, the corresponding device features can be directly added to the faiss feature library without retraining. Enabling a consistent feature set between the training and production environments can make the deployment process smoother, thereby ensuring that the trained model will work the same in the production environment, and achieving faster development iteration speed.

[0068] In at least one embodiment of the present application, step 101 includes:

[0069] Detect the device image based on the target detection model, and obtain the coordinates of the detection frame of the dumb resource device in the device image;

[0070] Screening is performed based on the shape and attributes of the detection frame to determine multiple candidate detection frames that meet the preset conditions;

[0071] According to the confidence weights, mutual distance weights, and overlap weights of multiple candidate detection frames, the coordinates of the multiple candidate detection frames are weighted averaged to obtain the target coordinates of the target detection frame; the target coordinates of the target detection frame are used to indicate the target position of the dumb resource device in the device image.

[0072] In the target detection results, the embodiment of the present application comprehensively considers the confidence, mutual distance, degree of overlap, etc. of each candidate detection frame, selects the best several candidate detection frame coordinates from multiple candidate detection frames, and performs weighted average to further optimize the detection frame coordinates, thereby effectively improving the precision and recall rates of AI recognition of dumb resource objects.

[0073] Optionally, screening is performed based on the shape and attributes of the detection frame to determine multiple candidate detection frames that meet preset conditions, including:

[0074] Based on the detection frame attributes and shape screening, since the target object (i.e., dumb resource device) is an arbitrary quadrilateral, the detection frames with obvious special shapes are removed (such as aspect ratio less than the threshold), and other detection frames with shapes that meet the aspect ratio threshold are retained as candidate detection frames; for example, there are m detection frames in total and n abnormal ones, then there are mn candidate detection frames that meet the requirements.

[0075] (1) Confidence evaluation weight: The higher the confidence of the candidate box, the more likely it is to fit the real target. Its weight is recorded as:

[0076] (2) Mutual distance evaluation weight: The weight is recorded as:

[0077] (3) Overlap degree evaluation weight: The weight is recorded as:

[0078] (2) The coordinates of the candidate detection box are:

[0079] Coor=(x 1 ,y 1 ,x 2 ,y 2 ,x 3 ,y 3 ,x 4 ,y 4 )

[0080] (3) The coordinates of the mn candidate detection boxes can be recorded as:

[0081] (Coor) i ,i=1,2,3......,mn

[0082] (4) The result of weighted average of candidate detection boxes is recorded as:

[0084]

[0085] In at least one embodiment of the present application, detecting the device image based on the target detection model and obtaining the coordinates of the detection frame of the dumb resource device in the device image includes:

[0086] The device image is detected based on the target detection model, and the coordinate values ​​of the four corner points of the detection box, the detection box confidence, and the category confidence are output.

[0087] The target detection model in the embodiment of the present application can be understood as an improved YOLO series rotation detection model. The target detection model is used to realize the rotation annotation of the target position frame of the screen. While obtaining the target position coordinates and object category information, the object tilt angle information can be obtained. Through the multi-scale structure, the loss function including the position error, classification error and confidence error is realized to realize the detection and recognition of dumb resource targets, and the confidence of recognition is calculated, which effectively improves the recognition accuracy.

[0088] The information contained in each candidate box output by the existing YOLO detection model is in the form of x, y, w, h, box_score (detection box confidence), x1, y1, x2, y2, x3, y3, x4, y4, class_score (class confidence), where x1, y1, x2, y2, x3, y3, x4, y4 represent the coordinate values ​​x and y of the four corner points. It is observed that the position information x, y, w, h of the horizontal rectangular box does not work in this application, so the position information of the horizontal rectangular box is redundant information. The model is further modified so that the target detection model outputs x1, y1, x2, y2, x3, y3, x4, y4, box_score, class_score, that is, the horizontal rectangular box branch is removed, which can reduce the model size and reduce the amount of calculation. The modifications are in the detection head and loss function of YOLOv5.

[0089] In one implementation, the method further includes:

[0090] Based on the target detection model, the detection frame in the device image is rotated and annotated to obtain the center coordinates of the detection frame, the coordinates of the upper left corner point of the detection frame, and the coordinates of the lower right corner point of the detection frame;

[0091] Construct a heat map loss function based on the center coordinates of the detection box, the coordinates of the upper left corner of the detection box, and the coordinates of the lower right corner of the detection box;

[0092] The heat map loss function is used as the loss function of the target detection model.

[0093] For example, set the center coordinates of the detected target i in the image to The coordinates of the upper left corner and lower right corner of the target detection box are located as follows: in Therefore, the center coordinates of target i correspond to the mapping coordinates on the heat map: Finally, the coordinate point (x, y) in the heat map is:

[0094]

[0095] in is the standard deviation, and the final heat map loss formula is as follows:

[0096]

[0097] In at least one embodiment of the present application, the target detection model includes: a self-attention Sw-Transformer model with a moving window and a YOLO model;

[0098] The detecting the device image based on the target detection model includes:

[0099] The global information of the device image is extracted through the Sw-Transformer model, and the local information of the device image is extracted through the YOLO model;

[0100] The device image is detected according to the global information and the local information.

[0101] The embodiment of the present application introduces Sw-Transformer to extract global information of the image, combines it with YOLO's excellent local information extraction capability, realizes the global + local feature detection capability of the picture, utilizes the prediction confidence of multiple attributes of the target, and weightedly fuses the results to further improve the robustness and stability of the solution.

[0102] In one implementation, the access network resources are large in scale, the resource operation and maintenance scenarios are complex, and the generalization capability of the model is high. During the data collection process, it is necessary to build a high-quality model training set covering 13 basic processes in four major scenarios based on massive resource photos, and create a generalized model for nationwide use.

[0103] In another implementation, before inputting the device image into the target detection model, the device image needs to be preprocessed. Accordingly, the method further includes:

[0104] Preprocessing the device image and inputting the preprocessed device image into the target detection model; wherein the preprocessing includes one or more of the following:

[0105] Flip, rotate, shift, crop, scale, adjust color space, enhance mosaic, stitch.

[0106] Among them, through flipping, rotating, shifting, cropping and other operations, the training data is increased and the model robustness is improved. Through scaling, color space adjustment and mosaic enhancement, random scaling, random cropping and random arrangement are used for splicing, which has a significant effect on the detection of small targets, as well as adaptive anchor frame calculation. During each training, the best anchor frame value in different training sets is adaptively calculated; adaptive image scaling: adaptively add the least black edge to the original image.

[0107] Optionally, the dumb resource device identification method provided in the embodiment of the present application can be deployed on a network intelligence platform, and provide a corresponding interface (such as an application programming interface API) for other devices or network elements or terminals or platforms to call.

[0108] In summary, the embodiments of the present application collect multi-model cascades: progressive target multi-attribute recognition and incremental dynamic update algorithms, and tackle the problems of dumb resource image object detection and identification of associated attributes encountered in the process of network intelligent operation and maintenance. The progressive detection strategy of positioning + recognition + scaling + further positioning and recognition can alleviate the problem of small targets in a targeted manner. By using model cascades and utilizing prior knowledge of spatial associations between multiple attributes, the model detection accuracy and recall rate can be greatly improved. The results between multiple attributes of the target can corroborate each other, and combining them can improve the stability and robustness of the final result. At the same time, for newly added object categories, the method of dynamically adding incremental features is adopted, and only a small number of samples are required to complete rapid deployment without retraining the main model.

[0109] According to the characteristics of the target objects in the actual picture, target detection is to find the targets of interest in the image and determine their categories and positions. The classification model is to determine which category the sample belongs to based on the characteristics of a given sample. For dumb resource device identification tasks, simple target detection cannot distinguish between device models with extremely high similarity, and as the number of device types increases, the accuracy decreases significantly. Optical character recognition (OCR) technology has high requirements on the quality of images and is difficult to shoot. Accordingly, the embodiment of the present application uses a two-stage solution of detection + classification, and improves the detection accuracy through the combination of the YOLOv5 model and the EfficientNet model. Detailed examples are introduced as follows, such as Figure 2 As shown:

[0110] Input data to the YOLO model, and the YOLO model detects the target position; among them, the improved YOLO series detection model realizes the rotation annotation of the target position frame in the picture. While obtaining the target position coordinates and object category information, it can also obtain the object tilt angle information. Through the multi-scale structure, the loss function including position error, classification error and confidence error is realized to realize the detection and recognition of dumb resource targets, and calculate the recognition confidence, which effectively improves the recognition accuracy. And by introducing Sw-Transformer to extract the global information of the image, combined with Yolo's excellent local information extraction ability, the global and local feature detection capabilities of the picture are realized.

[0111] According to the target position determined by the YOLO model detection, the target area image is cropped; at the same time, during the target detection process, the confidence, mutual distance, degree of overlap, etc. of each candidate detection frame are comprehensively considered, and the best detection frame coordinates are selected from multiple candidate detection frames for weighted average to further optimize the detection frame coordinates, effectively improving the AI ​​recognition accuracy of dumb resource objects.

[0112] The target area image is input into the EfficientNet model, and the EfficientNet model is used as a feature extractor to extract the corresponding type of resource features, build the FAISS feature library of dumb resource devices, and achieve millisecond-level search response.

[0113] The object's location is further determined, and then abstract features are extracted, and finally the object category is obtained by comparing it with the pre-trained faiss feature library. This method can quickly and accurately determine the category to which the object belongs, and only a small amount of new data is needed to apply to new scenarios and new businesses, and there is no need to retrain the model, which greatly reduces the model development time.

[0114] For example, Table 1 shows the comparison of the overall sample recognition accuracy before and after optimization, as well as the comparison of the top 11 results with low accuracy before optimization:

[0115]

[0116] Table 1. Comparison of overall sample recognition accuracy before and after optimization

[0117] In summary, this application selects progressive target multi-attribute recognition and incremental dynamic update algorithms based on the characteristics of actual data, and tackles the problems of image object detection and its associated attribute recognition encountered in the process of network intelligent operation and maintenance. The progressive detection strategy of positioning + recognition + scaling + further positioning and recognition can specifically alleviate the problem of small targets, use model cascading and utilize the spatial association prior knowledge between multiple attributes to greatly improve the model detection accuracy and recall rate.

[0118] This application ensures the consistency of resource information in the comprehensive resource system with the site through automatic identification, entry and classification of resources in the access network resource management work, improves the efficiency of entry, collection and review, reduces the difficulty of operation for front-line personnel, and improves the efficiency of work order processing. On the one hand, the identification method provided by this application is deployed on the network intelligent platform, and distributed technology is used to deploy to the device in the form of microservices to achieve independent deployment between services, monitor the operation of the system in real time, and ensure the stable operation of the system; on the other hand, this application relies on the AI ​​capabilities of the network intelligent platform, and is not strongly coupled with other businesses and production processes. Other equipment can be aggregated and assembled according to demand, and the province’s customized AI application scenarios are laid out for rapid reuse and flexible promotion. For areas with consistent dumb resource construction management modes, management pain points, and promotion demands, a unified and standardized management model can be implemented, so as to quickly deploy and land. And after the application of the failure method provided by this application, the efficiency of resource audit is effectively improved, the accuracy of resources is greatly improved, the cost reduction and efficiency increase are obvious, the means of access network resource discovery are strengthened, the network quality is improved, and the failure points are reduced.

[0119] like Figure 3 As shown, the embodiment of the present application also provides a dumb resource device identification device, including:

[0120] An acquisition module 301 is used to acquire a target position of a dumb resource device in a device image based on a target detection model;

[0121] An extraction module 302 is used to extract type features of a target area image corresponding to a target position based on a target classification model;

[0122] The determination module 303 is used to determine the category to which the dumb resource device belongs according to the type feature and a pre-built faiss feature library of dumb resource devices.

[0123] As an optional embodiment, the acquisition module includes:

[0124] A first acquisition submodule is used to detect the device image based on the target detection model, and obtain the coordinates of the detection frame of the dumb resource device in the device image;

[0125] The second acquisition submodule is used to screen the detection frames according to their shapes and attributes to determine multiple candidate detection frames that meet preset conditions;

[0126] The third acquisition submodule is used to perform weighted averaging on the coordinates of multiple candidate detection frames according to their confidence weights, mutual distance weights, and overlap weights to obtain target coordinates of the target detection frame; the target coordinates of the target detection frame are used to indicate the target position of the dumb resource device in the device image.

[0127] As an optional embodiment, the first acquisition submodule includes:

[0128] The acquisition unit is used to detect the device image based on the target detection model, and output the coordinate values ​​of the four corner points of the detection box, the detection box confidence and the category confidence.

[0129] As an optional embodiment, the device further includes:

[0130] A rotation annotation module, used to perform rotation annotation on the detection frame in the device image based on the target detection model to obtain the center coordinates of the detection frame, the coordinates of the upper left corner point of the detection frame, and the coordinates of the lower right corner point of the detection frame;

[0131] A construction module is used to construct a heat map loss function according to the center coordinates of the detection box, the coordinates of the upper left corner point of the detection box, and the coordinates of the lower right corner point of the detection box;

[0132] A loss determination module is used to use the heat map loss function as the loss function of the target detection model.

[0133] As an optional embodiment, the target detection model includes: a self-attention Sw-Transformer model with a moving window and a YOLO model;

[0134] The first acquisition submodule or acquisition unit is further used for:

[0135] The global information of the device image is extracted through the Sw-Transformer model, and the local information of the device image is extracted through the YOLO model;

[0136] The device image is detected according to the global information and the local information.

[0137] As an optional embodiment, the device further includes:

[0138] An image processing module is used to preprocess the device image and input the preprocessed device image into the target detection model; wherein the preprocessing includes one or more of the following:

[0139] Flip, rotate, shift, crop, scale, adjust color space, enhance mosaic, stitch.

[0140] The embodiment of the present application uses the target classification model as a feature extractor to extract the type features of the corresponding dumb resource device, build the faiss feature library of the device, and achieve millisecond-level search response. This solution combines speed and accuracy. Compared with the simple detection solution, it has higher accuracy and comparable speed, and supports online dynamic update of the device faiss feature library, which facilitates the addition of subsequent models, shortens the R&D process, and ensures the rapid update and iteration of capabilities.

[0141] It should be noted that the dumb resource device identification device provided in the embodiment of the present application is a device capable of executing the above-mentioned dumb resource device identification method. All embodiments of the above-mentioned dumb resource device identification method are applicable to the device and can achieve the same beneficial effects. To avoid repetition, they are not repeated here.

[0142] like Figure 4 As shown, the embodiment of the present application further provides an identification device, including a processor 400 and a transceiver 410, wherein the transceiver 410 receives and sends data under the control of the processor 400, and the processor 400 is used to perform the following operations:

[0143] Based on the target detection model, obtain the target position of the dumb resource device in the device image;

[0144] Based on the target classification model, the type features of the target area image corresponding to the target position are extracted;

[0145] According to the type feature and a pre-built faiss feature library of dumb resource devices, the category to which the dumb resource device belongs is determined.

[0146] As an optional embodiment, the processor 400 is further configured to perform the following operations:

[0147] Detect the device image based on the target detection model, and obtain the coordinates of the detection frame of the dumb resource device in the device image;

[0148] Screening is performed based on the shape and attributes of the detection frame to determine multiple candidate detection frames that meet the preset conditions;

[0149] According to the confidence weights, mutual distance weights, and overlap weights of multiple candidate detection frames, the coordinates of the multiple candidate detection frames are weighted averaged to obtain the target coordinates of the target detection frame; the target coordinates of the target detection frame are used to indicate the target position of the dumb resource device in the device image.

[0150] As an optional embodiment, the processor 400 is further configured to perform the following operations:

[0151] The device image is detected based on the target detection model, and the coordinate values ​​of the four corner points of the detection box, the detection box confidence, and the category confidence are output.

[0152] As an optional embodiment, the processor 400 is further configured to perform the following operations:

[0153] Based on the target detection model, the detection frame in the device image is rotated and annotated to obtain the center coordinates of the detection frame, the coordinates of the upper left corner point of the detection frame, and the coordinates of the lower right corner point of the detection frame;

[0154] Construct a heat map loss function based on the center coordinates of the detection box, the coordinates of the upper left corner of the detection box, and the coordinates of the lower right corner of the detection box;

[0155] The heat map loss function is used as the loss function of the target detection model.

[0156] As an optional embodiment, the target detection model includes: a self-attention Sw-Transformer model with a moving window and a YOLO model; the processor 400 is further configured to perform the following operations:

[0157] The global information of the device image is extracted through the Sw-Transformer model, and the local information of the device image is extracted through the YOLO model;

[0158] The device image is detected according to the global information and the local information.

[0159] As an optional embodiment, the processor is further configured to perform the following operations:

[0160] Preprocessing the device image and inputting the preprocessed device image into the target detection model; wherein the preprocessing includes one or more of the following:

[0161] Flip, rotate, shift, crop, scale, adjust color space, enhance mosaic, stitch.

[0162] The embodiment of the present application uses the target classification model as a feature extractor to extract the type features of the corresponding dumb resource device, build the faiss feature library of the device, and achieve millisecond-level search response. This solution combines speed and accuracy. Compared with the simple detection solution, it has higher accuracy and comparable speed, and supports online dynamic update of the device faiss feature library, which facilitates the addition of subsequent models, shortens the R&D process, and ensures the rapid update and iteration of capabilities.

[0163] It should be noted that the dumb resource device identification device provided in the embodiment of the present application is a device capable of executing the above-mentioned dumb resource device identification method. All embodiments of the above-mentioned dumb resource device identification method are applicable to the device and can achieve the same beneficial effects. To avoid repetition, they are not repeated here.

[0164] An embodiment of the present application also provides an identification device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the various processes in the above-described dumb resource device identification method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they will not be described here.

[0165] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, each process in the above-mentioned dumb resource device identification method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0166] The embodiment of the present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the various processes of the method embodiment shown in 1 above and can achieve the same technical effect. To avoid repetition, they are not repeated here.

[0167] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0168] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A device that specifies functions in one or more processes and / or one or more blocks.

[0169] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable storage medium produce a paper product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0170] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that the computer or other programmable device executes a series of operating steps to produce a computer-implemented process, thereby providing instructions executed on the computer or other programmable device for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0171] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for identifying dumb resource devices, It is characterized in that include: Based on the target detection model, obtain the target position of the dumb resource device in the device image; Based on the target classification model, the type features of the target area image corresponding to the target position are extracted; According to the type feature and a pre-built faiss feature library of dumb resource devices, the category to which the dumb resource device belongs is determined.

2. The method according to claim 1, It is characterized in that The step of obtaining the target position of the dumb resource device in the device image based on the target detection model includes: Detect the device image based on the target detection model, and obtain the coordinates of the detection frame of the dumb resource device in the device image; Screening is performed based on the shape and attributes of the detection frame to determine multiple candidate detection frames that meet the preset conditions; According to the confidence weights, mutual distance weights, and overlap weights of multiple candidate detection frames, the coordinates of the multiple candidate detection frames are weighted averaged to obtain the target coordinates of the target detection frame; the target coordinates of the target detection frame are used to indicate the target position of the dumb resource device in the device image.

3. The method according to claim 2, It is characterized in that Detecting the device image based on the target detection model to obtain the coordinates of the detection frame of the dumb resource device in the device image includes: The device image is detected based on the target detection model, and the coordinate values ​​of the four corner points of the detection box, the detection box confidence, and the category confidence are output.

4. The method according to claim 3, It is characterized in that The method further comprises: Based on the target detection model, the detection frame in the device image is rotated and annotated to obtain the center coordinates of the detection frame, the coordinates of the upper left corner point of the detection frame, and the coordinates of the lower right corner point of the detection frame; Construct a heat map loss function based on the center coordinates of the detection box, the coordinates of the upper left corner of the detection box, and the coordinates of the lower right corner of the detection box; The heat map loss function is used as the loss function of the target detection model.

5. The method according to claim 2 or 3, It is characterized in that The target detection model includes: a self-attention Sw-Transformer model with a moving window and a YOLO model; The detecting the device image based on the target detection model includes: The global information of the device image is extracted through the Sw-Transformer model, and the local information of the device image is extracted through the YOLO model; The device image is detected according to the global information and the local information.

6. The method according to claim 1, It is characterized in that The method further comprises: Preprocessing the device image and inputting the preprocessed device image into the target detection model; wherein the preprocessing includes one or more of the following: Flip, rotate, shift, crop, scale, adjust color space, enhance mosaic, stitch.

7. A dumb resource device identification device, It is characterized in that include: An acquisition module, used for acquiring a target position of a dumb resource device in a device image based on a target detection model; An extraction module, used for extracting type features of a target area image corresponding to a target position based on a target classification model; The determination module is used to determine the category to which the dumb resource device belongs according to the type feature and a faiss feature library of dumb resource devices constructed in advance.

8. An identification device comprising a processor and a transceiver, wherein the transceiver receives and sends data under the control of the processor, It is characterized in that The processor is configured to perform the following operations: Based on the target detection model, obtain the target position of the dumb resource device in the device image; Based on the target classification model, the type features of the target area image corresponding to the target position are extracted; According to the type feature and a pre-built faiss feature library of dumb resource devices, the category to which the dumb resource device belongs is determined.

9. The identification device according to claim 8, It is characterized in that The processor is further configured to perform the following operations: Detect the device image based on the target detection model, and obtain the coordinates of the detection frame of the dumb resource device in the device image; Screening is performed based on the shape and attributes of the detection frame to determine multiple candidate detection frames that meet the preset conditions; According to the confidence weights, mutual distance weights, and overlap weights of multiple candidate detection frames, the coordinates of the multiple candidate detection frames are weighted averaged to obtain the target coordinates of the target detection frame; the target coordinates of the target detection frame are used to indicate the target position of the dumb resource device in the device image.

10. The identification device according to claim 9, It is characterized in that The processor is further configured to perform the following operations: The device image is detected based on the target detection model, and the coordinate values ​​of the four corner points of the detection box, the detection box confidence, and the category confidence are output.

11. The identification device according to claim 10, It is characterized in that The processor is further configured to perform the following operations: Based on the target detection model, the detection frame in the device image is rotated and annotated to obtain the center coordinates of the detection frame, the coordinates of the upper left corner point of the detection frame, and the coordinates of the lower right corner point of the detection frame; Construct a heat map loss function based on the center coordinates of the detection box, the coordinates of the upper left corner of the detection box, and the coordinates of the lower right corner of the detection box; The heat map loss function is used as the loss function of the target detection model.

12. The identification device according to claim 9 or 10, It is characterized in that The target detection model includes: a self-attention Sw-Transformer model with a moving window and a YOLO model; the processor is also used to perform the following operations: The global information of the device image is extracted through the Sw-Transformer model, and the local information of the device image is extracted through the YOLO model; The device image is detected according to the global information and the local information.

13. The identification device according to claim 8, It is characterized in that The processor is further configured to perform the following operations: Preprocessing the device image and inputting the preprocessed device image into the target detection model; wherein the preprocessing includes one or more of the following: Flip, rotate, shift, crop, scale, adjust color space, enhance mosaic, stitch.

14. An identification device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; It is characterized in that When the processor executes the program, the dumb resource device identification method according to any one of claims 1 to 6 is implemented.

15. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps in the dumb resource device identification method as described in any one of claims 1 to 6 are implemented.

16. A computer program product, It is characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps in the method for identifying a dumb resource device as described in any one of claims 1 to 6.

Citation Information

Cited By

  • Automatic dumb resource equipment label classification method and system based on RFID

    CN122339982A