Detection device, detection method, and detection program

The detection device improves detection accuracy on edge devices by extracting high-confidence features and storing them in a memory bank, addressing the limitations of conventional two-layer inference technology on edge devices with limited resources.

JP2024118659AInactive Publication Date: 2024-09-02NIPPON TELEGRAPH & TELEPHONE CORP +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023025056
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-09-02
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Conventional two-layer inference technology faces challenges in implementing memory banks to improve detection accuracy on edge devices due to limited computing resources and memory, as high-quality features stored in memory banks become large and increase inference time.

Method used

A detection device that extracts feature quantities with a confidence level greater than or equal to a threshold for each class and stores them in a memory bank, using lightweight models like Faster RCNN-MobileNetV3, to improve detection accuracy without increasing memory usage or inference time.

Benefits of technology

Enhances detection accuracy on edge devices by utilizing a memory bank effectively, reducing memory consumption and inference time while maintaining high accuracy, even when implementing a first-layer model on edge devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024118659000001
    Figure 2024118659000001
Patent Text Reader

Abstract

To increase the detection accuracy of a two-layer inference detection by using a memory bank even when a first layer model is implemented on an edge device.SOLUTION: An acquisition unit 15a acquires data of a prescribed time period to be processed. An extraction unit 15b extracts, in each object detecting class, a feature amount for which a certainty factor of an output if the acquired data is inputted into a first layer model 14a is equal to or greater than a prescribed threshold, and stores, as feature amounts for compensation, the extracted feature amounts in the respective classes into a memory bank 14c.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a detection device, a detection method, and a detection program. [Background technology]

[0002] Conventionally, two-layer inference technology is known for detecting objects and people. This technology narrows down the detection target area (ROI, Region Of Interest) based on the detection results of the first-layer model, and selects an appropriate model of the accuracy class from the second-layer models with different accuracy according to the situation within the ROI to perform detailed analysis.

[0003] Also, a technique for improving detection accuracy by utilizing a memory bank has been disclosed (see Non-Patent Document 1). [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] Sara Beery, Guanhang Wu, Vivek Rathod, Ronny Votel, Jonathan Huang, “Context R-CNN: Long Term Temporal Context for Per-Camera Object Detection”, arXiv:1912.03538v3, April 22, 2020 Summary of the Invention [Problem to be solved by the invention]

[0005] However, according to the conventional technology, in detection by two-layer inference, when implementing the first-layer model on an edge device, it may be difficult to introduce a technology that utilizes a memory bank to improve detection accuracy. For example, in the past, in order to improve detection accuracy by utilizing a memory bank, it was assumed that processing would be performed on the cloud side, which has ample computational resources and memory, and the adopted base NW (Network) is heavy. In addition, high-quality complementary features for ensuring detection accuracy are stored in the memory bank in advance, which causes the memory bank to become bloated. Therefore, it is generally difficult to apply this technology to edge devices with small memory sizes.

[0006] The present invention has been made in consideration of the above, and aims to make it possible to improve detection accuracy by utilizing a memory bank in detection using two-layer inference, even when the first layer model is implemented in an edge device. [Means for solving the problem]

[0007] In order to solve the above-mentioned problems and achieve the object, the detection device of the present invention is characterized by having an acquisition unit that acquires data for a predetermined period of time to be processed, and an extraction unit that extracts features for each object detection class, the output of which has a confidence level equal to or higher than a predetermined threshold when the acquired data is input into a model, and stores the features in a memory unit. Effect of the Invention

[0008] According to the present invention, in detection using two-layer inference, even when the first-layer model is implemented in an edge device, it is possible to improve detection accuracy by utilizing a memory bank. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is a diagram for explaining an overview of the detection device of the present embodiment. [Diagram 2] FIG. 2 is a diagram for explaining an outline of the detection device of this embodiment. [Diagram 3]FIG. 3 is a schematic diagram illustrating a schematic configuration of the detection device of the present embodiment. [Figure 4] FIG. 4 is a flowchart showing the procedure of the detection process. [Diagram 5] FIG. 5 is a flowchart showing the procedure of the detection process. [Figure 6] FIG. 6 is a diagram for explaining an embodiment. [Figure 7] FIG. 7 is a diagram illustrating an example of a computer that executes a detection program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited to this embodiment. In addition, in the description of the drawings, the same parts are indicated by the same reference numerals.

