Information processing device and information processing method

The learning technique generates a tolerance map and weights error maps to differentiate acceptable and erroneous detections, enhancing object detection accuracy and reducing false positives in imaging systems.

JP7550615B2Active Publication Date: 2024-09-13CANON KK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2020191892
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-11-18
Publication Date
2024-09-13
Estimated Expiration
2040-11-18

AI Technical Summary

Technical Problem

Existing deep learning methods for object detection, such as those using CNNs, fail to distinguish between slight deviations of the detection position from the object center, which is acceptable, and erroneous detections outside the object, leading to focus misalignment.

Method used

A learning technique that includes generating a tolerance map representing permissible detection areas and weighting error maps to differentiate between acceptable and erroneous detections, updating the learning model's coefficients based on these maps to improve detection accuracy.

Benefits of technology

Enhances the ability to accurately detect the center of objects by considering permissible areas, reducing false positives and improving focus precision in imaging systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007550615000013
    Figure 0007550615000013
  • Figure 0007550615000015
    Figure 0007550615000015
  • Figure 0007550615000009
    Figure 0007550615000009
Patent Text Reader

Abstract

To provide a learning technique for preferentially reducing erroneous detection.SOLUTION: A first map indicating a region of a detection target in an image is obtained. A second map indicating an inference region which is output from a learning model to which an image is input, and in which the detection target is inferred to be positioned in the image, is obtained. A third map indicating an allowance region allowed as the position of the detection target in the image is obtained. A fourth map in which, in an error map indicating an error between the first map and the second map, the outside of the allowance region is weighted by a weight value that is larger than that for the allowance region, is obtained. A weight coefficient of the learning model is updated on the basis of the fourth map.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a learning technique for a learning model. [Background technology]

[0002] In order to automatically focus an imaging device on a subject (autofocus), it is common to detect a subject in an image. For example, when a person is the subject, face detection, head detection, torso detection, etc. are performed.

[0003] In autofocus using object detection, it is desirable to detect the center of the object as accurately as possible and focus on the detected center. However, even if the detection position is slightly off the center of the object, if the detection position is on the object to be detected, it is often acceptable because the depth of the object is close to the center of the object. On the other hand, if the detection position is included in the background area other than the object to be detected, it becomes problematic because the focus is set to a different depth from the object.

[0004] In recent years, a number of deep learning methods that utilize Convolutional Neural Networks (CNNs) have been developed as technologies for detecting object regions.

[0005] On the other hand, Patent Document 1 discloses an approach to suppressing false positives in object detection. The technology described in Patent Document 1 discloses a learning method for object detection that has a main task and a subtask, each of which learns a different detection target. The aim is to suppress false positives in the main task by creating a false positive map in the main task within the learning image and weighting the loss of the subtask using the map. [Prior art documents] [Patent documents]

[0006] [Patent Document 1] JP 2020-91543 A Summary of the Invention [Problem to be solved by the invention]

[0007] In Patent Document 1, detection of a position off the center of an object is treated as a false detection, and as a result, false detection can be suppressed. However, in Patent Document 1, it is not possible to distinguish between a case where the detected position is slightly off the center of the object but on the object, and a false detection outside the object. The present invention provides a technology for detection that takes into account an allowable range for the position of the detection target. [Means for solving the problem]

[0008] One aspect of the present invention is characterized in that it comprises a first acquisition means for acquiring a first map representing a region of a detection target in an image; a second acquisition means for acquiring a second map representing an inference region in which the detection target is inferred to be located in the image, which is output from a learning model to which the image is input; a third acquisition means for acquiring a third map representing an allowable region in the image that is permitted as the position of the detection target; a fourth acquisition means for acquiring a fourth map in an error map representing the error between the first map and the second map, in which areas outside the allowable region are weighted with a greater weight value than areas within the allowable region; and an update means for updating a weighting coefficient in the learning model based on the fourth map. Effect of the Invention

[0009] According to the configuration of the present invention, it is possible to provide a detection technique that takes into account an allowable range for the position of a detection target. [Brief description of the drawings]

[0010] [Figure 1] 1A is a block diagram showing an example of the hardware configuration of an information processing device, and FIG. 1B is a block diagram showing an example of the functional configuration related to learning of a learning model of the information processing device. [Diagram 2] A diagram explaining a general object detection learning method using CNN. [Diagram 3] 1A to 1C are diagrams for explaining a learning method for object detection according to the present embodiment using CNN. [Figure 4] 4 is a flowchart of the learning process of the learning model 119. [Diagram 5] 10 is a flowchart showing details of the process in step S404. [Figure 6] FIG. 11 is a diagram for explaining details of the process in step S404. [Figure 7] 10 is a flowchart showing details of the process in step S406. [Figure 8] 10 is a flowchart showing details of the process in step S407. [Figure 9] 4 is a diagram for explaining a method for generating a tolerance map 116. FIG. [Figure 10] FIG. [Figure 11] FIG. 13 is a diagram showing how a tolerance map 116 is provided and how loss weighting is performed. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.

[0012] [First embodiment] In this embodiment, a case will be described in which a convolutional neural network (CNN) is used as a model for detecting an object from an image. Also, in this embodiment, a case will be described in which the detection target is the "center of a person's torso."

