Edge device, processing method, and processing program
By dividing data and utilizing lightweight and high-precision models on edge devices for selective data transmission, the method addresses the inefficiencies of edge devices and server strain, achieving reduced data transfer and computational load while maintaining high-precision processing efficiency.
Patent Information
- Application Number
- JP2024095528
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The challenge lies in the inefficiencies of edge devices due to limited computational resources and the strain on communication paths and server devices when processing large data sets, particularly high-precision data like 4K or 8K camera images, leading to prolonged processing times and increased load.
The solution involves dividing processing data into parts and using a combination of lightweight and high-precision models on an edge device for parallel processing, selecting and transmitting only relevant data to a server device for further processing, thereby reducing data transfer and computational load.
This approach effectively reduces data transfer and computational load by performing efficient parallel processing on the edge device and selective data transmission to the server, ensuring timely and accurate high-precision results.
Smart Images

Figure 2024119951000001
Abstract
Description
[Technical field]
[0001] The present invention relates to an edge device, a processing method, and a processing program. [Background technology]
[0002] The amount of data collected by IoT devices, such as sensors, is enormous, and when the collected data is aggregated and processed by cloud computing, a huge amount of communication traffic occurs. For this reason, attention is being paid to edge computing, which processes collected data in edge devices close to users.
[0003] However, the computational load and memory resources of the edge devices are poor compared to devices other than the edge devices (hereinafter, for simplicity, referred to as clouds) that are located physically and logically farther from users than the edge devices. For this reason, when a process with a large computational load is performed by the edge device, it may take a long time to complete the process, or it may take a long time to complete other processes that do not require a large computational load.
[0004] Here, one type of processing that requires a large amount of calculation is processing related to machine learning. Non-Patent Document 1 proposes the application of so-called adaptive learning to edge clouds. That is, the method described in Non-Patent Document 1 deploys a trained model trained using general-purpose training data in the cloud to an edge device, and re-trains the model trained in the cloud using data acquired by the edge device, thereby realizing an operation that makes the most of the advantages of the cloud and the edge device. [Prior art documents] [Non-patent literature]
[0005] [Non-Patent Document 1] :Okoshi et al., “Proposal and Evaluation of a DNN Model Operation Method Using Cloud-Edge Collaboration”, Proceedings of the 80th National Conference 2018(1), 3-4, 2018-03-13. Summary of the Invention [Problem to be solved by the invention]
[0006] However, when the data size of the processing data is large, such as high-precision (high-definition (4K, 8K)) camera images, sending all processing data that cannot be determined on the edge side to the cloud side puts strain on the transmission path, and there is also the problem that the processing time for the processing data with large data size is long on the server side.
[0007] The present invention has been made in consideration of the above, and aims to provide an edge device, a processing method, and a processing program that can reduce the amount of data transferred from the edge device to a server device and reduce the computational load on the server device. [Means for solving the problem]
[0008] In order to solve the above-mentioned problems and achieve the object, the edge device of the present invention is characterized by having a first inference unit that inputs each of the divided data, obtained by dividing processing data into multiple pieces, into corresponding first models among a plurality of first models, and executes inference in each of the first models, and a judgment unit that outputs to a server device only the divided data among the multiple pieces of divided data that is judged to have an inference result in each first model that matches a predetermined result. Effect of the Invention
[0009] According to the present invention, it is possible to reduce the amount of data transferred from an edge device to a server device and to reduce the computational load on the server device. [Brief description of the drawings]
[0010] [Figure 1]FIG. 1 is a diagram for explaining an outline of a processing method of a processing system according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating an example of DNN1 and DNN2. [Diagram 3] FIG. 3 is a diagram illustrating an example of a configuration of a processing system according to an embodiment. [Figure 4] FIG. 4 is a flowchart showing a flow of processing executed by the edge device shown in FIG. [Diagram 5] FIG. 5 is a flowchart showing a flow of the process executed by the server device shown in FIG. [Figure 6] FIG. 6 is a diagram for explaining an outline of a processing method of the processing system according to the first modification of the embodiment. [Figure 7] FIG. 7 is a diagram for explaining an outline of a processing method in an edge device of a processing system according to the second modification of the embodiment. [Figure 8] FIG. 8 is a diagram illustrating an example of a configuration of a processing system according to the second modification of the embodiment. In FIG. [Figure 9] FIG. 9 is a diagram illustrating an example of a computer that realizes an edge device and a server device by executing a program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] 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.
[0012] [Embodiment Mode] [Outline of the embodiment] An embodiment of the present invention will be described. In the embodiment of the present invention, a processing system that performs inference processing using a trained high-precision model and a lightweight model will be described. Note that in the processing system of the embodiment, a case where a DNN (Deep Neural Network) is used as a model used in the inference processing will be described as an example. In the processing system of the embodiment, a neural network other than a DNN may be used, and low-computational-amount signal processing and high-computational-amount signal processing may be used instead of a trained model.
[0013] FIG. 1 is a diagram for explaining an outline of a processing method of a processing system according to an embodiment. The processing system according to the embodiment configures a model cascade using a high-precision model and a lightweight model. The processing system according to the embodiment controls whether to execute processing in an edge device using a high-speed, low-precision lightweight model (e.g., DNN1 (first model)) or in a cloud (server device) using a low-speed, high-precision high-precision model (e.g., DNN2 (second model)). For example, a server device is a device located in a place that is physically and logically far from a user. An edge device is an IoT device and various terminal devices located in a place that is physically and logically close to a user, and has fewer resources than a server device.
[0014] DNN1 and DNN2 are models that output inference results based on input data to be processed. In this embodiment, for example, in order to enable high-speed processing even for high-precision camera images with large data sizes, the edge device divides the input image, executes multiple processes in parallel for each divided image, and transmits only divided images that satisfy a predetermined condition to the cloud side. The edge device and server device are provided with multiple DNN1 and DNN2, and execute each process including inference processing in parallel. This is also effective for high frame rate video. Only images that the edge device determines to include a desired subject or images that have changed (moved) compared to the previous or following image may be transmitted to the cloud side. Furthermore, the image may be divided, and divided images of the image including the desired subject may be transmitted to the cloud side.
[0015] In the example of FIG. 1, when a high-definition (4K, 8K) image (hereinafter referred to as image G1) is input to the edge device as processing data, the edge device divides this image G1, for example, into nine equal parts, and distributes the divided images G1-1 to G1-9 to DNN1-1 to DNN1-9, respectively ((1) of FIG. 1). Each of the DNN1-1 to DNN1-9 performs object recognition for inferring the probability of each class of object appearing in the image and moving object detection for the input divided images G1-1 to G1-9 ((2) of FIG. 1). Note that the number of DNN1-1 to DNN1-9 in the edge device is an example, and the number may be set according to the number of divisions of the image. Also, it may be configured to process the divided images in order using DNN1-1 to DNN1-M (M is a number smaller than the number of divisions).
[0016] Then, the edge device selects the divided images G1-1 and G1-5 that contain a predetermined object (for example, a cat or a part of a cat) and are detected as a moving object based on the inference results of the DNN1-1 to DNN1-9, and obtains the confidence level of the divided images G1-1 and G1-5. The confidence level is the degree of probability that the result of the object recognition by the DNN1-1 to DNN1-9 is correct.
[0017] Next, the edge device determines that the divided images G1-1 and G1-5, whose certainty is equal to or greater than a predetermined threshold, are to be transmitted ((3) in FIG. 1), and performs encoding processing on each of the divided images G1-1 and G1-5, and transmits them to the cloud (server device) ((4) in FIG. 1). At this time, the device may be designed to transmit the area surrounding the divided images as well. This is effective in improving the inference accuracy when the desired subject is present outside the divided images. This is particularly true when the desired subject is photographed so that it occupies approximately the same area on multiple split screens. The multiple split screens are effective when there are, for example, two split screens, or multiple surrounding split screens.
[0018] On the cloud side, when the divided images G1-1, G1-5 output from the edge device are received, the divided images G1-1, G1-5 are decoded ((5) in FIG. 1) and input to 2-1 to DNN2-9 ((6) in FIG. 1). Each of 2-1 to DNN2-9 performs an inference process for the input divided images G1-1, G1-5 to infer the probability of each class of object appearing in the image ((6) in FIG. 1). Then, on the cloud side, after performing a predetermined post-processing, the inference results of each of 2-1 to DNN2-9 are integrated ((7) in FIG. 1) and output as the processing result of the image G1, which is the processing data. The number of 2-1 to DNN2-9 on the cloud side is one example, and the number may be set according to the number of input divided images.
[0019] In this manner, the processing system according to the embodiment divides an image to be processed in an edge device, executes processes including inference processing in parallel for each divided image, and transmits only divided images that satisfy a predetermined condition to the cloud side. Therefore, in this embodiment, it is possible to reduce the amount of data transferred from the edge device to the server device compared to the case where the entire image to be processed is transmitted. Furthermore, the server device performs inference processing only on the transmitted divided images. Therefore, in the processing system according to the embodiment, it is possible to reduce the computational load on the server device compared to the case where inference processing is performed on the entire image to be processed.
[0020] [Lightweight and high-precision models] Next, DNN1 and DNN2 will be described. FIG. 2 is a diagram for explaining an example of DNN1 and DNN2. A DNN has an input layer into which data is input, a number of intermediate layers that convert data input from the input layer in various ways, and an output layer that outputs so-called inference results such as probability and likelihood. It may also be configured to output the above-mentioned confidence. The output value of the intermediate layer that is to be the output value sent to the cloud may be non-reversible if the input data needs to be kept anonymous.
[0021] As shown in Fig. 2, the processing system may use independent DNN1a and DNN2a as DNN1-1 to DNN1-9 and DNN2-1 to DNN2-9, respectively. For example, after DNN2a is trained by a known method, DNN1a may be trained using the learning data used in training DNN2a. Note that there is no limit to the number of DNN1-..., DNN2-... as long as it is 1 or more.
[0022] The same task with different accuracy and performance may be assigned to DNN1a and DNN2a, or different tasks consisting of a low-computational-amount model and a high-computational-amount model may be assigned to DNN1a and DNN2a instead of a light-weight model and a high-precision model. For example, a low-computational-amount model may detect a moving object, and a high-computational-amount model may recognize an object. DNN1-1 to DNN1-9 may learn for each divided region, or may be a common DNN. DNN1-1 to DNN1-9 may perform moving object detection together with object recognition.
[0023] [Processing system] Next, the configuration of the processing system will be described with reference to Fig. 3. Fig. 3 is a diagram showing a schematic configuration of a processing system according to an embodiment.
[0024] The processing system 100 according to the embodiment includes a server device 20 and an edge device 30. The server device 20 and the edge device 30 are connected via a network N. The network N is, for example, the Internet. For example, the server device 20 is a server provided in a cloud environment. The edge device 30 is, for example, an IoT device and various terminal devices.
[0025] The server device 20 and the edge device 30 are realized by loading a predetermined program into a computer or the like including a ROM (Read Only Memory), a RAM (Random Access Memory), a CPU (Central Processing Unit), etc., and the CPU executes the predetermined program. Also, so-called accelerators such as a GPU, a VPU (Vision Processing Unit), an FPGA (Field Programmable Gate Array), an ASIC (Application Specific Integrated Circuit), or a dedicated AI (Artificial Intelligence) chip are also used. The server device 20 and the edge device 30 each have a NIC (Network Interface Card) or the like, and can communicate with other devices via electric communication lines such as a LAN (Local Area Network) or the Internet.
[0026] As shown in Fig. 3, the server device 20 has a decoding unit 21 having a plurality of decoders, an inference unit 22 (second inference unit) that performs inference using a plurality of DNN2-1 to DNN2-9 that are trained high-precision models, and an integration unit 23. The DNN2-1 to DNN2-9 include information such as model parameters. Note that the number of DNN2-1 to DNN2-9 is an example, and the number may be set according to the number of input divided images.
[0027] The decoding unit 21 has a first decoder 21-1 and a second decoder 21-2. The first decoder 21-1 and the second decoder 21-2 receive the divided image transmitted from the edge device 30 and perform a decoding process. The number of the first decoder 21-1 and the second decoder 21-2 in the decoding unit 21 is an example, and in the case of a minimum configuration, the number of decoders 21 in the inference unit 22 is one. Here, the minimum configuration of the entire system will also be described. The minimum configuration is one for each of the DNN1, the encoder, the decoder, and the DNN2. In addition, the number of each component may be variable. For example, the number of DNN1 may be 2, the number of encoders may be 4, and the others may be 1, so that the system may be designed asymmetrically.
[0028] The inference unit 22 uses the DNN2 to execute inference processing on the divided image output from the edge device 30. The inference unit 22 uses each divided image output from the edge device 30 as input for DNN2-1 to DNN2-9. The inference unit 22 obtains inference results (for example, the probability of each class of object appearing in the image and the presence or absence of a moving object compared with previous and next images) as outputs of the DNN2-1 to DNN2-9. The inference unit 22 accepts input of inference data and outputs the inference results. Each divided image is assumed to be data with an unknown label. In addition, when the inference results are returned to the user, the inference results obtained by the inference unit 22 may be transmitted to the edge device 30 and returned from the edge device 30 to the user. In the case of a minimum configuration, the number of DNN2s that the inference unit 22 has is one.
[0029] The integration unit 23 integrates the inference results for each divided image by the inference unit 22, and outputs the integrated inference result as a processing result for the image, which is the processing data.
[0030] Here, the server device 20 and the edge device 30 constitute a model cascade. The model cascade is intended to use two or more independent models connected in a layered manner (two layers or multiple layers). For this reason, the inference unit 22 does not always perform inference. The inference unit 22 accepts input of a segmented image for which it has been determined in the edge device 30 that the server device 20 should execute the inference process, and performs inference using DNN2.
[0031] The edge device 30 includes a division unit 31, an inference unit 32 (first inference unit) having trained lightweight models DNN1-1 to DNN1-N (N is a natural number), a determination unit 33, and an encoding unit .
[0032] The division unit 31 divides the processing data. The division unit 31 divides the image to be processed. The size of the divided parts and the number of divisions are set according to the resources of the edge device 30 and the server device 20 and the transmission capacity of the transmission path between the edge device 30 and the server device 20.
[0033] The inference unit 32 performs inference using a plurality of DNN1-1 to DNN1-N, which are trained lightweight models. The inference unit 32 inputs the divided data divided by the division unit 31 to the corresponding DNNs among the plurality of DNN1-1 to DNN1-N, respectively, and executes inference in each of the DNN1-1 to DNN1-N. Note that the number of DNN1 in the edge device 30 is an example, and the divided images may be processed in order using DNN1 less than the number of divisions.
[0034] DNN1-1 to DNN1-N perform object recognition to infer the probability of each class of an object appearing in an image. Furthermore, DNN1-1 to DNN1-N may perform moving object detection in addition to object recognition. Also, DNN1-1 to DNN1-N may perform only moving object detection.
[0035] In addition, the inference unit 32 may use a further lightweight model to perform moving object detection. For example, as a lightweight model, there is a model that performs moving object detection using encoded data included in the data obtained by encoding an image. Specifically, there is a model that determines whether or not moving object detection is performed according to the ratio of intra-coded blocks and inter-coded blocks in a divided area, and a model that performs moving object detection based on the ratio of the code amount with other areas. In addition, there is a model that determines whether or not there is a change between corresponding areas in two images captured at approximately the same position in real space based on the code amount between these areas, and a model that obtains the presence or absence of a subject's movement based on the motion vector between two still images.
[0036] The inference unit 32 inputs the divided images divided by the division unit 31 to the corresponding DNN1-1 to DNN1-N among the DNN1-1 to DNN1-N, respectively, and causes each of the DNN1-1 to DNN1-N to execute object recognition. Furthermore, the inference unit 32 may cause the DNN1-1 to DNN1-N to execute moving object detection. The inference unit 32 outputs inference results for multiple images (for example, object recognition results, or object recognition results and moving object detection).
[0037] The determination unit 33 outputs only the divided data determined to have an inference result in each of the DNN1-1 to DNN1-N matched with a predetermined result among the plurality of divided data to the server device 20. The determination unit 33 has a first determination unit 33-1 to an N-th determination unit 33-N that outputs a divided image determined to include at least a predetermined subject in each of the DNN1-1 to DNN1-N among the plurality of divided images to the server device 20 and determines to cause the server device 20 to execute processing related to the inference data (inference processing). The number of the first determination units 33-1 to the N-th determination units 33-N is an example, and may be the same as the number of DNN1-1 to DNN1-N that the inference unit 32 has so that parallel processing can be executed on the divided images.
[0038] Then, the first judgment unit 33-1 to the Nth judgment unit 33-N may select segmented images that include a predetermined object and have a certainty factor for the object recognition result for the segmented image equal to or greater than a predetermined threshold, and output the segmented images to the server device 20. The certainty factor is a degree of likelihood that the object recognition result by each of the DNN1-1 to DNN1-N is correct. For example, the certainty factor may be a probability for each class of object appearing in each segmented image output by each of the DNN1-1 to DNN1-N.
[0039] Furthermore, the first judgment unit 33-1 to the Nth judgment unit 33-N may each select a divided image that includes a predetermined subject and in which a moving object has been detected, and output the divided image to the server device 20. Alternatively, the first judgment unit 33-1 to the Nth judgment unit 33-N each select a divided image that includes a predetermined subject and in which a moving object has been detected, and in which the confidence level for the result of object recognition for the divided image is equal to or higher than a predetermined threshold, and output the divided image to the server device 20. Note that, when there is no divided image that includes the predetermined subject, the judgment unit 33 outputs the inference result inferred by the inference unit 32.
[0040] The encoding unit 34 has a first encoder 34-1 to an N-th encoder, and quantizes each divided image determined by the first determination unit 33-1 to the N-th determination unit 33-N to be output to the server device 20, performs encoding processing for encoding for communication, and outputs the image to the server device 20. The number of the first encoders 34-1 to the N-th encoders is an example, and may be the same as the number of DNN1-1 to DNN1-N that the inference unit 32 has so that parallel processing can be performed on the divided images, or may be configured to process the divided images in order using encoders fewer than the number of divisions.
[0041] Here, the encoding unit 34 may encode each divided image determined to be transmitted to the server device 20, or may combine the divided images and encode them as a single image. To make the resolution the same as the original image, the encoding unit 34 may convert the divided images determined not to be transmitted to the server device 20 into a single color such as black. At this time, the encoding unit 34 may rearrange the divided images determined to be transmitted to the server device 20 in a position different from that of the original image, and encode them as a single image, so as to improve the encoding efficiency. Specifically, the encoding unit 34 rearranges the divided images determined to be transmitted to the server device 20 so that they are adjacent to each other.
[0042] [Processing in edge devices] Fig. 4 is a flowchart showing the flow of processing executed by the edge device 30 shown in Fig. 3. As shown in Fig. 4, first, when the edge device 30 receives an input of an image to be processed (for example, image G) (step S1), the division unit 31 divides the image to be processed into divided images G-1 to GN and distributes them to DNN1-1 to DNN1-N (step S2).
[0043] In the inference unit 32, the distributed divided images G-1 to GN are input to the DNN1-1 to DNN1-N, respectively (steps S3-1 to S3-N), and object recognition, or object recognition and moving object detection are performed (steps S4-1 to S4-N).
[0044] The first judgment unit 33-1 to the Nth judgment unit 33-N judge, for each of the divided images G-1 to GN, whether or not a predetermined subject is included, or whether or not the predetermined subject is included and a moving object is detected (steps S5-1 to S5-N).
[0045] If it is determined that the image includes a predetermined object, or that the image includes a predetermined object and a moving object has been detected (steps S5-1 to S5-N: Yes), the first to N-th determination units 33-1 to 33-N acquire confidence levels for the object recognition results for the divided images G-1 to GN (steps S7-1 to S7-N). Then, the first to N-th determination units 33-1 to 33-N determine whether the confidence levels are equal to or greater than a predetermined threshold (steps S8-1 to S8-N).
[0046] If it is determined that the certainty is equal to or greater than a predetermined threshold (steps S8-1 to S8-N: Yes), the encoding unit 34 quantizes each of the divided images G-1 to GN for which the certainty is determined to be equal to or greater than the predetermined threshold, and then performs encoding processing for communication (steps S9-1 to S9-N) and transmits them to the server device 20 (steps S10-1 to S10-N).
[0047] When the first judgment unit 33-1 to the Nth judgment unit 33-N judge that the image does not include the predetermined object, or when the image includes the predetermined object but no moving object is detected, that is, the predetermined object is captured but is not moving (steps S5-1 to S5-N: No), or when the confidence level is not equal to or higher than a predetermined threshold (steps S8-1 to S8-N: No), the first judgment unit 33-1 to the Nth judgment unit 33-N judge that the divided image does not need to be transmitted (steps S6-1 to S6-N). When the judgment unit 33 judges that all divided images do not need to be transmitted (step S11: Yes), it outputs the inference result inferred by the inference unit 32 (step S12). When the judgment unit 33 judges that all divided images do not need to be transmitted (step S11: No), it ends the process for the image G to be processed.
[0048] [Processing on the server device] Fig. 5 is a flowchart showing the flow of processing executed by the server device 20 shown in Fig. 3. As shown in Fig. 5, when the server device 20 receives input of the divided images Gi, Gj transmitted from the edge device 30 (steps S21-1, S21-2), the first decoder 21-1 and the second decoder 21-2 perform decoding processing on the divided images Gi, Gj, respectively (steps S22-1, S22-2).
[0049] Then, in the inference unit 22, the divided images Gi, Gj output from the edge device 30 are input to the DNN2-1 to DNN2-9, and inference processing is performed on the divided images Gi, Gj, respectively (steps S23-1, S23-2).
[0050] The integration unit 23 integrates the inference results for the divided images Gi and Gj (step S24), and outputs the integrated inference result as a processing result for the image, which is the processing data (step S25).
[0051] [Effects of the embodiment] In the processing system according to the embodiment, the edge device 30 executes each process including the inference process for each divided image obtained by dividing the processing image in parallel, and transmits only the divided images that satisfy a predetermined condition to the server device 20. Therefore, in the present embodiment, it is possible to reduce the amount of data transferred from the edge device 30 to the server device 20 compared to the case where the entire image to be processed is transmitted to the server device. In addition, the server device 20 performs the inference process only for the transmitted divided images. Therefore, in the processing system according to the embodiment, it is possible to reduce the computation load on the server device 20 compared to the case where the inference process is performed for the entire image to be processed. In addition, in a model such as YOLO that is widely used, the maximum resolution of the input image may be determined. When such a model is selected as the DNN1-1 to DNN1-N to be placed in the edge device, the target image is input to the DNN1-1 to DNN1-N for each divided image, so that the information contained in the image can be used for inference without degrading the information. It goes without saying that the size of the division should be a size that satisfies the target, for example, depending on the target of object recognition or event detection.
[0052] Furthermore, in the embodiment, the edge device 30 selects, from among the multiple segmented images, segmented images that include a predetermined subject and have a degree of confidence in the subject recognition for the segmented images that is equal to or greater than a predetermined threshold, and outputs the segmented images to the server device 20. Alternatively, the edge device 30 selects, from among the multiple segmented images, segmented images that include a predetermined subject, have a moving object detected, and have a degree of confidence in the result of subject recognition for the segmented images that is equal to or greater than a predetermined threshold, and outputs the segmented images to the server device 20. Therefore, in the embodiment, only segmented images that are considered to require highly accurate inference processing can be transmitted from the edge device 30 to the server device 20.
[0053] In addition, the server device 20 integrates the inference results for each divided image by the inference unit 22 and outputs the integrated inference result as the inference result for the single image to be processed, so that the user can accurately recognize the inference result for the image to be processed.
[0054] If one subject is shown in a divided image, the edge device 30 may attach the classification result to the bounding box of the subject and transmit it to the downstream server device 20. The subject's bounding box refers to the area in the divided image in which the subject is shown. If one subject is shown in a divided image, the edge device 30 may cut out the target portion in which the subject is shown, attach the classification result to the cut-out partial image, and transmit it to the downstream server device 20.
[0055] Furthermore, when a plurality of different subjects are captured in a divided image, the edge device 30 may attach a classification result to the bounding box of each subject and transmit all the results to the downstream server device 20. When a plurality of different subjects are captured in a divided image, the edge device 30 may cut out the target portion in which each subject is captured, divide the image, and transmit the divided image separately to the downstream server device 20.
[0056] Furthermore, when a plurality of various subjects are shown in a segmented image, the edge device 30 may attach a classification result to a bounding box of a subject belonging to a specific classification, and transmit each of the bounding boxes to the downstream server device 20. When a plurality of various subjects are shown in a segmented image, the edge device 30 may cut out the target portion in which each subject is shown, divide the image, and transmit the divided images separately to the downstream server device 20. Furthermore, the edge device 30 may select a segmented image in which a subject of a specific classification is shown, and transmit the selected divided image to the downstream server device 20. For example, when an image includes a person and a dog, the edge device 30 may transmit a segmented image in which only the person is shown to the downstream server device 20.
[0057] [Variation 1] In the embodiment, the processing data is one image, but the processing data may be a plurality of images captured in time series (time-series images). Fig. 6 is a diagram for explaining an outline of a processing method of the processing system according to the first modification of the embodiment.
[0058] As shown in FIG. 6, when images Gt11 to Gt13, which are time-series images, are input as processing data, the edge device 30 distributes each of the images Gt11 to Gt13 to DNN1t-1 to DNN1t-3, respectively, and causes the DNN1t-1 to DNN1t-3 to perform object recognition and moving object detection ((1) in FIG. 6). Note that the number of DNN1t-1 to DNN1t-3 is an example, and is set according to the resources of the edge device 30, etc. The DNN1t-1 to DNN1t-3 may be one common DNN. Furthermore, the DNN1t-1 to DNN1t-3 may be the same DNN as the DNN1-1 to DNN1-N, or may be different DNNs. Furthermore, each of the DNN1t-1 to DNN1t-3 may omit moving object detection.
[0059] Next, the edge device 30 selects images Gt11 and Gt12 that include a predetermined object and have been detected as a moving object from among the DNN1t-1 to DNN1t-3. Next, the edge device 30 determines that the images Gt11 and Gt12, for which the confidence level of the object recognition result for the images is equal to or higher than a predetermined threshold, are to be transmitted ((2) in FIG. 6).
[0060] Then, the edge device 30 performs encoding processing on the selected images Gt11, Gt12 for each image Gt11, Gt12, and transmits them to the cloud (server device 20) ((3) in FIG. 6). In this modified example 1, the edge device 30 can omit the division unit 31 shown in FIG. 3. In addition, when each of the DNN1t-1 to DNN1t-3 omits moving object detection, the edge device 30 may select, as an image to be transmitted, an image that includes a predetermined subject and has a certainty level equal to or higher than a predetermined threshold.
[0061] Then, when the server device 20 on the cloud side receives the images Gt11 and Gt12 output from the edge device 30, it decodes each of the images Gt11 and Gt12 ((4) in FIG. 6) and inputs them to the DNN2-1 to DNN2-9, respectively. In the server device 20, each of the DNN2-1 to DNN2-9 performs an inference process for the input images Gt11 and Gt12 to infer the probability of each class of the object appearing in the image ((5) in FIG. 6). Then, the server device 20 outputs the inference results of each of the DNN2-1 to DNN2-9 after performing a predetermined post-processing. Note that in this modified example 1, the server device 20 can omit the integration unit 23 shown in FIG. 3.
[0062] In this way, even if the processing data is a plurality of images captured in chronological order, the edge device 30 selects from the plurality of images only those images that require highly accurate inference processing and transmits them to the server device 20, thereby achieving the same effect as the embodiment.
[0063] [Variation 2] In addition, the processing system may select some images from multiple images captured in chronological order, divide the selected images, select divided images that require high-precision inference processing, and transmit only the selected divided images to the server device.
[0064] Fig. 7 is a diagram for explaining an outline of a processing method in an edge device of a processing system according to a second modification of the embodiment. Fig. 8 is a diagram for illustrating an example of a configuration of a processing system according to a second modification of the embodiment.
[0065] As shown in Figures 7 and 8, in a processing system 100B relating to the second variant of the embodiment, when a group of input images (e.g., images Gt11 to Gt13), which are time-series images, are input as processing data to an edge device 30B, an inference unit 32B distributes each image to DNN1t-1 to DNN1t-M (M is a natural number), respectively, and causes DNN1t-1 to DNN1t-M to perform subject recognition and moving object detection ((1) of Figure 7).
[0066] Next, in the judgment unit 33B, the first judgment unit 33-1 to the Mth judgment unit 33-M select images (for example, images Gt11, Gt12) that include a predetermined subject and have been detected as a moving object based on the inference results of the DNN1t-1 to DNN1t-M. Then, the first judgment unit 33-1 to the Mth judgment unit 33-M (for example, the first judgment unit 33-1, the second judgment unit 33-2) judge whether the confidence of the images Gt11, Gt12 is equal to or higher than a predetermined threshold, and select an image to be transmitted (for example, image Gt11) ((2) in FIG. 7). Note that each of the DNN1t-1 to DNN1t-M can omit the moving object detection. When each of the DNN1t-1 to DNN1t-M omits moving object detection, the first judgment unit 33-1 to the Mth judgment unit 33-M may select, as an image to be transmitted, an image that includes a predetermined subject and has a certainty level equal to or higher than a predetermined threshold value.
[0067] Then, in the edge device, the division unit 31 divides this image Gt11 into, for example, nine equal parts, and distributes the divided images Gt11-1 to Gt11-9 to the DNN1-1 to DNN1-N (for example, DNN1-1 to DNN1-9) of the inference unit 32, respectively ((3) in FIG. 7).
[0068] Next, each of DNN1-1 to DNN1-N performs object recognition and moving object detection on the input divided images (for example, divided images Gt11-1 to Gt11-9) to infer the probability of each class of objects appearing in the image ((4) in FIG. 7).
[0069] In the judgment unit 33, the first judgment unit 33-1 to the Nth judgment unit 33-N select divided images (e.g., divided images Gt11-1, Gt11-5) that include a specified subject and have been detected as a moving object based on the inference results of DNN1-1 to DNN1-N, and obtain the confidence levels of these divided images G1-1, G1-5.
[0070] Next, the first judgment unit 33-1 to the Nth judgment unit 33-N judge that the divided images Gt11-1, Gt11-5, whose certainty is equal to or greater than a predetermined threshold, are to be transmitted ((5) in FIG. 7). The encoding unit 34 quantizes the divided images Gt11-1, Gt11-5, performs encoding processing, and transmits them to the cloud (server device 20) ((6) in FIG. 7). Each of the DNN1-1 to DNN1-N may omit moving object detection. When each of the DNN1-1 to DNN1-N omits moving object detection, the first judgment unit 33-1 to the Nth judgment unit 33-N may select, as the divided images to be transmitted, the divided images that include a predetermined subject and whose certainty is equal to or greater than a predetermined threshold.
[0071] Thus, in the second variant of the embodiment, in the edge device 30B, the inference unit 32B inputs a plurality of images taken in time series to each of the DNN1t-1 to DNN1t-M to perform subject recognition, and the judgment unit 33B selects from the plurality of images an image that is recognized in each of the DNN1t-1 to DNN1t-M as including at least a predetermined subject.
[0072] Then, in the edge device 30B, the division unit 31 divides the image selected by the determination unit 33B, and the inference unit 32 inputs the divided images to the corresponding DNN1 among the DNN1-1 to DNN1-N, respectively, and executes object recognition in each of the DNN1-1 to DNN1-N. Next, in the edge device 30B, the determination unit 33 outputs to the server device 20 the divided images that are determined to include at least a predetermined object in each of the DNN1-1 to DNN1-N and have a certainty level equal to or higher than a predetermined threshold value among the divided images.
[0073] As described above, the edge device 30B may select only those images that require high-precision inference processing from a plurality of images, and then further divide the selected images to select divided images that require high-precision inference processing, and transmit only the selected divided images to the server device 20, thereby further reducing the amount of data transfer and the computational load on the server device 20.
[0074] [Variation 3] A method for further reducing the amount of data transfer and the overall computational load is shown below. In the following, inference is described as being performed using DNN1, but inference may be performed using any of DNN1-1 to DNN1-N. Assume that a moving object is detected as a result of inference using DNN1-1 at a certain time point T. If a subject is detected at time point Tn···T-1 within an area that is wider than the bounding box corresponding to this moving object and is a part of the image but not the entire image, it may be inferred that the moving object detected at time point T is the subject detected at time point Tn··T-1.
[0075] Similar inference may be performed on the segmented images transmitted to the DNN 2 as moving objects. Furthermore, if the above regions represent substantially the same space in real space, similar inference may be performed on the segmented images transmitted from multiple DNNs 1-k (1≦k≦N).
[0076] In this embodiment, the edge devices 30, 30B or the server device 20 may be multiple, and both the edge devices 30, 30B and the server device 20 may be multiple.
[0077] Further, in this embodiment, an example of processing an image has been described, but the present invention is not limited to this, and the processed data may be the detection result of a sensor, etc., and the inference unit 32 and the inference unit 22 may perform object detection, for example, to detect the presence or absence of a specified object.
[0078] [System configuration, etc.] Each component of each device shown in the figure is a functional concept, and does not necessarily have to be physically configured as shown in the figure. In other words, the specific form of distribution and integration of each device is not limited to that shown in the figure, and all or a part of it can be functionally or physically distributed and integrated in any unit according to various loads, usage conditions, etc. Furthermore, each processing function performed by each device can be realized in whole or in any part by a CPU and a program analyzed and executed by the CPU, or can be realized as hardware using wired logic.
[0079] Furthermore, among the processes described in this embodiment, all or part of the processes described as being performed automatically can be performed manually, or all or part of the processes described as being performed manually can be performed automatically by a known method. In addition, the information including the processing procedures, control procedures, specific names, various data and parameters shown in the above documents and drawings can be changed arbitrarily unless otherwise specified.
[0080] [program] 9 is a diagram showing an example of a computer in which the edge devices 30, 30B and the server device 20 are realized by executing a program. The computer 1000 has, for example, a memory 1010 and a CPU 1020. The computer 1000 may also have the accelerator described above to assist in calculations. The computer 1000 also has 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.
[0081] 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 1090. The disk drive interface 1040 is connected to a disk drive 1100. A removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1100. The serial port interface 1050 is connected to a mouse 1110 and a keyboard 1120, for example. The video adapter 1060 is connected to a display 1130, for example.
[0082] The hard disk drive 1090 stores, for example, an OS (Operating System) 1091, an application program 1092, a program module 1093, and program data 1094. That is, the programs that define the processes of the edge devices 30, 30B and the server device 20 are implemented as program modules 1093 in which computer-executable codes are written. The program modules 1093 are stored, for example, in the hard disk drive 1090. For example, the program modules 1093 for executing processes similar to the functional configurations in the edge devices 30, 30B and the server device 20 are stored in the hard disk drive 1090. The hard disk drive 1090 may be replaced by an SSD (Solid State Drive).
[0083] Furthermore, setting data used in the processing of the above-described embodiment is stored as program data 1094, for example, in the memory 1010 or the hard disk drive 1090. Then, the CPU 1020 reads out the program module 1093 or the program data 1094 stored in the memory 1010 or the hard disk drive 1090 into the RAM 1012 as necessary, and executes them.
[0084] Note that the program module 1093 and the program data 1094 are not limited to being stored in the hard disk drive 1090, but may be stored in, for example, a removable storage medium and read by the CPU 1020 via the disk drive 1100 or the like. Alternatively, the program module 1093 and the program data 1094 may be stored in another computer connected via a network (such as a local area network (LAN) or wide area network (WAN)). The program module 1093 and the program data 1094 may then be read by the CPU 1020 from the other computer via the network interface 1070.
[0085] Although the embodiments of the present invention have been described above, the present invention is not limited by the descriptions and drawings that form part of the disclosure of the present invention according to the present embodiments. In other words, other embodiments, examples, and operation techniques made by those skilled in the art based on the present embodiments are all included in the scope of the present invention. [Explanation of symbols]
[0086] 20 Server device 21 Decoding section 22,32,32B Inference part 23 Integration Department 30 Edge Device 31 Split part 33,33B Judgment part 34 Encoding section 100,100B Processing System
Claims
1. a first inference unit that inputs the divided data obtained by dividing the processing data into a plurality of pieces to corresponding first models among a plurality of first models, and executes inference in each of the first models; a determination unit that outputs to a server device only the divided data for which it has been determined that an inference result in each first model matches a predetermined result, among the plurality of divided data; An edge device comprising:
2. the first inference unit inputs the divided data into corresponding first models among the plurality of first models, and executes object detection in each of the first models; The edge device according to claim 1 , wherein the determination unit outputs to the server device, among the plurality of pieces of divided data, the divided data determined to include at least a predetermined object in each first model.
3. The edge device described in claim 2, characterized in that the determination unit outputs to the server device, among the multiple divided data, the divided data that includes the specified object and has a certainty factor, which is the degree of likelihood that the result of the object detection by the first model is correct, that is equal to or greater than a specified threshold.
4. The first inference unit performs object detection and moving object detection on the divided data, 4. The edge device according to claim 2, wherein the determination unit outputs to the server device, among the plurality of divided data, divided data that includes the predetermined object and for which a moving object has been detected.
5. the processing data is one image, the first inference unit inputs a plurality of divided images obtained by dividing the single image into corresponding first models among the plurality of first models, and executes object recognition in each of the first models; The edge device according to any one of claims 2 to 4, characterized in that the judgment unit outputs to the server device, among the plurality of divided images, the divided images that are judged to include at least a specified subject in each first model.
6. the processed data is a plurality of images captured in a time series; the first inference unit inputs each of the plurality of images to a corresponding first model among the plurality of first models, and executes object recognition in each first model; The edge device according to any one of claims 2 to 4, characterized in that the determination unit outputs to the server device, among the plurality of images, the images that are determined to include at least a specified subject in each first model.
7. the processed data is a plurality of images captured in a time series; the first inference unit inputs each of the plurality of images to a corresponding first model among the plurality of first models, and executes object recognition in each first model; The determination unit selects, from the plurality of images, an image that is recognized to include at least a predetermined subject in each first model; the first inference unit inputs a plurality of divided images obtained by dividing the image selected by the determination unit into corresponding first models among the plurality of first models, and executes object recognition in each of the first models; The edge device according to any one of claims 2 to 4, characterized in that the judgment unit outputs to the server device, among the plurality of divided images, those divided images that are judged to include at least a specified subject in each first model.
8. a plurality of encoding units that encode each of the divided data items determined by the determination unit to be output to the server device, and output the encoded data items to the server device; 8. The edge device according to claim 2, further comprising:
9. A processing method executed by an edge device, comprising: a first inference step of inputting the divided data obtained by dividing the processing data into a plurality of pieces to corresponding first models among a plurality of first models, and executing inference in each of the first models; a determination step of outputting only the divided data among the plurality of divided data, the divided data being determined to have an inference result in each first model matching a predetermined result; A processing method comprising the steps of:
10. A processing program for causing a computer to execute the method, Computers as edge devices a first inference step of inputting the divided data obtained by dividing the processing data into a plurality of pieces into corresponding first models among a plurality of first models, and executing inference in each of the first models; a determining step of outputting only the divided data among the plurality of divided data, the divided data being determined to have an inference result in each first model matching a predetermined result; A processing program characterized by executing the above.
Citation Information
Patent Citations
Image transmitter and neural network
JP2001005967A
Systems and methods for low-power, real-time object detection
WO2020000383A1