[0011] [Detection device overview] 1 and 2 are diagrams for explaining an overview of the detection device of this embodiment. First, in detection by two-layer inference, the area of ​​a person or object to be analyzed (ROI, Region Of Interest) is narrowed down using a first-layer model. Next, depending on the difficulty of the task in each ROI, a second-layer model is selected, and detailed analysis is performed using the selected second-layer model. For example, the second-layer model is selected depending on the difficulty of inference within the ROI from among three models: a model with high accuracy and high computational complexity, a model with medium accuracy and medium computational complexity, and a model with low accuracy and low computational complexity.

[0012] In this way, in the first layer, as shown in the example in Figure 1, ROIs are generated (see (b)) from BBOXes (Bounding Boxes) based on the detection results (see (a)) of the model, and the difficulty of inference within each ROI is determined. This first-layer model does not necessarily need to generate an accurate BBOX, but it is desirable to accurately grasp the rough positions and number of people and objects. In addition, since it is expected that the first layer will be implemented on edge devices with limited computational resources and memory, it is desirable for the first-layer model to be lightweight (low latency) and highly accurate.

[0013] Therefore, assuming that the detection device of this embodiment is an edge device, a lightweight object detection DNN (Deep Neural Network) is used as the base network. For example, the base network of the first layer model is Faster RCNN (Region based Convolutional Neural Networks)-MobileNetV3, Faster RCNN-VGG16, Faster RCNN-Resnet18, etc.

[0014] In addition, the detection device applies a technology to improve detection accuracy using a memory bank to the first-layer model. Here, in the technology to improve detection accuracy using a memory bank, as shown in Fig. 2, prior to actual operation, high-quality features are obtained from production data for a certain period as complementary features and stored in a memory bank. The complementary features are used to train the attention block, thereby improving detection accuracy.

[0015] In this case, the more complementary features stored in the memory bank, the more effective it is in improving detection accuracy. On the other hand, when objects are not evenly distributed in each object detection class or when there are many classes, high-quality complementary features are required for each class to ensure detection accuracy, which results in the expansion of the memory bank. In addition, when a large number of complementary features are stored in the memory bank, the calculation time in the Attention Block increases, which in turn increases the inference time.

[0016] Therefore, the detection device extracts features with the TOP K confidence levels from features that are equal to or above a predetermined threshold for each class in all frames within a certain period of time as complementary features and stores them in a memory bank. This makes it possible to reduce the memory capacity of the memory bank and prevent increases in inference time while ensuring detection accuracy.

[0017] [Detection device configuration] Fig. 3 is a schematic diagram illustrating a schematic configuration of a detection device of this embodiment. As illustrated in Fig. 3, the detection device 10 of this embodiment is realized by a general-purpose computer such as a personal computer, and includes an input unit 11, an output unit 12, a communication control unit 13, a storage unit 14, and a control unit 15. The detection device 10 may be implemented in an edge device.

[0018] The input unit 11 is realized by using input devices such as a keyboard and a mouse, and inputs various instruction information such as a command to start processing to the control unit 15 in response to an input operation by an operator. The output unit 12 is realized by a display device such as a liquid crystal display, a printing device such as a printer, etc. For example, the output unit 12 displays the results of a detection process described below.

[0019] The communication control unit 13 is realized by a NIC (Network Interface Card) or the like, and controls communication between the control unit 15 and an external device via an electric communication line such as a LAN (Local Area Network) or the Internet. For example, the communication control unit 13 controls communication between the control unit 15 and a management device or the like that manages data to be processed in a detection process described later and various information.