[0013] First, a hardware configuration example of an information processing device according to the present embodiment will be described with reference to the block diagram of Fig. 1(A). The information processing device according to the present embodiment can be a computer device such as a PC (personal computer), a tablet terminal device, or a smartphone.

[0014] The CPU 101 executes various processes using computer programs and data stored in the ROM 102 and the RAM 108. As a result, the CPU 101 controls the operation of the entire information processing device, and executes or controls each process that will be described as being performed by the information processing device.

[0015] The ROM 102 stores setting data of the information processing device, computer programs and data related to the startup of the information processing device, computer programs and data related to the basic operation of the information processing device, etc. Furthermore, the ROM 102 stores each of the functional units, namely, the generation unit 103, the inference unit 104, the generation unit 105, the loss calculation unit 106, and the update unit 107, in the form of a computer program. In the following, each of the functional units, namely, the generation unit 103, the inference unit 104, the generation unit 105, the loss calculation unit 106, and the update unit 107, may be described as the subject of processing. However, in reality, the function of each functional unit is realized by the CPU 101 executing a computer program corresponding to the functional unit.

[0016] RAM 108 has an area for storing computer programs and data loaded from ROM 102 or storage unit 109, and an area for storing data received from the outside via communication unit 112. RAM 108 also has a work area used when CPU 101 executes various processes. In this way, RAM 108 can provide various areas as needed.

[0017] The storage unit 109 is a non-volatile memory such as a hard disk drive or a flash memory. The storage unit 109 stores a learning model and various data used for learning the learning model. Note that some or all of the computer programs and data described above as being stored in the ROM 102 may be stored in the storage unit 109. The storage unit 109 may also be a device that reads and writes computer programs and data from a storage medium such as a CD-ROM or a DVD-ROM, and in that case, the computer programs and data described above as being stored in the storage unit 109 are stored in the storage medium.

[0018] The input unit 110 is a user interface such as a keyboard, a mouse, or a touch panel, and allows the user to input various instructions to the CPU 101 by operating it.

[0019] Display unit 111 is a screen such as a liquid crystal screen or a touch panel screen, and can display the results of processing by CPU 101 as images, characters, etc. Note that display unit 111 may also be a projection device such as a projector that projects images and characters.

[0020] The communication unit 112 is a communication interface for performing data communication with the outside, and a communication interface conforming to various standards can be applied. The information processing device transmits and receives data to and from the outside via the communication unit 112.

[0021] Fig. 1(B) is a block diagram showing an example of a functional configuration related to learning of a learning model of an information processing device according to this embodiment. First, a case where a general object detection learning method using CNN is implemented in the configuration of Fig. 1(B) will be described with reference to Fig. 2.

[0022] The inference unit 104 acquires an input image 113 from the storage unit 109. As shown in FIG. 2, the input image 113 is an image including a person 201. The inference unit 104 then inputs the input image 113 to a learning model 119, and acquires an inference map 117 that the learning model 119 outputs as an inference result for the input image 113. The learning model 119 is a CNN having an input layer, multiple intermediate layers, and an output layer. When the input image 113 is input to the input layer, the multiple intermediate layers and the output layer generate and output an inference map 117 corresponding to the input image 113. Each layer of the CNN holds a weighting coefficient as a learning parameter, and each layer sequentially executes a process of passing the result of weighting the input to the next layer, thereby generating the inference map 117 that is finally output. The inference map 117 is a map that represents the distribution of the existence probability (real value between 0 and 1) of the detection target "center of the torso of the person 201" in the input image 113, and in the inference map 117, the element value of a position inferred to have a higher existence probability is higher, and the element value of a position inferred to have a lower existence probability is lower. In FIG. 2, the inference area 204 is an area in the inference map 117 where the existence probability of the detection target "center of the torso of the person 201" is equal to or higher than a certain value (an area inferred by the CNN to be where the detection target "center of the torso of the person 201" is located). In the following, the inference map 117 is a two-dimensional array having the same resolution as the input image 113, and each element in the two-dimensional array is referred to as a "pixel". At a pixel position of interest in the inference map 117, the existence probability at the pixel position of interest is held as an element value.

[0023] The generating unit 103 acquires the correct answer information 114 from the storage unit 109. The correct answer information 114 is information that represents the pixel position of the detection target "the center of the torso of the person 201" in the input image 113. As shown in FIG. 2, the correct answer information 114 has the same resolution as the input image 113 (the number of vertical pixels and the number of horizontal pixels are the same as the input image 113), and is a binary image in which the pixel value of the corresponding pixel 202 that corresponds to the pixel position of the "center of the torso of the person 201" in the input image 113 is "1", and the pixel values ​​of pixels other than the corresponding pixel 202 are "0". Then, the generating unit 103 generates a copy of the correct answer information 114 as the correct answer map 115. Then, the generation unit 103 updates the pixel value of a pixel at a pixel position closer to the corresponding pixel 202 in the correct answer map 115 to "a real value closer to 1 in the range of real numbers from 0 to 1", and updates the pixel value of a pixel at a pixel position farther from the corresponding pixel 202 in the correct answer map 115 to "a real value closer to 0 in the range of real numbers from 0 to 1". Generally, a distribution with a spread according to a Gaussian distribution is used. The correct answer map 115 in FIG. 2 is the correct answer map 115 after the update. In the correct answer map 115 in FIG. 2, the correct answer region 203 is a region of a pixel group whose pixel values ​​are equal to or greater than a certain value.

[0024] Then, the loss calculation unit 106 calculates the loss based on the inference map 117 and the correct answer map 115. Generally, in an object detection method in which the correct answer is given in the form of a map, the sum of the cross entropy for each pixel is generally used as the loss, as shown in the following formulas (1) and (2).

[0025]

number

[0026]

number

[0027] In formula (1), the cross entropy Ei corresponding to the pixel is calculated by taking the pixel value of the i-th pixel in the correct answer map 115 as yi and the element value of the pixel position corresponding to the pixel in the inference map 117 as pi. In formula (2), the total sum Loss of the cross entropies calculated for all pixels is calculated as the loss.

[0028] Then, the update unit 107 uses a method such as backpropagation based on the loss calculated by the loss calculation unit 106 to update the weight coefficients of each layer in the learning model 119 (CNN), thereby learning the learning model 119. As the learning progresses, the inference map 117 becomes closer to the correct answer map 115.

[0029] Next, a case where the learning method for object detection according to the present embodiment using CNN is implemented in the configuration of FIG. 1(B) will be described with reference to FIG. 3. As in the case of FIG. 2, the inference unit 104 acquires an input image 113 from the storage unit 109, and inputs the input image 113 to a learning model 119 to acquire an inference map 117 output from the learning model 119. As shown in FIG. 3, the inference map 117 includes inference regions 304, 305, and 306, which are regions where the existence probability of the detection target "center of the torso of the person 201" in the input image 113 is equal to or higher than a certain value (regions where the detection target "center of the torso of the person 201" is inferred by the CNN to be located). The inference region 304 is a region near the center of the torso of the person 201, but has a smaller element value (existence probability) than the correct answer region 302 described later. The inference region 305 is located near the waist, although it is away from the center of the torso of the person 201. The inference area 306 is located outside the area of ​​the person 201 and is an area that has been erroneously detected.

[0030] On the other hand, the generating unit 103 obtains the correct answer information 114 of the input image 113 from the storage unit 109, as in the case of FIG. 2, and generates the correct answer map 115 from the correct answer information 114. The correct answer map 115 has a correct answer region 302 as shown in FIG. 3. The generating unit 103 also generates the tolerance map 116 from the input image 113. The tolerance region 303 in the tolerance map 116 is a corresponding region that corresponds to the entire torso region of the person 201 in the input image 113. For example, the tolerance map 116 has the same resolution as the input image 113 (the number of vertical pixels and the number of horizontal pixels are the same as the input image 113), and is a binary image in which the pixel value of the pixel belonging to the tolerance region 303 that corresponds to the "entire torso region of the person 201" in the input image 113 is "1", and the pixel value of the pixel outside the tolerance region 303 is "0". Unlike the correct answer map 115, the tolerance map 116 is not intended to train the inference map 117 to approach the tolerance map 116, but indicates an area that is relatively permissible for detection even if the detection position is off the center of the detection target. A method for generating the tolerance map 116 will be described later.

[0031] The generating unit 105 generates, as the weighting map 118, a map that indicates, as a false detection region 311, the inference region 306 that does not overlap with the tolerance region 303 in the tolerance map 116 among the inference regions 304 to 306 in the inference map 117. Hereinafter, the weighting map 118 is assumed to be a two-dimensional array having the same resolution as the input image 113, and each element in the two-dimensional array is referred to as a "pixel." By using the tolerance map 116, the inference region 305 output near the waist of the person 201 is not treated as a false detection, and only the inference region 306 that is an output outside the person 201 can be treated as a false detection.

[0032] The loss calculation unit 106 obtains an error map 307 that represents an error for each pixel between the inference map 117 and the correct answer map 115. The error map 307 has the same resolution as the input image 113 (the number of vertical pixels and the number of horizontal pixels are the same as the input image 113), and an element value of a pixel of interest in the error map 307 is an error between a pixel value of the pixel of the pixel of interest in the correct answer map 115 and an element value of a corresponding position of the pixel of interest in the inference map 117. The error map 307 includes error regions 308, 309, and 310 that are regions with an error of a certain value or more. The error region 308 is an error region that occurs because the element value of the inference region 304 is smaller than that of the correct answer region 302. The error region 309 and the error region 310 are error regions that occur because the inference region 305 and the inference region 306 are located outside the correct answer region 302, respectively.

[0033] Then, the loss calculation unit 106 generates a copy of the error map 307 as a weighted error map 312, and updates the error of the pixel position of interest in the weighted error map 312 to "the result of multiplying the error by a weight value according to the element value of the pixel position corresponding to the pixel position of interest in the weighting map 118." In the case of Fig. 3, the error regions 313 and 314 belong to the allowable region 303 and are therefore not weighted, but the error region 315 does not belong to the allowable region 303 and is therefore weighted, resulting in a large error. The loss calculation unit 106 then calculates the sum of the errors of each pixel position in the weighted error map 312 as the loss.

[0034] 2 based on the loss calculated by the loss calculation unit 106, the update unit 107 updates the weight coefficients of each layer in the learning model 119 (CNN) to train the learning model 119. As the learning progresses, the inference map 117 becomes closer to the correct answer map 115.