[0020] The storage unit 14 is realized by a semiconductor memory element such as a RAM (Random Access Memory) or a flash memory, or a storage device such as a hard disk or an optical disk. The storage unit 14 stores in advance a processing program for operating the detection device 10 and data used during execution of the processing program, or stores the data temporarily each time processing is performed. The storage unit 14 may be configured to communicate with the control unit 15 via the communication control unit 13.

[0021] In this embodiment, the storage unit 14 stores a first layer model 14a and a second layer model 14b used in a detection process described later. The storage unit 14 also functions as a memory bank 14c used in the detection process described later.

[0022] Here, the first-layer model 14a is a model used to detect an area (ROI) where an object exists. Specifically, the first-layer model 14a is a lightweight object detection DNN. For example, the first-layer model 14a uses Faster RCNN-MobileNetV3, Faster RCNN-VGG16, Faster RCNN-Resnet18, etc. as a base network.

[0023] The second-layer model 14b is a model for each situation class used to analyze objects according to the situation in the area. Specifically, the second-layer model 14b is set corresponding to the difficulty of the task in the area (ROI) of the person or object to be analyzed narrowed down by the first-layer model 14a. For example, the second-layer model 14b is set corresponding to the difficulty of the task, such as a model with high accuracy and high calculation amount, a model with medium accuracy and medium calculation amount, or a model with low accuracy and low calculation amount.

[0024] The control unit 15 is realized using a CPU (Central Processing Unit), an NP (Network Processor), an FPGA (Field Programmable Gate Array), etc., and executes a processing program stored in a memory. As a result, the control unit 15 functions as an acquisition unit 15a, an extraction unit 15b, and a learning unit 15c, as exemplified in Fig. 3, to execute a detection process.

[0025] These functional units may each be implemented in a different piece of hardware, or some of them may be implemented in a different piece of hardware. Furthermore, the control unit 15 may include other functional units.

[0026] The acquiring unit 15a acquires data of a predetermined period to be processed. For example, the acquiring unit 15a acquires data of a predetermined period to be processed from a management device or the like that manages data to be processed in the detection process via the input unit 11 or the communication control unit 13. The acquiring unit 15a may store the acquired data in the storage unit 14.

[0027] The extraction unit 15b extracts features for which the confidence of the output when the acquired data is input to the first-layer model 14a is equal to or higher than a predetermined threshold for each object detection class. The extraction unit 15b also stores the extracted features for each class in the memory bank 14c as complementary features.

[0028] Specifically, the extraction unit 15b extracts complementary features for each object detection class, such as a person, a car, or a motorcycle, for all frames of data within a predetermined period to be processed.

[0029] The extraction unit 15b extracts, as the complementary feature, a high-quality feature whose confidence level in the output of the first-layer model 14a is equal to or higher than a predetermined threshold. For example, the extraction unit 15b extracts, for each class, a feature whose confidence level is TOP K from among features that are equal to or higher than a predetermined threshold and are output when the production data to be processed is input to the first-layer model 14a. The extraction unit 15b stores the extracted complementary feature for each class in the memory bank 14c. This makes it possible to effectively extract complementary features, thereby suppressing an increase in the memory capacity of the memory bank 14c and an increase in inference time, and improving the accuracy of the first-layer model 14a.

[0030] The learning unit 15c learns the first-layer model 14a using the extracted complementary features. Specifically, the learning unit 15c learns the attention block illustrated in FIG. 2 using the complementary features for each class in the memory bank 14c. This improves the accuracy of the first-layer model 14a.

[0031] [Detection process] Next, the detection process by the detection device 10 according to this embodiment will be described with reference to Fig. 4 and Fig. 5. Fig. 4 and Fig. 5 are flowcharts showing the procedure of the detection process. The detection process of this embodiment includes a complementation process and a learning process.

[0032] First, the flowchart of the complementation process illustrated in FIG. 4 starts, for example, when the user performs an operation input to instruct the start of the complementation process.

[0033] First, the acquiring unit 15a acquires data for a predetermined period to be processed (step S1).