[0035] Next, the learning process of the learning model 119 according to this embodiment will be described with reference to the flowchart in Fig. 4. When performing a new learning process of the learning model 119, the parameters of the learning model 119 are initialized to random values ​​and expanded on the RAM 108. When additional learning is performed on an existing learning model 119, the learning model 119 is read from the storage unit 109 and expanded on the RAM 108.

[0036] In step S401, the inference unit 104 acquires the input image 113 from the storage unit 109. In step S402, the generation unit 103 acquires the correct answer information 114 of the input image 113 from the storage unit 109. In the following, the correct answer information 114 will be described as information representing the pixel positions of the detection targets (the center of the person's torso, the left and right shoulder joints of the person, and the left and right waist joints of the person) in the input image 113. The correct answer information 114 is generally input manually by a person, but may be assigned using another highly accurate learning model.

[0037] In step S403, the generation unit 103 generates a copy of the correct answer information 114 acquired in step S402 as the correct answer map 115. Then, the generation unit 103 updates the pixel value of a pixel at a pixel position closer to a corresponding pixel corresponding to the "center of the person's torso" in the correct answer map 115 to "a real value closer to 1 in the range of real numbers from 0 to 1", and updates the pixel value of a pixel at a pixel position farther from the corresponding pixel to "a real value closer to 0 in the range of real numbers from 0 to 1".

[0038] In step S404, the generation unit 103 uses the positions of "the center of the person's torso, the left and right shoulder joints of the person, and the left and right waist joints of the person" to generate the tolerance map 116 from the input image 113. Details of the process in step S404 will be described later with reference to FIGS.

[0039] In step S405, the inference unit 104 inputs the input image 113 acquired in step S401 to the learning model 119, thereby acquiring the inference map 117 output from the learning model 119.

[0040] In step S406, the generating unit 105 generates, as the weighting map 118, a map indicating, in the inference map 117 acquired in step S405, an inference region that does not overlap with an allowable region in the allowable map 116 as an erroneous detection region. Details of step S406 will be described later with reference to FIG.

[0041] In step S407, the loss calculation unit 106 obtains an error map 307 that indicates the error for each pixel between the inference map 117 and the ground truth map 115, and obtains a weighted error map 312 by weighting the error map 307 with the weighting map 118. The loss calculation unit 106 then calculates the sum of errors at each pixel position in the weighted error map 312 as the loss. Details of the processing in step S407 will be described later with reference to FIG. 8.

[0042] In step S408, the update unit 107 updates the weighting coefficients of each layer in the learning model 119 (CNN) based on the loss calculated by the loss calculation unit 106, thereby learning the learning model 119.

[0043] In step S409, CPU 101 determines whether or not a processing end condition has been satisfied. There are various processing end conditions, and they are not limited to specific end conditions. For example, there are "the number of learning times (the number of times steps S401 to S408 are repeated) is equal to or greater than a specified number," "the time elapsed since the start of learning is equal to or greater than a specified time," "the amount of change in weighting coefficient from the previous time is less than a specified amount," "the user inputs an instruction to end processing by operating input unit 110," "the accuracy of the image is equal to or greater than a specified level," and so on.

[0044] If the result of such a determination is that the end condition of the process is satisfied, the process according to the flowchart of Fig. 4 ends. On the other hand, if the end condition of the process is not satisfied, the process proceeds to step S401.

[0045] Next, the details of the process in step S404 above will be described with reference to the flowchart in Fig. 5. Fig. 6(A) shows the positional relationships of a torso center 601, a right shoulder joint 602, a left shoulder joint 603, a right hip joint 604, and a left hip joint 605, which are defined in the correct answer information 114. Fig. 6(B) to Fig. 6(I) show the process of generating the tolerance map 116.

[0046] First, in step S501, the generation unit 103 calculates the size of the torso of the person in the input image 113. As an example, the size of the torso of the person in the input image 113 can be the distance between the left and right shoulder joints, or the distance between the center of the torso and one of the shoulder joints.

[0047] In step S502, the generating unit 103 calculates a circular area (body circle) with the body center as the center position and the size of the body as the diameter. Fig. 6(B) shows an example of a body circle 606 with the body center 601 as the center position and the size of the body as the diameter.

[0048] Then, the processing of steps S504 to S505 is repeated for the number of shoulder joints and waist joints. In step S504, the generation unit 103 selects one of the unselected joints among the right shoulder joint 602, the left shoulder joint 603, the right waist joint 604, and the left waist joint 605 as a selected joint. Then, the generation unit 103 obtains a line segment that passes through the position of the selected joint and is tangent to the body circle 606, and obtains a tangent point between the line segment and the body circle 606. In Fig. 6(C), the right shoulder joint 602 is selected as the selected joint, and a line segment that passes through the position of the right shoulder joint 602 and is tangent to the body circle 606 is obtained, and tangent points 607, 608 between the line segment and the body circle 606 are obtained.

[0049] In step S505, the generation unit 103 obtains a triangular area having vertices at the position of the selected joint and the positions of the two contact points obtained in step S504. In Fig. 6(C), a triangular area 609 is obtained having vertices at three positions, namely, the position of the right shoulder joint 602, the position of the contact point 607, and the position of the contact point 608.

[0050] A triangular area 610 in Fig. 6(D) is a triangular area obtained when the left shoulder joint 603 is selected as the selected joint. A triangular area 611 in Fig. 6(E) is a triangular area obtained when the right hip joint 604 is selected as the selected joint. A triangular area 612 in Fig. 6(F) is a triangular area obtained when the left hip joint 605 is selected as the selected joint.

[0051] In step S507, the generation unit 103 obtains a triangular region having the positions of the two shoulder joints and the position of the torso center as vertices. The triangular region 613 in Fig. 6(G) is a triangular region having the positions of the left shoulder joint 603, the right shoulder joint 602, and the position of the torso center 601 as vertices.

[0052] In step S508, the generating unit 103 obtains a triangular region having the positions of the two waist joints and the position of the torso center as vertices. The triangular region 614 in Fig. 6(H) is a triangular region having the positions of the left waist joint 605, the right waist joint 604, and the position of the torso center 601 as vertices.

[0053] In step S509, generation unit 103 determines the allowable area to be the area of ​​the body circle found in step S502 (the area of ​​body circle 606 in FIG. 6(B)) and the total area of ​​all the triangular areas found in steps S504 to S508 (the triangular areas shown in FIGS. 6(C) to (H)). Allowable area 615 in FIG. 6(I) is the total area of ​​the body circle and the triangular areas shown in FIGS. 6(B) to (H). Generation unit 103 then generates allowable map 116, which has the same resolution as input image 113, and sets the pixel value of pixels within the area corresponding to the allowable area found in the above process to "1" and the pixel value of pixels outside the area to "0".

[0054] By using this method of generating an tolerance map 116, it is possible to generate a tolerance map 116 having a tolerance area 616 that approximates the area of ​​the person's torso, even for a person who is leaning back, as shown in Figure 6(J).

[0055] Next, details of the process in step S406 above will be described with reference to the flowchart in Fig. 7. In step S701, generation unit 105 initializes the element values ​​of all elements in weighting map 118 to "0". Then, the processes in steps S703 to S705 are performed for all elements in weighting map 118.

[0056] In step S703, generation unit 105 determines whether or not the i-th (1≦i≦M: M is the total number of elements in weighted error map 312) element (element at the i-th pixel position) in weighting map 118 belongs to the allowable region in tolerance map 116. That is, generation unit 105 determines whether or not the pixel value of the pixel position in tolerance map 116 corresponding to the i-th element in weighting map 118 is "1". If the pixel value of the pixel position in tolerance map 116 corresponding to the i-th element in weighting map 118 is "1", it is determined that the i-th element in weighting map 118 belongs to the allowable region. On the other hand, if the pixel value of the pixel position in tolerance map 116 corresponding to the i-th element in weighting map 118 is "0", it is determined that the i-th element in weighting map 118 does not belong to the allowable region.

[0057] If it is determined that the i-th element in weighting map 118 belongs to the allowable region, generating unit 105 increments the value of variable i (initial value is 1) by 1 and performs the process of step S703. On the other hand, if it is determined that the i-th element in weighting map 118 does not belong to the allowable region, the process proceeds to step S704.

[0058] In step S704, the generation unit 105 judges whether the element value V of the element in the inference map 117 corresponding to the i-th element in the weighting map 118 is equal to or greater than a predetermined value. If the element value V is equal to or greater than the predetermined value, the process proceeds to step S705, and if the element value V is less than the predetermined value, the generation unit 105 increments the value of the variable i by 1, and the process proceeds to step S703. In step S705, the generation unit 105 updates the element value of the i-th element in the weighting map 118 to "1".

[0059] Next, the details of the process in step S407 above will be described with reference to the flowchart in Fig. 8. The processes in steps S802 and S803 are performed for each pixel in the inference map 117.

[0060] In step S802, the loss calculation unit 106 selects one of the unselected pixel positions in the inference map 117 as a selected pixel position, and calculates the error between the element value of the selected pixel position in the inference map 117 and the pixel value of the selected pixel position in the ground truth map 115. As the error, for example, the above-mentioned cross entropy is calculated.

[0061] In step S803, the loss calculation unit 106 multiplies the error calculated in step S802 by a weight value corresponding to the element value of the pixel position corresponding to the selected pixel position in the weighting map 118, and sets the result as the element value at the selected pixel position in the weighted error map 312. For example, if the element value of the pixel position corresponding to the selected pixel position in the weighting map 118 is 0, the weight value corresponding to the element value is set to 1 (no change). Also, if the element value of the pixel position corresponding to the selected pixel position in the weighting map 118 is 1, the weight value corresponding to the element value is set to a value greater than 1. This makes it possible to multiply errors in erroneous detection regions outside the allowable region by a weight value that makes the error larger.

[0062] By carrying out the processes of steps S802 and S803 for all pixels in the inference map 117, the weighted error map 312 is completed by weighting the error map 307 using the weighting map 118.

[0063] Then, in step S805, the loss calculation unit 106 calculates, as a loss, the sum of the pixel errors at each pixel position in the weighted error map 312 completed by the above process. For example, the loss may be calculated based on the following formula (3).

[0064]

number

[0065] Ei is the error (cross entropy) of the i-th pixel in the weighted error map 312, wi is the weighting value corresponding to the element value corresponding to the i-th pixel in the weighted error map 118, and α is an arbitrary coefficient.

[0066] In this way, according to this embodiment, in learning the CNN for object detection, it is possible to weight errors in high-priority erroneous detection areas, making it possible to suppress high-priority erroneous detections at an early stage.

[0067] [Second embodiment] In each of the following embodiments including this embodiment, the differences from the first embodiment will be described, and unless otherwise specified below, it is assumed that the embodiments are the same as the first embodiment. In the first embodiment, the tolerance map 116 is generated based on the positions of the joints of the person, but in this embodiment, the tolerance map 116 is generated by a different method.

[0068] A method for generating the tolerance map 116 in this embodiment will be described with reference to Fig. 9. In this embodiment, the generation unit 103 acquires area division information 905 of the input image 113. The method for acquiring the area division information 905 is not limited to a specific acquisition method, and the area division information 905 may be acquired from the storage unit 109 or may be received from the outside via the communication unit 112. The area division information 905 is acquired by a model for performing area division on an image.

[0069] 9(A) shows an input image 113, in which a person 901 is shown as a detection target, and a tree 902 is shown as an object that is not a detection target. Fig. 9(B) shows correct answer information 903 for the input image 113, which indicates a position 904 of the center of the torso of the person 901.

[0070] 9(C) shows region division information 905 corresponding to input image 113, and shows the result of division into region 906 corresponding to person 901, region 907 corresponding to tree 902, and other regions. As an example, region division information 905 is a two-dimensional array having the same resolution as input image 113, with elements belonging to region 906 having an element value of 1, elements belonging to region 907 having an element value of 2, and elements belonging to other regions having an element value of 0.

[0071] Fig. 9(D) shows the tolerance map 116. In this embodiment, of the regions 906 and 907 in the region division information 905, the region including the position 904 in the correct answer information 903, that is, the region 906, is set as the tolerance region, and therefore, as shown in Fig. 9(D), the tolerance map 116 expressing the region 906 as the tolerance region is generated. In this method of generating the tolerance map 116, the entire person to be detected can be set as the tolerance region, and therefore, this method is effective in cases where the hands, feet, head, etc. are not to be treated as erroneous detections.

[0072] The method of generating the tolerance map 116 is not limited to the above-mentioned method, and other methods may be used. For example, when only the position 904 of the torso center is given as the correct answer information 114, the tolerance map 116 may be generated using image features around the position 904 of the torso center. Specifically, a color histogram in a peripheral region (region within a specified distance from the position 904) of the position 904 of the torso center in the input image 113 is created as a "color histogram of the correct answer region." Then, for each pixel in the input image 113, a color histogram of the peripheral region of the pixel may be created, and the peripheral region in which the color histogram has a similarity to the "color histogram of the correct answer region" of a predetermined value or more may be set as the tolerance region. Since clothing is often worn around the position 904 of the torso center, in this method, the region in which the same clothing as the center of the torso is worn can be set as the tolerance region.

[0073] As described above, according to this embodiment, since it is not necessary to provide the joint positions of a person as the correct answer information 114, it is possible to reduce the cost of creating the correct answer information 114. Note that the allowable area may be manually input to create and provide the allowable map 116. In this case, the allowable area can be determined by a person and then specified more accurately as the allowable area.

[0074] [Third embodiment] In the first embodiment, weighting is applied to the false detection area, but in this embodiment, a weighting method is described in which the weight value of the allowable area is lower than the weight value outside the allowable area. The weighting method in this embodiment is described with reference to FIG.

[0075] In this embodiment, a weighting map 118 is generated from the correct answer map 115 and the tolerance map 116. In this embodiment, the weighting map 118 is used to identify an area 1001 that is included in the tolerance area 303 but not included in the correct answer area 302.

[0076] Weighted error map 312 is obtained by weighting error map 307 for each pixel using weighting map 118. In this embodiment, by lowering the weight value for region 1001 in weighting map 118 compared to the weight value for outside region 1001, the weight of the erroneous detection region outside region 1001 is relatively increased. In this example, error region 313 and error region 315 are outside region 1001, so they are not weighted, but error region 314 is within region 1001, so the weight is weakened to reduce the error value.

[0077] Then, the loss calculation unit 106 calculates, as a loss, the sum of the pixel errors at each pixel position in the weighted error map 312 completed by the above process. For example, the loss may be calculated based on the following formula (4).

[0078]

number

[0079] In this embodiment, since the weighting map 118 is generated without using the inference map 117, it is possible to perform the generation process of the weighting map 118 as a pre-processing before learning, thereby shortening the time required for learning.

[0080] [Fourth embodiment] In the first to third embodiments, the area of ​​the torso of the person to be detected is used as the tolerance map 116. In contrast, in this embodiment, an area other than the person to be detected is provided as the tolerance map 116. Fig. 11 shows how the tolerance map 116 is provided and the loss weighting method in this embodiment.

[0081] The input image 113 includes a person 1101 and a background person 1102. The person 1101 is the detection target, while the background person 1102 is not the detection target because of its small size. However, since the background person 1102 has similar characteristics to the detection target, there is a possibility that the detection accuracy will decrease if the background person 1102 is trained not to be detected. Therefore, in this embodiment, an allowable area 1103 corresponding to the center of the torso of the background person 1102 is provided as the allowable map 116, and the allowable area 1103 is treated as an area that may or may not be detected. In this embodiment, the allowable map 116 is provided by being manually input by a person (for example, the user inputs by operating the input unit 110).

[0082] As in the first embodiment, when an input image 113 is input to a learning model 119, an inference map 117 corresponding to the input image 113 is output from the learning model 119. The inference map 117 includes inference regions 1104 to 1106. The inference region 1104 is located near the center of the torso of the person 1101, and the existence probability in the inference region 1104 is smaller than that of the correct answer region 302. The inference region 1105 is located away from both the person 1101 and the background person 1102, and the inference region 1106 is located near the center of the torso of the background person 1102.

[0083] An error map 307 is obtained from the inference map 117 and the super-correction map 115 in the same manner as in the first embodiment. In the error map 307, an error region 1107 is an error that occurs because the existence probability in the inference region 1104 is weaker than that in the super-correction region 302. In the error map 307, an error region 1108 and an error region 1109 are errors that occur because the inference region 1105 and the inference region 1106 are present in positions other than the super-correction region 302, respectively.

[0084] In this embodiment, the weighting map 118 is generated by the generating unit 105 from the correct answer map 115, the inference map 117, and the tolerance map 116. In the weighting map 118, which is a two-dimensional array in which the element values ​​of all elements are initialized to "1", the generating unit 105 sets the element values ​​of elements belonging to the region 1111 corresponding to the tolerance region 1103 to "0", and sets the element values ​​of elements belonging to the region 1110 corresponding to the inference region 1105, which is a false detection region that does not correspond to the correct answer region 302 nor the correct answer region 1103, among the inference regions 1104 to 1106, to "2". "Setting the element values ​​of elements belonging to the region 1111 to "1"" means "setting the region 1111 as an ignored region in which the loss is not calculated". By using such a tolerance map 116, the detection result for the background person 1102 can be ignored.

[0085] As in the first embodiment, the loss calculation unit 106 generates the weighted error map 312 by weighting each pixel of the error map 307 using the weighting map 118, but for the region 1114 corresponding to the region 1111, although it corresponds to the error region 1109, it falls within the above-mentioned ignore region, so as a result of weighting to ignore the error (weighting with a weight value of "0"), the element value (error) in the region 1114 becomes 0. The error region 1112 is outside the range of the region 1110, which is a false detection region, and the region 1111, which is a ignore region, so it is not weighted, but the error region 1113 corresponds to the region 1110, so it is weighted with a larger weight value and the element value (error) becomes large.

[0086] Then, the loss calculation unit 106 calculates, as a loss, the sum of the pixel errors at each pixel position in the weighted error map 312 completed by the above process. For example, the loss may be calculated based on the following formula (5).

[0087]

number

[0088] Here, γ is an arbitrary coefficient. In this manner, according to the present embodiment, even in an image in which background people and the like are reflected in addition to the person to be detected, the background people can be treated as neither a detection target nor a false detection target, and learning can be performed efficiently.

[0089] <Modification> In the above embodiment, the detection target is the center of the torso of a person, but other targets may be detected, for example, other parts of a person (such as the head) or other living things (such as animals). Whatever target (object) is detected, by providing a correct answer map and an acceptable map, learning can be efficiently performed while suppressing fatal erroneous detection, as in the above embodiment.

[0090] Furthermore, the tolerance map need not be a map expressed in two values, 0 and 1, but may be a map with a distribution in which the center of the tolerance area is 1 and the values ​​approach 0 toward the edge. In this case, instead of uniformly not treating the entire tolerance area as a false positive, the degree of false positive may be assigned according to the value of the tolerance map. By not treating parts of the tolerance area with values ​​close to 1 as false positives and treating parts close to 0 as weak false positives, it is possible to vary the strength of the weighting map. With this configuration, detection at the edge of the tolerance area can be relatively suppressed compared to near the center of the tolerance area.

[0091] In addition, in the above embodiment, a weighting map is generated and then weighting is performed, but this is not limiting, and weights may be calculated directly when calculating losses without generating a weighting map.

[0092] Furthermore, each of the functional units, namely the generating unit 103, the inferring unit 104, the generating unit 105, the loss calculating unit 106, and the updating unit 107, may be implemented by hardware. In this case, this hardware may be incorporated as a processing circuit into the computer device, or may be incorporated into an image capturing device that captures moving images or still images, and the incorporation destination is not limited to a specific device. Furthermore, some of these functional units may be implemented by hardware or software.

[0093] In addition, the numerical values, processing timing, processing order, data (information) configuration / destination / source, etc. used in each of the above embodiments are given as examples to provide a concrete explanation, and are not intended to be limited to such examples.

[0094] In addition, some or all of the embodiments and modified examples described above may be used in appropriate combination. In addition, some or all of the embodiments and modified examples described above may be used selectively.

[0095] (Other embodiments) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.

[0096] The invention is not limited to the above-described embodiments, and various modifications and variations are possible without departing from the spirit and scope of the invention. Accordingly, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]

[0097] 101: CPU 102: ROM 103: Generation unit 104: Inference unit 105: Generation unit 106: Loss calculation unit 107: Update unit 108: RAM 109: Storage unit 110: Input unit 111: Display unit 112: Communication unit

Claims

1. a first acquisition means for acquiring a first map representing a region of a detection target in an image; a second acquisition means for acquiring a second map output from a learning model to which the image is input, the second map representing an inference area in which the detection target is inferred to be located in the image; a third acquisition means for acquiring a third map representing an allowable region in the image that is allowable as a position of a detection target; a fourth acquisition means for acquiring a fourth map in which an error map representing an error between the first map and the second map is weighted with a weight value greater than ... an update means for updating a weighting factor in the learning model based on the fourth map; An information processing device comprising:

2. The information processing apparatus according to claim 1 , wherein a position in the first map that corresponds to a position of a detection target in the image is set as a corresponding position, and an element value of a position in the first map that is closer to the corresponding position is larger.

3. 3. The information processing apparatus according to claim 1, wherein the inference area in the second map is an area in the second map where the probability of the presence of a detection target is equal to or greater than a certain value.

4. 4. The information processing apparatus according to claim 1, wherein the third acquisition means determines the allowable area based on the positions of each part of the object in the image, and acquires a third map representing the allowable area.