[0034] Next, the extraction unit 15b extracts features whose output confidence level when the acquired data is input to the first-layer model 14a is equal to or higher than a predetermined threshold for each object detection class (step S2). Specifically, the extraction unit 15b extracts complementary features for each expected object detection class for all frames of data within a predetermined period to be processed.

[0035] The extraction unit 15b extracts, as the complementary feature, a high-quality feature whose confidence level in the output of the first-layer model 14a is equal to or higher than a predetermined threshold. For example, the extraction unit 15b targets feature values ​​equal to or higher than a predetermined threshold that are output when the production data to be processed is input to the first-layer model 14a, and extracts, for each class, feature values ​​with confidence levels of TOP K as complementary features.

[0036] The extraction unit 15b also stores the extracted feature for complementation for each class in the memory bank 14c (step S3), thereby completing a series of complementation processes.

[0037] 5 is started, for example, when a user performs an operation input to instruct the start of the learning process. Then, the learning unit 15c learns the first-layer model 14a using the extracted complementary features for each class (step S11). This ends a series of learning processes.

[0038] [effect] As described above, in the detection device 10 of this embodiment, the acquisition unit 15a acquires data for a predetermined period to be processed. The extraction unit 15b extracts, for each object detection class, features whose output confidence level when the acquired data is input to the first-layer model 14a is equal to or greater than a predetermined threshold. The extraction unit 15b also stores the extracted features for each class in the memory bank 14c as complementary features.

[0039] Specifically, the first-layer model 14a is a lightweight, i.e., low-latency, object detection DNN.

[0040] This allows for effective extraction of complementary features, thereby preventing an increase in the memory capacity of the memory bank 14c and an increase in inference time, thereby ensuring the accuracy of the first-layer model 14a. Also, the first-layer model 14a can be implemented in an edge device. Thus, according to the detection device 10, in detection using two-layer inference, it is possible to improve detection accuracy by utilizing the memory bank 14c even when the first-layer model is implemented in an edge device.

[0041] Furthermore, the learning unit 15c learns the first-layer model 14a using the extracted complementary features, thereby improving the accuracy of the first-layer model 14a.

[0042] [Example] FIG. 6 is a diagram for explaining an embodiment. In this embodiment, CityCom (10 classes, 17 cameras) was used as an evaluation dataset. FIG. 6 shows the relationship between the number of complementary features in memory bank 14c and the detection accuracy index mAP for the conventional method and the proposed method. The mAP on the vertical axis of FIG. 6 is an index of multi-class object detection accuracy, and the higher the accuracy, the higher the value.

[0043] As shown in Fig. 6, it was confirmed that the method of the present application has higher detection accuracy when the number of complementary features in the memory bank 14c is about the same. It was also confirmed that the method of the present application can achieve the same level of accuracy with about one-third the number of complementary features as the conventional method.

[0044] Here, when the size of the complementary features is 7 x 7 x 2048, each feature requires 0.4 MB. Therefore, the memory requirement for 6,600 complementary features in the conventional method is 2.5 GB. In contrast, according to the method of the present application, 2,200 complementary features are sufficient to achieve the same level of accuracy, so it was found that the memory requirement can be reduced to 0.8 GB.

[0045] In addition, the inference time for 100 complementary features was 0.114208 s / img, and for 200 complementary features it was 0.226247 s / img. Thus, it was confirmed that the inference time tends to increase linearly as the number of complementary features increases. Therefore, it was found that the method of the present application can reduce the inference time to about one-third of that of the conventional method while achieving the same level of accuracy.

[0046] [program] A program in which the process executed by the detection device 10 according to the above embodiment is written in a language executable by a computer can also be created. As an embodiment, the detection device 10 can be implemented by installing a detection program that executes the above detection process as package software or online software on a desired computer. For example, the above detection program can be executed by an information processing device, so that the information processing device can function as the detection device 10. The information processing device here includes desktop or notebook personal computers. In addition, the information processing device also includes mobile communication terminals such as smartphones, mobile phones, and PHS (Personal Handyphone System), and even slate terminals such as PDA (Personal Digital Assistant). The function of the detection device 10 may be implemented on a cloud server.