5. The information processing device according to any one of claims 1 to 3, characterized in that the third acquisition means determines the allowable area based on the position of a detection target set in an object in the image and the result of area division for the image, and acquires a third map representing the allowable area.

6. The information processing device according to any one of claims 1 to 3, characterized in that the third acquisition means determines, as the allowable area, an area having image features similar to image features surrounding a position of a detection target set on an object in the image, and acquires a third map representing the allowable area.

7. Furthermore, a fifth acquisition means for acquiring a fifth map representing an inference region not belonging to the allowable region among the inference regions in the second map; The fourth acquisition means acquires a fourth map in which an inference region represented by the fifth map in the error map is weighted with a weight value larger than that of an inference region belonging to the allowable region.

4. The information processing apparatus according to claim 1, wherein the information processing apparatus further comprises:

8. Furthermore, a means for acquiring a fifth map representing an area included in the allowable area in the third map but not included in the area of ​​the detection target in the image; The fourth acquisition means acquires a fourth map in which a region represented by the fifth map in the error map is weighted with a weight value smaller than a weight value outside the region.

4. The information processing apparatus according to claim 1, wherein the information processing apparatus further comprises:

9. 9. The information processing apparatus according to claim 1, wherein the update means determines a sum of all errors in the fourth map as a loss, and updates the weighting coefficient based on the loss.

10. 10. The information processing apparatus according to claim 1, wherein the error is a cross entropy.

11. 11. The information processing apparatus according to claim 1, wherein the learning model is a Convolutional Neural Network (CNN).

12. a first acquisition means for acquiring a first map representing a region of a detection target in an image; a second acquisition means for acquiring a second map output from a learning model to which the image is input, the second map representing an inference area in which the detection target is inferred to be located in the image; a third acquisition means for acquiring a third map representing a neglected area that is not to be detected in the image; a fourth acquisition means for acquiring a fourth map representing the neglected area and a false detection area in the second map based on the first map, the second map, and the third map; a fifth acquisition means for acquiring a fifth map obtained by weighting an error map representing an error between the first map and the second map based on the fourth map; an update means for updating a weighting coefficient in the learning model based on the fifth map; An information processing device comprising:

13. The information processing apparatus according to claim 12 , wherein a weighting value for the ignored region in the error map is 0.

14. An information processing method performed by an information processing device, a first acquisition step in which a first acquisition means of the information processing device acquires a first map representing a region of a detection target in an image; a second acquisition step in which a second acquisition means of the information processing device acquires a second map output from a learning model to which the image is input, the second map representing an inference area in which the detection target is inferred to be located in the image; a third acquisition step in which a third acquisition means of the information processing device acquires a third map representing an allowable area in the image that is allowable as a position of a detection target; a fourth acquisition step in which a fourth acquisition means of the information processing device acquires a fourth map in which an error map representing an error between the first map and the second map is weighted with a weight value greater than ... an updating step in which an updating means of the information processing device updates a weighting coefficient in the learning model based on the fourth map; An information processing method comprising:

15. An information processing method performed by an information processing device, a first acquisition step in which a first acquisition means of the information processing device acquires a first map representing a region of a detection target in an image; a second acquisition step in which a second acquisition means of the information processing device acquires a second map output from a learning model to which the image is input, the second map representing an inference area in which the detection target is inferred to be located in the image; a third acquisition step in which a third acquisition means of the information processing device acquires a third map representing a neglected area in the image that is not to be detected; a fourth acquisition step in which a fourth acquisition means of the information processing device acquires a fourth map representing the ignored area and a false detection area in the second map based on the first map, the second map, and the third map; a fifth acquisition step in which a fifth acquisition means of the information processing device acquires a fifth map by weighting an error map representing an error between the first map and the second map based on the fourth map; an updating step of updating a weighting coefficient in the learning model based on the fifth map by an updating means of the information processing device; An information processing method comprising:

16. A computer program for causing a computer to function as each of the means of the information processing device according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Learning device, processing device, neural network, learning method, and program

    JP2020091543A

  • Object detection apparatus, method for detecting object, and learning apparatus

    WO2015049826A1