[0047] 7 is a diagram showing an example of a computer that executes a detection program. The computer 1000 includes, for example, a memory 1010, a CPU 1020, a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These components are connected by a bus 1080.

[0048] The memory 1010 includes a ROM (Read Only Memory) 1011 and a RAM 1012. The ROM 1011 stores a boot program such as a BIOS (Basic Input Output System). The hard disk drive interface 1030 is connected to a hard disk drive 1031. The disk drive interface 1040 is connected to a disk drive 1041. A removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1041. The serial port interface 1050 is connected to a mouse 1051 and a keyboard 1052, for example. The video adapter 1060 is connected to a display 1061, for example.

[0049] Here, the hard disk drive 1031 stores, for example, an OS (Operating System) 1091, application programs 1092, program modules 1093, and program data 1094. Each piece of information described in the above embodiments is stored in the hard disk drive 1031 or memory 1010, for example.

[0050] The detection program is stored in the hard disk drive 1031 as, for example, a program module 1093 in which instructions to be executed by the computer 1000 are written. Specifically, the hard disk drive 1031 stores the program module 1093 in which each process executed by the detection device 10 described in the above embodiment is written.

[0051] Furthermore, data used for information processing by the detection program is stored as program data 1094, for example, in the hard disk drive 1031. Then, the CPU 1020 reads out the program module 1093 and the program data 1094 stored in the hard disk drive 1031 into the RAM 1012 as necessary, and executes each of the above-mentioned procedures.

[0052] Note that the program module 1093 and program data 1094 related to the detection program are not limited to being stored in the hard disk drive 1031, and may be stored in, for example, a removable storage medium and read by the CPU 1020 via the disk drive 1041 or the like. Alternatively, the program module 1093 and program data 1094 related to the detection program may be stored in another computer connected via a network such as a LAN or a WAN (Wide Area Network), and read by the CPU 1020 via the network interface 1070.

[0053] Although the embodiment to which the invention made by the present inventor is applied has been described above, the present invention is not limited by the description and drawings which form a part of the disclosure of the present invention according to the present embodiment. In other words, other embodiments, examples, operation techniques, etc. made by those skilled in the art based on the present embodiment are all included in the scope of the present invention. [Explanation of symbols]

[0054] 10. Detection Device 11 Input section 12 Output section 13 Communication control section 14 Storage section 14a 1st layer model 14b 2nd layer model 14c Memory Bank 15 Control section 15a Acquisition part 15b Extraction part 15c Learning Section

Claims

1. An acquisition unit that acquires data for a predetermined period to be processed; an extraction unit that extracts features for which the confidence of an output when the acquired data is input to a model is equal to or greater than a predetermined threshold for each object detection class and stores the features in a storage unit; A detection device comprising:

2. The detection device of claim 1 , wherein the model is a lightweight object detection Deep Neural Network (DNN).

3. The detection device according to claim 1 , further comprising a learning unit that learns the model using the extracted feature amount.

4. A detection method performed by a detection device, comprising: The detection device has a memory unit, An acquisition step of acquiring data for a predetermined period to be processed; an extraction step of extracting feature amounts whose output confidence level when the acquired data is input to a model is equal to or greater than a predetermined threshold for each object detection class and storing the feature amounts in the storage unit; A detection method comprising:

5. An acquisition step of acquiring data for a predetermined period to be processed; an extraction step of extracting features whose output confidence level when the acquired data is input to a model is equal to or higher than a predetermined threshold for each object detection class and storing the features in a storage unit; A detection program for causing a computer to execute the above.

Citation Information

Patent Citations

  • Recognition device, recognition method, and program

    JP2020190960A

  • Article detection apparatus, article detection method, and article-detecting computer program

    JP2021026644A

  • Leaning device, learning method, and learning program

    JP2022050251A