Learning device, learning data creation method, learning method, and learning program
The neural network-based pedestrian tracking device enhances robustness and accuracy by utilizing skeletal information and occlusion learning data to analyze periodic walking movements, addressing challenges in crowded scenes and occlusions.
Patent Information
- Application Number
- JP2020203258
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-12-08
- Publication Date
- 2024-08-21
- Estimated Expiration
- 2040-12-08
AI Technical Summary
Existing pedestrian tracking technologies using cameras face challenges in accurately identifying individuals in crowded scenes due to similarities in appearance and occlusions, leading to reduced robustness and increased processing time.
A neural network learning device that processes skeletal information from video frames, focusing on periodic walking movements and direction, while creating occlusion learning data by deleting specific joints to enhance robustness and accuracy.
The solution significantly improves the robustness and accuracy of pedestrian tracking by complementing appearance-based identification with walking state analysis, even in occluded conditions, reducing processing time and enhancing reliability.
Smart Images

Figure 0007537700000013 
Figure 0007537700000007 
Figure 0007537700000011
Abstract
Description
[Technical field]
[0001] The present invention relates to a learning device, a method for creating learning data, a learning method, and a learning program, and relates to learning of a neural network used in, for example, a gait tracking device that tracks pedestrians on video. [Background technology]
[0002] There is a growing demand for technology that can capture video of pedestrians walking with a camera and identify and track them in the video. For example, the technology disclosed in Patent Document 1 tracks people photographed by multiple cameras using clues such as appearance characteristics, coordinates, and walking direction, and converts the people into avatars.
[0003] However, tracking of pedestrians using cameras is generally carried out in places where many people pass by, such as areas where surveillance cameras are installed. When tracking pedestrians in such scenes where people are walking in groups, it can be difficult to separate and track individual pedestrians because similar information can be obtained, such as other people with similar appearances walking nearby in the same direction, parts of a pedestrian's body being hidden in the shadow of other pedestrians, or the appearance of a pedestrian changing depending on the angle due to the design of their clothing.
[0004] Furthermore, when tracking a pedestrian using a camera, it may be difficult to recognize the pedestrian if part of the pedestrian being tracked is obstructed by an obstacle such as a pillar or luggage. Therefore, Patent Document 2 proposes a technology in which, when recognizing a pedestrian from the skeleton of an object captured by a camera, an interpolator is created using data in which part of the skeleton is artificially missing from unoccluded training data, and the skeleton of the object is recognized using the interpolator and an estimator.
[0005] However, in the technique described in Patent Document 2, it is necessary to perform learning and inference on both the interpolator and the estimator, and the processing time required for learning and inference is long. Furthermore, when making data missing, making the missing data impossible in real space may actually result in noise. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2019-9752 A [Patent Document 2] JP 2020-123105 A Summary of the Invention [Problem to be solved by the invention]
[0007] An object of the present invention is to improve the robustness of pedestrian tracking using neural networks. [Means for solving the problem]
[0008] (1) The invention described in claim 1 provides a neural network learning device that inputs skeletal information of a walking subject obtained from frame images of a video of the subject and outputs the walking state of the subject, the learning device comprising: a complete learning data acquisition means for acquiring a plurality of complete learning data (j, s) consisting of complete skeletal information j in which positional information of a plurality of joints set as skeletal information of the subject is all present, and a walking state s based on the complete skeletal information j; an occlusion learning data creation means for creating a plurality of occlusion learning data (cj, s) consisting of occlusion skeletal information cj obtained by deleting positional information of joints except for major joints set along the center line of the subject from the complete skeletal information j, for each of the acquired complete learning data, and the walking state s; and a learning means for training the neural network using the acquired plurality of complete learning data (j, s) and the created plurality of occlusion learning data (cj, s). (2) The invention described in claim 2 provides the learning device described in claim 1, characterized in that the walking state s has components that are a walking stage in the periodic walking movement of the subject and a walking direction of the subject. (3) In the invention described in claim 3, there is provided a learning device described in claim 1 or claim 2, characterized in that the occlusion learning data creation means excludes joints set at the nose, neck, and waist center as the main joints from the deletion targets. (4) The invention described in claim 4 provides a learning device described in claim 1, claim 2, or claim 3, characterized in that the occlusion learning data creation means targets at least one joint corresponding to the subject's right hand, left hand, right foot, and left foot that connects from the tip side toward the main joint to be deleted. (5) In the invention described in claim 5, there is provided a learning device described in any one of claims 1 to 4, characterized in that the occlusion learning data creation means targets joints that are 80% or less of all joints set for the subject for deletion. (6) The invention described in claim 6 provides a learning device described in any one of claims 1 to 4, characterized in that the occlusion learning data creation means deletes, in addition to the main joints, at least two or more primary joints directly connected to the main joints. (7) In the invention described in claim 7, there is provided a learning device described in any one of claims 1 to 6, characterized in that the occlusion learning data creation means creates occlusion learning data for all complete learning data in advance, and the learning means performs learning using the complete learning data and the occlusion learning data created in advance. (8) In the invention described in claim 8, there is provided a learning device described in any one of claims 1 to 6, characterized in that the occlusion learning data creation means creates a plurality of occlusion learning data for one complete learning data, and after learning using the one complete learning data and the created plurality of occlusion learning data, creates occlusion learning data for a next complete learning data. (9) The invention described in claim 9 provides a method for creating learning data in a neural network that inputs skeletal information of a walking subject obtained from frame images of a video of the subject and outputs the walking state of the subject, the method comprising: a complete learning data acquisition step of acquiring a plurality of complete learning data (j, s) consisting of complete skeletal information j in which all positional information of a plurality of joints set as skeletal information of the subject is complete, and a walking state s based on the complete skeletal information j; and an occlusion learning data creation step of creating a plurality of occlusion learning data (cj, s) consisting of occlusion skeletal information cj obtained by deleting positional information of joints except for main joints set along the center line of the subject from the complete skeletal information j, for each of the acquired complete learning data, and the walking state s. (10) The invention described in claim 10 provides a neural network learning method for inputting skeletal information of a walking subject obtained from frame images of a video of the subject and outputting the walking state of the subject, the learning method comprising: a complete learning data acquisition step of acquiring a plurality of complete learning data (j, s) consisting of complete skeletal information j in which positional information of a plurality of joints set as skeletal information of the subject is all present, and a walking state s based on the complete skeletal information j; an occlusion learning data creation step of creating a plurality of occlusion learning data (cj, s) consisting of occlusion skeletal information cj obtained by deleting positional information of joints except for main joints set along a center line of the subject from the complete skeletal information j, for each of the acquired complete learning data, and the walking state s; and a learning step of training the neural network using the acquired plurality of complete learning data (j, s) and the created plurality of occlusion learning data (cj, s). (11) The invention described in claim 11 provides a learning program for a neural network that inputs skeletal information of a walking subject obtained from frame images of a video of the subject and outputs the walking state of the subject, the learning program being characterized in that it causes a computer to realize the following: a complete learning data acquisition function that acquires a plurality of complete learning data (j, s) consisting of complete skeletal information j in which positional information of a plurality of joints set as skeletal information of the subject is all present, and a walking state s based on the complete skeletal information j; an occlusion learning data creation function that creates a plurality of occlusion learning data (cj, s) consisting of occlusion skeletal information cj obtained by deleting positional information of joints except for major joints set along the center line of the subject from the complete skeletal information j, and the walking state s; and a learning function that trains the neural network using the acquired plurality of complete learning data (j, s) and the created plurality of occlusion learning data (cj, s). Effect of the Invention
[0009] According to the present invention, for each acquired complete learning data, a plurality of occlusion learning data (cj, s) is created, which consists of occlusion skeleton information cj and walking states s, in which the position information of joints other than the main joints set along the center line of the subject are deleted from the complete skeleton information j, thereby improving the robustness of pedestrian tracking using a neural network. [Brief description of the drawings]
[0010] [Figure 1] FIG. 2 is a diagram showing a hardware configuration of a walking tracking device. [Diagram 2] FIG. 11 is a diagram for explaining a procedure for detecting a walking state. [Diagram 3] FIG. 11 is a diagram for explaining skeleton information. [Figure 4] FIG. 13 is a diagram for explaining a walking direction. [Diagram 5] FIG. 1 is a diagram for explaining walking stages. [Figure 6] FIG. 13 is a diagram for explaining a walking state. [Figure 7] FIG. 1 is a diagram for explaining MLP. [Figure 8] 1A and 1B are diagrams for explaining a person identification method using walking states. [Figure 9] FIG. 13 is a diagram for explaining experimental results. [Figure 10] 11 is a flowchart illustrating a walking tracking process. [Figure 11] 13 is a flowchart for explaining a walking state calculation process. [Figure 12] FIG. 13 is a diagram for explaining learning data including hidden regions; [Figure 13] FIG. 13 is a diagram for explaining a partial region. [Figure 14] FIG. 2 is a diagram for explaining the overall configuration of an MLP. [Figure 15] 13 is a flowchart for explaining a walking state calculation process. [Figure 16] FIG. 13 is a diagram for explaining the results of an experiment comparing the accuracy of learning models. [Figure 17] 13 is a flowchart for explaining a procedure for associating based on a walking state. [Figure 18] 1 is a flowchart showing a hidden learning process of an MLP using training data with hidden. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] (1) Overview of the embodiment A pedestrian tracking device 1 (FIG. 1) identifies a pedestrian 9 captured in different frame images of a video as the same person and tracks them. The identification is performed by a complementary combination of identification based on the appearance information of the pedestrian 9 and identification based on the walking state, which enhances robustness. Identification based on appearance information uses a commonly used technology.
[0012] Identification based on walking state is a newly developed technology that focuses on the posture of the pedestrian 9 when performing continuous walking movements. When a pedestrian walks, they perform periodic walking movements with a period of 2π. Each step of this walking movement is represented by a phase angle φ, and the walking direction is represented by θ. The walking state is defined by the combination of θ and φ.
[0013] Since it is rare for multiple pedestrians with similar appearance information and walking states to be walking in close proximity to each other, by combining appearance information and walking states, pedestrians 9 can be robustly identified. In addition, since the walking state itself is a complementary combination of the walking direction θ and the walking stage φ, the walking state of the walker 9 can be robustly detected even if the walking direction is somewhat unstable or the walking rhythm is disrupted.
[0014] The walking state is estimated from the output value of an MLP 16 (multi-layer perceptron) that has undergone deep learning using the skeletal information, by extracting skeletal information 15 of the pedestrian 9 defined by 25 joints and inputting it into the MLP 16. The MLP 16 of this embodiment has been trained to be able to estimate the walking state with higher accuracy even if the skeleton information 15 extracted from the frame image is partially lost due to occlusion or the like. In other words, when learning about walking states, the MLP16 is trained using training data that retains the bones that are important for determining whether the person is a pedestrian (such as the center of the face and the torso), and removes a certain percentage of the bone ends, such as the hands and toes, which are prone to occlusion. The learning data used are complete learning data consisting of all the skeleton information 15 and its walking state s (teacher signal), and occlusion learning data consisting of occlusion skeleton information and the same walking information s (teacher signal) that lacks (deletes) the position information of the distal joints from the skeleton information 15. The occlusion skeleton information and the teacher signal may be created in advance or during learning.
[0015] (2) Details of the embodiment When a pedestrian is filmed with a camera and identified as the same person by matching pedestrians in two frame images, there are two ways to identify pedestrians: by matching pedestrians between frame images that come before and after in the same video data, or by matching pedestrians between frame images from different video data filmed with multiple cameras. The former will be described below in the first to third embodiments, and the latter in the fourth embodiment, but the technology for identifying pedestrians captured in two frame images using their walking states is common to both.
[0016] [First embodiment] FIG. 1(a) is a diagram showing a hardware configuration of a walking tracking device 1 according to the first embodiment. The walking tracking device 1 is composed of a CPU (Central Processing Unit) 2, a ROM (Read Only Memory) 3, a RAM (Random Access Memory) 4, a display unit 5, an input unit 6, a communication control unit 7, a camera 8, a memory unit 10, etc.
[0017] The walking tracking device 1 captures a video of a walker 9 and tracks the walker 9 within the video. If the object has a skeleton, the walking state can be detected and the walking can be tracked, but in this embodiment, the tracking object is a person, and the walking tracking device is used.
[0018] Although a single pedestrian 9 is illustrated in the figure, the walking tracking device 1 can individually track a plurality of pedestrians 9, 9, . . . walking in a group. The walking tracking device 1 identifies individual pedestrians 9 using walking states that vary from pedestrian to pedestrian, and therefore exhibits particularly remarkable robustness in the case of collective walking. The walking tracking device 1 can be used, for example, to be mounted on an autonomous robot to reduce manpower, or to perform crime prevention measures and marketing analysis using surveillance camera footage.
[0019] The CPU 2 is a central processing unit that performs various information processing and control operations in accordance with programs stored in the storage unit 10, the ROM 3, or the like. In this embodiment, information is processed according to a walking tracking program to identify the pedestrian 9 captured in two frame images constituting the video data, and this identification process is repeated to track the pedestrian 9 within the video.
[0020] The ROM 3 is a read-only memory that stores basic programs and parameters for operating the walking tracking device 1. The RAM 4 is a readable and writable memory, and provides a working memory when the CPU 2 is operating. In this embodiment, the CPU 2 assists in tracking the pedestrian 9 by developing and storing image data of frame images (one still image) that constitute a moving image, and by storing calculation results.
[0021] The display unit 5 is configured using a display device such as a liquid crystal screen, and displays the operation screen of the walking tracking device 1, videos, and the like. The input unit 6 is configured using input devices such as a keyboard and a mouse, and accepts input to the operation screen.
[0022] The communication control unit 7 communicates with external devices via a communication network 11 such as the Internet or a LAN (Local Area Network). In this embodiment, for example, video data captured by an external camera at a remote event venue or the like can be received via the communication network 11, and walking tracking processing can be performed on this video.
[0023] The camera 8 is a general-purpose video camera, and is configured using an optical system made up of lenses and an image element that converts the image formed by the lenses into an electrical signal. The camera 8 captures the location where the pedestrian 9 is walking at a predetermined frame rate, and outputs a video composed of these successive frame images as a predetermined image signal such as an RGB signal. In this manner, the walking tracking device 1 includes a video acquisition means for acquiring a video of a walking subject (pedestrian 9) from the camera 8 or an external device via the communication network 11.
[0024] The memory unit 10 is configured using storage media such as a hard disk or an EEPROM (Electrically Erasable Programmable Read-Only Memory), and stores a walking tracking program, other programs, and data (such as parameters necessary for analysis, the walking path and walking state of the pedestrian 9 obtained by the analysis, etc.) over time.
[0025] The walking tracking device 1 analyzes the walking state of the pedestrian 9 using deep learning with MLP (Multilayer Perceptron), a type of neural network, and can be made smaller by using GPGPU (General-Purpose computing on Graphics Processing Units) to speed up the analysis, or by using a small computer that integrates a CPU, GPU, memory, etc. into a module. This small computer is suitable for being mounted on an autonomous robot to automatically track people.
[0026] Equation (1) in FIG. 1(b) shows an example of a calculation formula that the walking tracking device 1 performs to track a pedestrian. Equation (1) is an equation used to identify a pedestrian 9 appearing in two frame images by matching them together. In the first to third embodiments, it is used to identify a pedestrian 9 between successive frame images taken by a single camera 8, and in the fourth embodiment, it is used to identify a pedestrian 9 between two frame images taken at the same time by multiple cameras 8, 8, .... In this way, regardless of whether the camera 8 that captured the video is the same or different, the pedestrian 9 can be identified between two frame images using equation (1).
[0027] The walking tracking device 1 searches for the pedestrian 9 in the video frames by using a rectangle, and calculates the probability that the pedestrians 9 are the same person by linearly adding the probability that they are the same person calculated using the appearance information of the pedestrian 9 and the probability that they are the same person calculated using the walking state of the pedestrian 9. The coefficient α is a real number in the range of 0<α<1, and a suitable value is set by experiment, for example, in the range of about 0.3<α<0.7. The walking tracking device 1 identifies the walker 9 as the same person when the probability that the walkers are the same person determined based on both the appearance information and the walking state is equal to or greater than a predetermined threshold. The threshold is determined by experiment. In this way, the walking tracking device 1 includes an appearance information acquiring means for acquiring appearance information of the subject, and identifies the subject using the walking state and the appearance information.
[0028] The technology for recognizing people as rectangles in frame images and the technology for determining whether people are the same person based on appearance information are commonly used technologies. Technologies for identification using appearance information include those that use color histogram features based on color distribution, those that use HOG features based on brightness gradient distribution, and those that are based on distance spaces constructed through deep learning (which learn a distance space that brings the same people closer together and different people farther apart). All of these methods are based on appearance, and may result in erroneous identification when, for example, the color or type of clothing is similar, lighting conditions change, or the appearance differs depending on the camera installation position.
[0029] On the other hand, the degree of identity of the same person depending on the walking state is a technology for identifying a person by focusing on the posture (pose) of the pedestrian 9, and is a technology newly developed by the present inventor. If the time is close, the same person will take the same posture regardless of the camera position, making it possible to identify the person based on the posture.
[0030] Since appearance information and walking state are obtained from different perspectives, the complementary effect is remarkable. Therefore, by complementarily combining identification based on appearance information and identification based on walking state as shown in formula (1), it becomes robust against causes of erroneous identification that arise from appearance information, and the accuracy of person identification can be significantly improved.
[0031] For example, if people are walking in a group and other pedestrians walking near pedestrian 9 have similar appearances, it is possible to distinguish them based on their walking state, and conversely, if their walking states are similar, it is possible to distinguish them based on appearance information. The following describes the newly introduced walking state detection.
[0032] FIG. 2 is a diagram for explaining an overall picture of a procedure for detecting a walking state. First, the walking tracking device 1 detects the pedestrian 9 from a frame image by using a rectangle. Then, posture information of the detected pedestrian 9 is extracted from the skeleton information 15. The skeleton information 15 can be extracted using a technique commonly used in software such as OpenPose or PoseNet. In this manner, the walking tracking device 1 includes a skeletal information acquiring means for acquiring skeletal information of the subject.
[0033] Next, the walking tracking device 1 inputs the extracted skeletal information 15 to the MLP 16 that has previously learned the walking state corresponding to the skeletal information, and estimates the walking state s. In this way, the walking tracking device 1 is equipped with a neural network that has learned various walking states using skeletal information.
[0034] As described later, in this embodiment, the walking state s is defined based on the periodic walking motion of the walker 9 when walking, and the walking state s is represented as a four-dimensional vector in a four-dimensional walking state space 17 spanned by two dimensions of the walking direction and two dimensions of the walking stage. In addition, the vector s is written in bold in the figure, but in the specification it is written as the regular English letter s to prevent erroneous character code conversion. The same applies to other vector quantities. In this way, the walking tracking device 1 acquires the walking state based on the continuity of the periodic walking movement of the subject using a neural network.
[0035] Then, the walking tracking device 1 measures the difference between the walking state (s2) detected in the previous video frame image and the walking state (s1) detected in the current video frame in the walking state space 17 using the Euclidean distance U, and performs person identification based on this.
[0036] The distance between two points on a plane is given by the Pythagorean theorem, which is generalized into the Euclidean distance, U, which can be calculated as the square root of the sum of the squares of the differences between the components of s1 and s2. The closer the walking states are, the smaller the Euclidean distance U, which allows for a quantitative comparison of the similarity between two walking states. Therefore, identification can be performed such that the closer the Euclidean distance U is, the higher the probability that the person is the same. Note that this is just an example, and other metrics may be used.
[0037] In this way, the walking tracking device 1 includes an identification means that inputs skeletal information to a neural network and uses the walking state output by the network to identify the subject between frame images that make up a video. The walking tracking device 1 can then track the pedestrian 9 within the video by sequentially performing the identification process on the frame images. In this manner, the gait tracking device 1 includes a tracking means for tracking a subject identified in a video.
[0038] FIG. 3 is a diagram for explaining the skeleton information. In this embodiment, the skeletal information is defined by a total of 25 joints with joint numbers 0 to 24. Hereinafter, the joint with joint number 0 will be abbreviated as J0, etc. The joints are parts that function as joints in the skeletal information, and the posture can be changed by rotating the line segment connecting them around the joint. The correspondence relationship between the joints used in this embodiment and the parts of the human body is as follows.
[0039] J0: nose, J1: neck, J2: right shoulder, J3: right elbow, J4: right wrist, J8: center of waist, J9: right waist, J10: right knee, J11: right ankle, J15: right eye, J17: right ear, J22: right big toe, J23: right little toe, J24: right heel, and the same applies to the corresponding left half of the body.
[0040] The walking tracking device 1 obtains two-dimensional coordinate values on the image of each joint in the image of the person detected as a rectangle, thereby extracting skeletal information according to the posture as two-dimensional data. The image from which the coordinates are obtained may be coordinates in a rectangular image cut out from the frame image by human detection, or may be coordinates on the frame image.
[0041] The number of joints can be freely set by defining more or fewer. For example, it is possible to detect postures in more detail by adding more joints to the area corresponding to the spine, but this is considered unnecessary since people normally walk with their backs straight. In this way, unnecessary calculations can be avoided by defining appropriate joints according to the attributes of the posture to be detected. Experimental results showed that the walking state could be estimated satisfactorily with the above 25 joints.
[0042] FIG. 4 is a diagram for explaining the walking direction. FIG. 4(a) shows the photographed area as viewed from above, and the walking direction d of the pedestrian 9 is represented by a unit vector on a plane parallel to the walking surface. In the example shown in the figure, a plane D is set that is spanned by the D1 axis of the shooting direction and the D2 axis perpendicular to the D1 axis, and the walking direction d is defined by a unit vector that rotates around the pedestrian 9.
[0043] The base point for the measurement angle can be anywhere, but if the measurement is taken at a counterclockwise angle θ (0°≦θ<360°) with D1 as the base point as in the example shown in the figure, the components of the walking direction d will be d = (d1, d2) = (cos θ, sin θ), as shown in Figure 4(b).
[0044] FIG. 5 is a diagram for explaining the walking stages. As shown in FIG. 5(a), when observing a walking motion (a continuous movement of the whole body in which the body's center of gravity is shifted by moving the feet and hands) from a direction perpendicular to the walking direction, the walker 9 continuously repeats the same periodic motion.
[0045] One walking cycle is composed of the following walking stages, for example: landing on the right foot (walker 9a) → placing the center of gravity on the right foot (walker 9b) → swinging out the left foot (walker 9c) → landing on the left foot (walker 9d) → swinging out the right foot (walker 9e, not shown). Since walking is a cyclical movement, the walking stages can be expressed as the phases of one walking cycle.
[0046] Therefore, as shown in Figure 5(b), we assumed a P plane spanned by the orthogonal P1 and P2 axes, and defined walking stage p by a unit vector (p1, p2) that rotates on the P plane in response to the phase angle φ (0°≦φ<360°) of the walking phase. The starting point of the phase angle may be anywhere, but in the illustrated example, the phase angle φ is defined so that it starts at the stage of pedestrian 9a and increases counterclockwise as the stages progress to pedestrians 9b to 9e. Note that Figure 5(b) is a conceptual diagram in which pedestrians 9a to 9d are displayed in order on a unit circle defined by the P1 and P2 axes, with pedestrian 9e omitted, and does not show the exact correspondence between the P1 and P2 axes and pedestrians 9a to 9d.
[0047] When the gait stage p is expressed as a two-dimensional vector in this way, its components are p = (p1, p2) = (cosφ, sinφ), as shown in Figure 5 (c).
[0048] FIG. 6 is a diagram for explaining the walking state. As shown in Figure 6(a), the walking state s = (d1, d2, p1, p2) is defined by a four-dimensional vector that combines the walking direction d and the walking stage p. Illustratively, the walking state s is represented by a vector s in a four-dimensional walking state space 17 spanned by the D1, D2, P1, and P2 axes as shown in FIG. 6(b). Since it is impossible to illustrate a four-dimensional space, the figure shows axes D1 to P2 diagrammatically.
[0049] In this way, by combining the walking direction d and the walking stage p to define the walking state s, these function complementarily to reduce the deviation of the walking state s due to the variation of the walking direction d and the walking stage p, which increases the robustness of the walking state detection.
[0050] The walking state is represented in this way as a four-dimensional vector because it makes it easier to perform calculations for machine learning and person identification, which will be described later, but walking states can also be represented using other methods. Since the walking state is defined by the combination of the walking direction θ and the phase angle φ of the walking stage at the same time (it can be slightly earlier or later), it can be expressed as a point (θ, φ) (0≦θ, φ<2π) on a plane consisting of orthogonal θ and φ axes, or as a spherical coordinate system (θ, φ) consisting of a unit sphere. Of these, you can use any coordinate system that is convenient for each situation, such as theoretical calculation or implementation.
[0051] In this embodiment, the walking state is defined by a combination of θ and φ, but it is also possible to define the walking state by only φ, that is, by only the walking stage p. It is also possible to add other elements to make it a higher dimensional vector. The identification means included in the walking tracking device 1 generates a walking state from the walking direction and walking stage, and can identify the walking state including the walking direction of the subject in addition to the walking movement.
[0052] Incidentally, various techniques have been proposed to identify pedestrians by the way they walk, i.e., their gait, but all of these acquire the gait from a sequence in which the pedestrian walked for a certain period of time. In contrast, one of the major features of the walking tracking device 1 of this embodiment is that it can estimate the walking state from a one-shot image that captures a scene in which the pedestrian 9 is walking.
[0053] FIG. 7 is a diagram for explaining the MLP. The walking tracking device 1 calculated the walking state s by deep learning using MLP (multilayer perceptron: a type of neural network). The MLP16 has an input layer, a hidden layer, and an output layer. The number of hidden layers is three, and each hidden layer has 64 nodes.
[0054] The input layer has 50 nodes that input the coordinate values (x0, y0) of J0, the coordinate values (x1, y1) of J1, . . . , the coordinate values (x24, y24) of J24 on the frame image. The output layer has four nodes that output each component of the walking state s=(d1, d2, p1, p2).
[0055] The activation function used was ReLU, the number of epochs was 100, and the batch size was 256. ReLU is a nonlinear function commonly used in MLP. The nonlinearity of the activation function allows for nonlinear separation of the target (here, the walking state). The number of epochs is the number of times learning is performed, and the batch size is the number of pieces of learning data included in each batch when learning data is divided into batches.
[0056] For learning, images of various walking states were prepared, and supervised learning was performed using learning data (j, s) consisting of joint coordinate values j = [x0, y0, . . . , x24, y24] and walking states s = [d1, d2, p1, p2]. In other words, when j in the training data (j, s) is input, the MLP16 outputs s, which is compared with the correct answer, s in the training data (j, s), and the parameters of the intermediate layer, etc. are adjusted so that the error is small. By using the MLP 16 with its parameters adjusted in this manner, the walking state s, that is, the walking direction d and walking stage p, can be calculated simultaneously simply by inputting the joint coordinate values of the skeletal information 15 extracted from a certain frame image.
[0057] FIG. 8 is a diagram for explaining a person identification method using walking states. As described above, the person is identified using the Euclidean distance U in the walking state space 17. For example, the walking states s1 and s2 are respectively the walking state extracted from the pedestrian 9 in the latest frame image and the walking state extracted from the pedestrian 9 in the frame image immediately preceding this. In the fourth embodiment, when identifying a pedestrian 9 using videos captured by multiple cameras 8a and 8b, the walking state is extracted from frame image a captured by camera 8a and the walking state is extracted from frame image b captured at the same time by camera 8b.
[0058] The frame rate of the video captured by the camera 8 is, for example, about 30 fps, and in this case the shooting time difference between adjacent frame images is about 0.03 seconds. This is extremely fast compared to the speed of human walking, and it is considered that there is no change in posture between adjacent frame images. In this way, the concept of the same time is defined by comparing the speed at which the tracked subject moves with the shooting interval of the frame images, and a time difference within a range in which the change in walking state s during the shooting interval does not substantially affect the identification process is considered to be the same time.
[0059] As a result, the latest frame image and the previous frame image can be considered to have been taken at approximately the same time, and if the walking state s1 calculated from the latest frame image and the walking state s2 calculated from the previous frame image are those of the same person, it can be expected that the difference between them will be very small.
[0060] Therefore, in this embodiment, the difference between the walking states s1 and s2 is represented by the Euclidean distance U shown in equation (2), and the probability prob that the people in both walking states are the same person is defined by equation (3). The smaller the Euclidean distance U shown in equation (2), the smaller the difference between the walking states s1 and s2, and the closer the postures of the pedestrian 9 in both frame images become, increasing the possibility that they are the same person. According to formula (3), the smaller the Euclidean distance U, the closer the probability is to 1, and the higher the probability that the two people are the same person. The degree to which the probability approaches 1 can be adjusted by the constant γ. The probability threshold and the constant γ for identifying and determining that the two persons are the same are set to appropriate values through experiments.
[0061] As a modified example, it is also possible to identify a person using the inner product of the walking states s1 and s2. For example, if the magnitudes of the walking states s1 and s2 are normalized to be 1 and the inner product is calculated, the distance between the walking states s1 and s2 can be measured by the inner product as a value ranging from -1 to 1. Since the inner product can be easily calculated by a computer, it is also possible to use this method. These are just examples, and person identification may be performed using other calculation formulas.
[0062] In the above example, walking conditions were described using two frame images that are adjacent in time, but analysis can be performed using intermittently acquired frame images as long as the frame images are taken before and after in time within a range that can be considered to be essentially the same time. In this way, the walking tracking device 1 extracts and compares the walking state s at substantially the same time, so even if the walker 9 changes direction or pace, it can follow and track them.
[0063] FIG. 9 is a diagram for explaining the experimental results. The left diagram in FIG. 9(a) is a graph showing the experimental results for walking direction d. The horizontal axis represents the ground truth shown by the solid line 31, and the vertical axis represents the distribution (vertical line) of predicted values (values output by MLP16) of the pedestrian walking direction d actually calculated from the video. Ground truth is comparative data used to evaluate the accuracy of machine learning. As shown in the figure, the predicted values are distributed over the ground truth, and the walking direction d can be predicted with high accuracy.
[0064] The right diagram in FIG. 9(a) is a graph showing the experimental results for walking stage p. Similarly, the solid line 32 represents the ground truth, and the vertical lines represent the distribution of the predicted values. Although the variance of the predicted values is slightly wider than for walking direction d, the predicted values are generally distributed on the ground truth, and walking stage p can be predicted with high accuracy.
[0065] FIG. 9(b) is a table showing the RMSE of the walking direction d, walking stage p, and walking state s from these experiments. RMSE (Root Mean Square Error) is expressed by formula (4) and is the square root of the average of the sum of the squares of the deviations between the ground truth (yobs, i) and the predicted value (ypred, i). The smaller this value is, the better the performance of MLP16 is, which means that the prediction accuracy is high.
[0066] As shown in the table, the RMSEs for the walking direction d, walking stage p, and walking state s are 0.110, 0.229, and 0.179, respectively, which are sufficiently practical values. In addition, the table also shows the average error converted into vector angles for walking direction d and walking stage p, which are 6.3° and 13.1°, respectively.
[0067] FIG. 10 is a flowchart for explaining the walking tracking process performed by the walking tracking device 1. The following process is performed by the CPU 2 in accordance with the walking tracking program stored in the storage unit 10. First, the CPU 2 acquires frame images of a moving image captured by the camera 8 and stores them in the RAM 4 (step 5).
[0068] Next, the CPU 2 performs human detection using rectangles in the frame image stored in the RAM 4 in step 5, thereby setting a pedestrian 9 to be tracked (step 10). When multiple pedestrians 9, 9, ... are detected by person detection, all of them may be targeted for tracking, or a single or multiple pedestrians 9, 9, ... selected from among them may be targeted for tracking. When multiple pedestrians 9, 9, ... are targeted for tracking, each pedestrian 9 is tracked simultaneously by parallel processing. Furthermore, when selecting a pedestrian 9 to be tracked, the selection may be made automatically according to some algorithm, or may be made manually.
[0069] Next, the CPU 2 acquires appearance information of the pedestrian 9 set as the tracking target, and stores it in the RAM 4 (step 15). When multiple pedestrians 9, 9, ... are set as tracking targets, appearance information is obtained for each pedestrian 9. Similarly, when multiple pedestrians 9, 9, ... are tracked, processing is performed for each pedestrian.
[0070] Next, the CPU 2 extracts the skeleton information 15 of the walker 9 and inputs it to the MLP 16 to obtain the walking state, which is then stored in the RAM 4 (step 20). The above appearance information and walking state become the initial values used for tracking, and become the starting point for continuous tracking of the appearance information and walking state in the subsequent operations.
[0071] Next, the CPU 2 obtains the next frame image from the moving image captured by the camera 8 and stores it in the RAM 4 (step 25). Next, the CPU 2 performs an appearance information calculation process to calculate the probability of the first term on the right side of the equation (1) based on the appearance information, and stores the calculated probability in the RAM 4 (step 30).
[0072] The CPU 2 calculates the probability based on this appearance information, for example, as follows. First, the CPU 2 detects the pedestrian 9 from the frame image stored in the RAM 4 in step 25, obtains the appearance information thereof, and stores it in the RAM 4. Then, CPU 2 reads the appearance information obtained from the immediately previous frame image stored in RAM 4 in step 15, compares it with the currently stored appearance information, and calculates the probability that they are the same person based on the degree of similarity. This calculation is just one example, and other commonly performed methods using appearance information may also be used.
[0073] Next, the CPU 2 performs a walking state calculation process to calculate the walking state based on the frame images stored in the RAM 4 in step 25 and store it in the RAM 4, and also calculates the probability based on the walking state of the second term on the right side of equation (1) and store it in the RAM 4 (step 35). Next, CPU 2 reads out from RAM 4 the probability based on appearance information stored in step 30 and the probability based on walking state stored in step 35, and substitutes these into equation (1) to calculate the probability that pedestrians 9 are the same person, and stores the calculated probability in RAM 4.
[0074] If the probability that they are the same person is equal to or greater than a predetermined threshold, the CPU 2 identifies the person detected from the current frame image as the pedestrian 9 to be tracked (step 40). Identification means that tracking in the frame images stored in RAM 4 in step 25 has been successful.
[0075] If the probability is less than the threshold, the CPU 2 skips the current judgment and attempts to make a judgment again in the next frame image, or if there are multiple people found, judges that a person close to the pedestrian 9 is possibly the pedestrian 9, or issues an alarm and ends the processing, or performs some other processing.
[0076] If tracking is to be continued (step 45; Y), the CPU 2 returns to step 25 and performs judgment on the next frame image. In this case, judgment is performed using the appearance information and walking state previously stored in the RAM 4 in steps 30 and 35. On the other hand, if tracking is not to be continued (step 45; N), the CPU 2 ends the process.
[0077] FIG. 11 is a flowchart for explaining the walking state calculation process in step 35 (FIG. 10). First, the CPU 2 extracts the skeleton information 15 from the pedestrian 9 detected by the rectangular area, and stores it in the RAM 4 (step 60). The CPU 2 configures the skeleton information 15 using, for example, the coordinate values of J0 to J24 in the image cut out into a rectangular region.
[0078] Next, the CPU 2 inputs the skeleton information 15 stored in the RAM 4 in step 60 to the MLP 16 (step 65), and then obtains the walking state s1 calculated by the MLP 16 and stores it in the RAM 4 (step 70). Next, the CPU 2 reads out and acquires the walking state s2 acquired in the previous frame image from the RAM 4 (step 75).
[0079] Then, the CPU 2 reads out and acquires the walking state s1 (walking state in the current frame image) stored in step 70 from the RAM 4, and substitutes this and the walking state s2 (walking state in the immediately previous frame image) read in step 75 into equation (3) in FIG. 8 to calculate the probability based on the walking state, and stores this in the RAM 4 (step 80).
[0080] [Second embodiment] In the first embodiment, the posture of the pedestrian 9 is calculated using a method capable of detecting a skeleton, such as that used in OpenPose or PoseNet. However, depending on the environment, such as the presence of obstacles or passing by other people, part of the pedestrian 9 may be obscured and cannot be observed, and the skeletal coordinates may only be partially detected. In such cases, it may be difficult to estimate the walking state.
[0081] Therefore, in the second embodiment, learning data in which part of the skeleton information 15 cannot be observed due to occlusion is artificially created, and this is input to the MLP 16 to perform learning including occlusion. This enables robust estimation of walking states even if there are undetected joints due to occlusion.
[0082] FIG. 12 is a diagram for explaining training data including hidden regions. In this embodiment, joints included in a partial region of the skeleton information 15 are set as undetected, so that learning data including joints that have become undetected due to occlusion (occlusion learning data) is prepared. For example, hiding area 35 shown in the figure results in skeletal information 15 in which the right head is not detected, hiding area 36 results in skeletal information 15 in which the left hand is not detected, and hiding area 37 results in skeletal information 15 in which the right foot is not detected.
[0083] In this way, by partially hiding the skeletal information 15, we prepared a large amount of learning data (occlusion learning data) in which skeletal information was missing from the tip region of the skeleton toward the center region, and the area of the hidden region was set to be between 0 and 80% of the total area. The reason why the area from the tip of the skeleton to the center of the skeleton is hidden is because limbs such as hands and feet or one half of the body are often hidden when walking.
[0084] As the training data for training the MLP16 in this way, the complete training data (j, s) and the occlusion training data (cj, s) are used. The complete learning data (j, s) is the same as the learning data described in the first embodiment, and is learning data consisting of skeleton information with all joint coordinate values j (complete skeleton information j) and walking state s (teacher signal). The occlusion training data (cj, s) is training data consisting of occlusion skeletal information cj, which is created by preferentially deleting (missing) positional information from the complete skeletal information j of the complete training data, starting from the distal joints, and the walking state s (teacher signal) for the complete skeletal information j. The occlusion skeleton information cj of the occlusion learning data is created by deleting the distal joints from the complete skeleton information j, as shown in FIG.
[0085] In other words, the joints along the center line of the body, such as the center of the face and the torso, are designated as major joints, and these major joints must be maintained. On the other hand, priority is given to removing parts at the ends of the skeleton, such as the hands and toes, which are more likely to be occluded, at a certain rate. If a joint directly connected to a main joint is defined as a primary joint, the number of primary joints to be removed is set to a maximum of 80% or less, preferably 60% or less, of the total area of the hidden region (the proportion of joints to be removed).
[0086] Here, among the joints j0 to j24 in Figure 3, the main joints are the nose (j0), neck (j1), and waist center (j8) along the center line of the body, and the joints j2, j5, j9, j12, j15, and j16 directly connected to these main joints correspond to primary joints. Since the total number of joints is 25 and the number of main joints is 3, at least two of the six primary joints are excluded from the deletion targets, so that the total area of the hidden region is kept below 80%. In this way, by retaining the main joints and some of the primary joints directly connected to them, it is possible to estimate the walking state s.
[0087] According to this embodiment, learning is performed using complete learning data and occluded learning data, which enables learning using a larger amount of learning data and improves learning accuracy. As described above, the occlusion training data is generated from the complete training data, but any of the following methods can be used. That is, in the first method, all corresponding occlusion training data are created from all training data in advance, and the MLP 16 is trained using both sets of training data. On the other hand, in the second method, when training the MLP 16 using each piece of training data in the complete training data, the MLP 16 is trained while creating the corresponding individual training data.
[0088] FIG. 18 is a flow chart showing the hidden learning process of the MLP 16 using training data with hidden regions. This hidden learning process is the learning method of MPL16 according to the second method described above. In this embodiment, the case where the learning of the MPL 16 is performed by the CPU 2 of the walking tracking device 1 will be described. However, when estimating the walking state s of the pedestrian 9 from the acquired frame images, the walking tracking device 1 uses the learned MPL 16, so it is also possible to learn the MPL 16 by a computer system other than the walking tracking device 1.
[0089] The CPU 2 of the walking tracking device 1 stores a large amount of complete learning data based on images of various walking states prepared in advance in the RAM 4. As described in the first embodiment, the complete learning data stored in the RAM 4 is composed of the joint coordinate values j=[x0, y0, . . . , x24, y24] of the complete skeleton information j and the walking state s=[d1, d2, p1, p2] which is a teacher signal. Then, the CPU 2 acquires one complete learning data set (j, s) from the RAM 4 (step 200).
[0090] Next, the CPU 2 creates occlusion learning data (cj, s) (step 210). That is, the CPU 2 creates the occlusion skeleton information cj by deleting a certain ratio of the coordinate values on the distal end side of the skeleton from the joint coordinate values j=[x0, y0, . . . , x24, y24] of the complete skeleton information j of the acquired complete learning data (j, s), as described in FIG. 12. In the occlusion skeleton information cj, the coordinate value (xn, yn) of the deleted joint does not exist. Therefore, of the 50 nodes in the layer input of the MLP16 (see FIG. 7), the input of two nodes corresponding to one deleted joint is not performed. Then, the CPU 2 creates sketch learning data (cj, s) from the created occlusion skeleton information cj and the walking information s of the complete learning data, and stores the data in the RAM 4. CPU2 does not create a single occlusion training data (cj, s) for one complete training data (j, s), but creates multiple occlusion data (cj1, s), (cj2, s), ..., with different proportions of joints removed.
[0091] As an example of joints to be deleted, multiple occlusion learning data (cj, s) are created in which any range of skeletal information (joint values) from the tip side of at least one of the right hand, left hand, right foot, and left foot in the skeletal information 15 is omitted toward the main joint along the center line of the body. Possible patterns of this occlusion learning data (cj, s) are 4 combinations of limbs (13 combinations) x 1 combination of patterns with different missing ranges (any combination). In this case, as mentioned above, the condition of the total area of the hidden region being 80% or less must be met by leaving the main joints, namely the nose (j0), neck (j1), and waist center (j8), and at least two of the primary joints j2, j5, j9, j12, j15, and j16 that are directly connected to these main joints.
[0092] Next, the CPU 2 performs learning of the walking state using the complete learning data and the occlusion learning data (step 220). That is, the CPU 2 performs learning on the MLP 16 using the acquired complete learning data (j, s) and the created multiple pieces of occlusion learning data (cj, s).
[0093] Next, the CPU 2 judges whether or not other unlearned complete learning data exists in the RAM 4 (step 230), and if so (step 230; Y), the CPU 2 returns to step 200 and performs processing on the next complete learning data. On the other hand, if there is no other complete learning data (step 230; N), the CPU 2 ends the hidden learning process.
[0094] In this embodiment, in addition to whole-body skeletal information 15 (complete learning data), the MLP 16 is made to learn learning data (occlusion learning data) of skeletal information 15 in which occlusion (undetected joints) is generated in such random positions. In this way, experiments were conducted using an MLP16 trained using learning data composed of at least a portion of the skeletal information of the entire body, so that skeletal information is missing from the tip region to the center region of the skeleton. As a result, it was possible to predict the walking state with high accuracy not only when there was skeletal information 15 of the entire body, but also when there was occlusion. The experimental results will be described in the third embodiment by comparing the experimental results of the first to third embodiments.
[0095] [Third embodiment] In this embodiment, the skeletal information 15 is divided into partial regions such as the upper body and the lower body, and the MLP 16 that learns each partial region individually is prepared, and the results of these are integrated to estimate the walking state.
[0096] FIG. 13 is a diagram for explaining a partial region. In this embodiment, as shown by the dashed lines in the figure, the skeletal information 15 is classified into five regions: the whole body (R0), right body (R1), left body (R2), upper body (R3), and lower body (R4), and learning with occlusion is performed for each of the regions R0 to R4. Hereinafter, the skeletal information 15 for the region R1 will be referred to as skeletal information (R1), etc. This region division example is just one example, and the region may be further divided into a larger number of regions or a smaller number of regions.
[0097] FIG. 14 is a diagram for explaining the overall configuration of the MLP 16 according to this embodiment. In this embodiment, six MLPs are used, which are designated as MLP(R0), MLP(R1), MLP(R2), MLP(R3), MLP(R4), and MLP(weighting). In the second embodiment, the MLP 16 was trained using a large amount of skeletal information 15 of the entire body and skeletal information 15 in which some joints were missing and undetected. Similarly, in the present embodiment, training was performed using skeletal information 15 of the entire body and skeletal information with occlusions.
[0098] The MLP (R0) learns using the skeleton information (R0), and when the skeleton information 15 is input, it outputs a walking state using the coordinate values of the joints included in the region R0. Similarly, MLP(R1) to MLP(R4) learn using skeletal information (R1) to skeletal information (R4), respectively, and when skeletal information 15 is input, they output walking states by region using the coordinate values of the joints included in regions R1 to R4, respectively. In this manner, in this embodiment, a plurality of MLPs that have undergone learning of walking state estimation for each region using skeleton information 15 including occlusion are arranged in parallel and used.
[0099] In this way, by using an MLP trained for each region, there exists an MLP that is good at estimating in regions where occlusion does not occur, for skeleton information 15 where occlusion occurs, and therefore robustness against occlusion is improved. For example, for skeletal information 15 in which joints of the right half of the body are mainly detected, it is expected that the estimation accuracy of the MLP(R1) for the right half of the body is high, and that of the MLP(R2) for the left half of the body is not high. Also, the estimation accuracy of other regions, such as the region R4 for the lower body, is expected to be somewhat more accurate than MLP(R2), although not as high as MLP(R1).
[0100] In this case, the walking state is weighted most heavily by MLP(R1), the walking state by MLP(R2) is weighted least heavily, and the walking states by the other MLPs are weighted appropriately in between. By adding these together, the most probable walking state can be obtained. The MLP (weighting) learns appropriate weighting of the walking state by region by such MLP(R0) to MLP(R4) for the occlusion pattern of the skeleton information 15.
[0101] The occlusion pattern is given by a detection flag, which is flag information for each joint, e.g., 1 for detected joints and 0 for undetected joints. For the skeletal information 15 in which joints in the right half of the body are mainly detected, the flag for that area will mainly be 1, and so the pattern of whether the joints are detected or not can be expressed by the detection flag.
[0102] The MLP (weighting) was learned by inputting the walking states for each region output by MLP(R0) to MLP(R4) based on skeletal information 15 and the detection flag obtained from skeletal information 15 into the MLP (weighting), and adjusting each parameter of the MLP (weighting) so as to reduce the error between the walking state output by the MLP (weighting) and the correct walking state.
[0103] The MLP (weighting) adjusted in this manner dynamically weights and synthesizes (e.g., simply adds) the walking states by region output by the MLP(R0) to MLP(R4) based on the detection flag in accordance with each pattern of the detection flag, and outputs the walking state that is the final estimated result. As described above, the neural network (MLP(R0)-MLP(R4), MLP(weighting)) outputs the walking state using multiple regional networks (MLP(R0)-MLP(R4)) trained for each skeletal region and a weighting network (MLP(weighting)) that weights the output of each regional network according to the lack of skeletal information.
[0104] FIG. 15 is a flowchart for explaining the walking state calculation process in this embodiment. The same steps as those in FIG. 11 are given the same numbers to simplify the explanation. First, the CPU 2 extracts the skeleton information 15 from the pedestrian 9 detected by the rectangular area, and stores it in the RAM 4 (step 60). Next, the CPU 2 checks whether a joint is detected or not in the stored skeleton information 15, generates a detection flag, and stores this in the RAM 4 (step 105).
[0105] Next, the CPU 2 divides the skeleton information 15 stored in step 60 to generate skeleton information (R0) to skeleton information (R4), and stores these in the RAM 4 (step 110). Next, the CPU 2 inputs the skeleton information for each area stored in the RAM 4 in step 110 to the MLP(R0) to MLP(R4) for each corresponding area (step 115). Next, the CPU 2 acquires the walking states for each area outputted by the MLP(R0) to MLP(R4) and stores them in the RAM 4 (step 120).
[0106] Next, the CPU 2 inputs the area-specific walking states stored in the RAM 4 in step 120 and the detection flags stored in the RAM 4 in step 105 to the MLP (weights) (step 125). Then, the CPU 2 acquires the walking state s1 calculated by the MLP (weighting) and stores it in the RAM 4 (step 70).
[0107] Next, the CPU 2 reads out and acquires the walking state s2 acquired in the previous frame image from the RAM 4 (step 75). Then, the CPU 2 calculates the probability according to the walking state using the walking state s1 stored in step 70 and the walking state s2 read out in step 75, and stores this in the RAM 4 (step 80). As described above, in the third embodiment, the walking state is estimated using a learning model for each area, and the walking state can be calculated by dynamically weighting the estimation result for each area depending on whether each joint is detected or not.
[0108] FIG. 16 is a diagram for explaining the results of an experiment comparing the accuracy of the learning models according to the first embodiment, the second embodiment, and the third embodiment. The processing forms performed in the first, second and third embodiments are referred to as a hidden unlearned model, a hidden learned model and a region segmentation model, respectively. In the experiments, we evaluate the robustness to occlusion by varying the fraction r of undetected joints in the test data.
[0109] The evaluation of each model is shown in the graph in Figure 16(a). The vertical axis represents RMSE, and the horizontal axis represents the proportion r of undetected joints. The maximum proportion of undetected (hidden) joints was set to 80%, and measurements were taken at 20% intervals. The smaller the RMSE, the higher the accuracy. Specific values are shown in the table in Figure 16(b).
[0110] In the graph, the solid lines 41, 42, and 43 represent an unhidden unlearned model, a hidden learned model, and a region division model, respectively. As can be seen from the graph, when there is no hidden state (r = 0), all models show high accuracy, and the unhidden unlearned model shows slightly better accuracy than the other models. However, for the unhidden unlearned model, when a hidden state occurs (0 < r ≤ 0.8), the accuracy drops significantly, and at r = 0.8, the RMSE reaches nearly 1.0.
[0111] On the other hand, for the hidden learned model and the region division model, the decrease in accuracy is mitigated even when a hidden state occurs, indicating the effect of learning with hidden states. In particular, at r = 0.8, the region division model shows an accuracy nearly 10% higher than that of the hidden learned model.
[0112] As shown in the table, when comprehensively evaluated for 0 ≤ r ≤ 0.8, the evaluation was highest for the region division model (RMSE = 0.316), the hidden learned model (RMSE = 0.353), and the unhidden unlearned model (RMSE = 0.794) in that order. Thus, it was found that the hidden learned model and the region division model can perform robust state estimation against hidden states, and the region division model is particularly effective.
[0113] [Fourth Embodiment] In this embodiment, a case where a pedestrian 9 captured in the videos of a plurality of cameras is associated and tracked between the cameras will be described. In this example, for instance, the video data of a plurality of cameras 8, 8,... installed at an event venue or the like is transmitted to the pedestrian tracking device 1 via the communication network 11. In this way, the video acquisition means of the pedestrian tracking device 1 acquires a plurality of videos of a subject captured by a plurality of cameras. Then, in the area where the images of these cameras 8, 8,... overlap, the pedestrian 9 is identified in the frame images at the same time captured by the plurality of cameras. This makes it possible to track pedestrian 9 by linking images from multiple cameras.
[0114] Alternatively, the camera 8 can be mounted as a stereo camera on an autonomous robot. In this case, the robot tracks the pedestrian 9 using the three-dimensional information obtained by stereoscopically viewing the pedestrian 9 by matching the pedestrian 9 in the right frame image and the left frame image.
[0115] In this way, when multiple cameras 8, 8, ... are used, the appearance of the pedestrian 9 differs in each image due to the influence of the mounting positions of the cameras, etc. Since appearance information is easily affected by this, using the walking state as additional information is particularly effective in preventing erroneous matching.
[0116] In addition, in general tracking using multiple cameras, the coordinate values of a pedestrian are used to identify the pedestrian, so calibration is required to accurately set the relative position and attitude of each camera. However, since the walking tracking device 1 identifies a pedestrian using the walking state specific to the pedestrian 9 as a clue, accurate calibration is not necessarily required. Therefore, it is easy to install a fixed camera, and it is also possible to position and move cameras mounted on multiple drones to track pedestrians 9.
[0117] In this embodiment, a case will be described in which a pedestrian 9 in a frame image a captured at the same time by two cameras 8a and 8b is associated with a pedestrian 9 in a frame image b. Here, since the cameras 8a and 8b capture the pedestrian 9 from different positions, the angle θ of the walking direction as seen from the cameras 8a and 8b is different. Therefore, for example, when the coordinate axis of the D plane captured by the camera 8b forms an angle of Δθ with the coordinate axis captured by the camera 8a, the walking state is corrected by subtracting Δθ from the walking direction captured by the camera 8b, and the walking directions of both cameras 8 are aligned and compared. The phase angle φ of the walking stage is common to both cameras 8. Also, it is possible to define a walking state by a two-dimensional vector consisting of walking stages, and to define a walking state that does not depend on θ.
[0118] FIG. 17 is a flowchart for explaining the procedure of association based on walking states. The same steps as those in FIG. 11 are marked with a and b to simplify the explanation while distinguishing between a and b of the frame images to be processed. First, the CPU 2 extracts the skeleton information 15 from the frame image a (step 60a), inputs it to the MLP 16 (step 65a), and obtains the walking state s1 output by the MLP 16 and stores it in the RAM 4 (step 70a).
[0119] Next, the CPU 2 extracts the skeleton information 15 from the frame image b (step 60b), inputs it to the MLP 16 (step 65b), and obtains the walking state s2 output by the MLP 16 and stores it in the RAM 4 (step 70b).
[0120] Next, the CPU 2 calculates the probability based on the walking state according to equation (3) (equation (3) in FIG. 8) using the walking state s1 stored in the RAM 4 in step 70a and the walking state s2 stored in the RAM 4 in step 70b, and outputs the calculated probability to the RAM 4 (step 80).
[0121] CPU 2 also calculates the probability of appearance information for frame images a and b, and calculates the probability that they are the same person according to formula (1). If the camera has been calibrated, identification can also be performed using the coordinate values of pedestrian 9 in addition to the appearance information and walking state. In this way, the identification means of the walking tracking device 1 identifies the subject by matching the subject between frame images of a plurality of videos.
[0122] Although the case where a pedestrian 9 is identified between images captured by different cameras 8 has been described above, it is also possible to combine the techniques of the first to third embodiments with this embodiment. In this case, the pedestrian 9 is identified in temporally adjacent frame images a1 and a2 captured by camera 8a, and the pedestrian 9 is identified in temporally adjacent frame images b1 and b2 captured by camera 8b. Furthermore, the pedestrian 9 is identified and matched between frame images a1 and b1 captured at the same time (or between frame images a2 and b2; a combination of frame images a1 and b2 is also possible if the captured times are close). Here, the case where the pedestrian 9 is identified using the two cameras 8a and 8b has been described, but the pedestrian 9 can also be identified in the same manner when photographing with three or more cameras 8.
[0123] Each embodiment has been described above, but since these are elemental technologies for detecting walking, various technical and business applications are conceivable. When the walking tracking device 1 is installed on an autonomous robot, it can be used for applications such as following customers in a hotel while carrying their luggage, tracking visitors at the entrance to an event venue and taking their temperature, or following behind employees in a factory while loaded with materials.
[0124] When using surveillance camera footage, for example, cameras inside a store can be linked with cameras installed on shopping streets to track down a customer who has left something behind in a store so that a store attendant can return the item, or to track down a lost child and help protect them, and for a variety of other purposes. In addition to tracking the pedestrian 9 into the future, the walking tracking device 1 can also track the path that the pedestrian 9 has walked into the past by retracing the captured video (i.e., playing the video in reverse). This can also be used for marketing analysis, such as tracing the walking paths of customers who have purchased a product at a store and examining the path they took to reach that store.
[0125] Furthermore, because walking reflects the health status of the pedestrian, this technology could be applied to the medical field. For example, one possible use would be as a gait diagnosis device, capturing images of a patient undergoing walking training as part of rehabilitation to measure changes in their walking condition over time, and analyzing the walking direction, walking cycle variation, etc. using statistical methods to grasp the progress of the training.
[0126] In this case, the walking tracking device 1 presents the change over time in the walking state stored in the storage unit 10 on the display unit 5 after performing statistical processing or the like. In this way, the walking tracking device 1 includes a presentation means for presenting the time change in the walking state output by the neural network.
[0127] In addition, by having elderly people walk during health checkups and recording their walking patterns and observing changes over time, it may be possible to observe the progression of aging and detect diseases at an early stage. Furthermore, remote diagnosis is also possible, such as having the patient take a video of themselves walking at home using a smartphone or other device, and then sending the video to a gait tracking device 1 installed in the hospital so that the patient's walking condition can be analyzed at the hospital.
[0128] Furthermore, according to experiments conducted by the inventors, the walking tracking device 1 has an excellent ability to detect walking abnormalities because it continuously monitors the walking state. Therefore, the gait tracking device 1 can be used as an abnormal gait detection device. For example, if abnormal gait is detected in a hotel lobby, it could be because a customer is carrying heavy luggage or feeling unwell. If this is detected by the abnormal gait detection device, early assistance can be provided. Alternatively, the autonomous robot could learn the walking patterns of customers carrying heavy luggage, and when this is detected by an abnormal gait detection device installed in the office, the autonomous robot equipped with the gait tracking device 1 could rush to the customer's location to pick up the luggage, and then transport the customer's luggage while tracking the customer's gait.
[0129] Furthermore, since the walking tracking device 1 uses the walking state as additional information, it is particularly effective when tracking pedestrians 9 in a group with the same appearance. This is applicable, for example, when a group of high school students wearing the same uniforms are traveling as a group. It is also possible to infer scenes in which people are walking, such as that a group of people with the same appearance and walking in the same manner are marching, or that if people's walking patterns change all at once and they begin moving suddenly in one direction, some kind of emergency has occurred and people have begun to evacuate.
[0130] Furthermore, since it is sufficient to grasp the posture from skeletal information, it is also possible to apply the walking tracking device 1 to animals. In particular, since animals living in groups have the same appearance, tracking based on the walking state of the walking tracking device 1 is effective. For example, in recent years, the use of IT in the agricultural and livestock farming sectors has progressed rapidly, and sheep-farming robots are being developed based on research into mathematical analysis models of sheep farming.
[0131] Since sheep have the same appearance, it is difficult to identify individual sheep by their appearance. However, since their walking patterns vary, they can be recognized and tracked by the walking tracking device 1. This has the potential to give rise to new business opportunities, such as using multiple drones to film the grazing of flocks of sheep collected from multiple sheep owners, and then tracking and streaming the videos of each individual sheep for each owner, or tracking each sheep and analyzing its images to estimate the amount of grass each sheep has eaten, and then charging the owner for this amount.
[0132] In principle, the technology could also be applied to arthropods, and it could be used for academic research on colonial insects such as ants and crustaceans such as crabs. These are just a few examples, and since identifying an observed subject using walking state is a fundamental technology, it has a wide range of applications.
[0133] According to the first to fourth embodiments described above, the walking tracking device and the walking tracking program can be configured as follows. (1) In configuration 1, a walking tracking device is provided, comprising: a video acquisition means for acquiring a video of a walking subject; an identification means for identifying the subject between frame images constituting the acquired video by using a walking state based on the periodic walking motion of the subject; and a tracking means for tracking the identified subject in the acquired video. (2) Configuration 2 provides the walking tracking device according to configuration 1, characterized in that the identification means performs the identification by including in the walking state, in addition to the walking motion, the walking direction of the subject. (3) In a third aspect, there is provided the walking tracking device according to the first or second aspect, wherein the identification means uses a walking state based on the continuity of the walking motion. (4) Configuration 4 provides a walking tracking device as described in Configuration 1, 2, or 3, further comprising an appearance information acquisition means for acquiring appearance information of the subject, and the identification means identifies the subject using the walking state and the acquired appearance information. (5) Configuration 5 provides a walking tracking device according to any one of configurations 1 to 4, comprising a skeletal information acquisition means for acquiring skeletal information of the subject, and a neural network that has learned various walking states using the skeletal information, and the identification means inputs the acquired skeletal information to the neural network and acquires the walking state output by the neural network. (6) In configuration 6, there is provided a gait tracking device as described in configuration 5, characterized in that the neural network is trained using training data constructed from at least a partial area of skeletal information of the entire body. (7) In configuration 7, there is provided a gait tracking device as described in configuration 6, characterized in that the neural network is trained using training data configured so that skeletal information is missing from the tip region to the central region of the skeleton. (8) In configuration 8, there is provided a walking tracking device as described in configuration 6 or 7, characterized in that the neural network outputs the walking state by using a plurality of regional networks trained for each skeletal region and a weighting network that weights the output of each of the regional networks according to the lack of skeletal information. (9) Configuration 9 provides a walking tracking device according to any one of configurations 1 to 8, characterized in that the video acquisition means acquires a plurality of videos of the subject captured by a plurality of the cameras, and the identification means identifies the subject by matching the subject between frame images of the acquired plurality of videos. (10) In configuration 10, there is provided a walking tracking device according to any one of configurations 5 to 9, further comprising a presentation means for presenting the time change in the walking state output by the neural network. (11) In configuration 11, a walking tracking program is provided that realizes, on a computer, a video capture function for capturing a video of a walking subject, an identification function for identifying the subject between frame images constituting the captured video by using a walking state based on the periodic walking motion of the subject, and a tracking function for tracking the identified subject in the captured video.
[0134] According to each of the above configurations, the robustness of pedestrian tracking can be improved by identifying a target using the walking state. [Explanation of symbols]
[0135] 1. Walking Tracker 2 CPU 3 ROM 4 RAM 5 Display section 6 Input section 7. Communication Control Unit 8. Camera 9. Pedestrians 10 Storage section 11. Communications Networks 15 Skeletal information 16 MLP 17 Walking state space 31, 32, 41, 42, 43 Solid line 35, 36, 37 areas
Claims
1. A neural network learning device that inputs skeletal information of a walking subject obtained from frame images of a video of the subject, and outputs a walking state of the subject, a complete learning data acquiring means for acquiring a plurality of complete learning data (j, s) including complete skeletal information j having all position information of a plurality of joints set as skeletal information of the subject and a walking state s based on the complete skeletal information j; an occlusion learning data creating means for creating a plurality of occlusion learning data (cj, s) consisting of occlusion skeleton information cj and a walking state s, the occlusion skeleton information cj being obtained by deleting position information of joints other than major joints set along the center line of the subject from the complete skeleton information j of the acquired complete learning data; a learning means for learning the neural network using the acquired plurality of complete learning data (j, s) and the created plurality of occlusion learning data (cj, s); A learning device comprising:
2. The walking state s has components including a walking stage in a periodic walking motion of the subject and a walking direction of the subject.
2. The learning device according to claim 1 .
3. the occlusion learning data creation means excludes joints set at the nose, neck, and waist center as the main joints from the deletion targets; 3. The learning device according to claim 1 or 2.
4. The learning device according to claim 1, 2, or 3, characterized in that the occlusion learning data creation means targets at least one joint corresponding to the subject's right hand, left hand, right foot, and left foot that is connected from the tip side toward the main joint.
5. the occlusion learning data creation means targets joints that are 80% or less of all joints set for the subject to be deleted; The learning device according to any one of claims 1 to 4.
6. the occlusion learning data creation means deletes, in addition to the main joint, at least two or more primary joints directly connected to the main joint; The learning device according to any one of claims 1 to 4.
7. the occlusion learning data generating means generates occlusion learning data for all complete learning data in advance, The learning means performs learning using complete learning data and occlusion learning data created in advance.
7. A learning device according to claim 1, wherein the learning device further comprises: a first input section;
8. the occlusion learning data creation means creates a plurality of occlusion learning data for one complete learning data, and creates occlusion learning data for the next complete learning data after learning using the one complete learning data and the created plurality of occlusion learning data.
7. A learning device according to claim 1, wherein the learning device further comprises: a first input section;
9. A method for creating learning data for a neural network, which inputs skeletal information of a walking subject obtained from frame images of a video of the subject and outputs a walking state of the subject, comprising: a complete learning data acquisition step of acquiring a plurality of complete learning data (j, s) including complete skeletal information j having all position information of a plurality of joints set as skeletal information of the subject and a walking state s based on the complete skeletal information j; an occlusion learning data creation step of creating a plurality of occlusion learning data (cj, s) consisting of occlusion skeleton information cj obtained by deleting position information of joints other than the main joints set along the center line of the subject from the complete skeleton information j of each of the acquired complete learning data and a walking state s; A method for creating learning data, comprising:
10. A neural network learning method for inputting skeletal information of a walking subject obtained from frame images of a video of the subject, and outputting a walking state of the subject, comprising: a complete learning data acquisition step of acquiring a plurality of complete learning data (j, s) including complete skeletal information j having all position information of a plurality of joints set as skeletal information of the subject and a walking state s based on the complete skeletal information j; an occlusion learning data creation step of creating a plurality of occlusion learning data (cj, s) consisting of occlusion skeleton information cj obtained by deleting position information of joints other than the main joints set along the center line of the subject from the complete skeleton information j of each of the acquired complete learning data and a walking state s; a learning step of learning the neural network using the acquired plurality of complete learning data (j, s) and the created plurality of occlusion learning data (cj, s); A learning method comprising:
11. A neural network learning program that inputs skeletal information of a walking subject obtained from frame images of a video of the subject and outputs a walking state of the subject, a complete learning data acquisition function for acquiring a plurality of complete learning data (j, s) consisting of complete skeletal information j including all position information of a plurality of joints set as skeletal information of the subject and a walking state s based on the complete skeletal information j; an occlusion learning data creation function for creating a plurality of occlusion learning data (cj, s) consisting of occlusion skeleton information cj and walking states s, which are obtained by deleting position information of joints other than the main joints set along the center line of the subject from the complete skeleton information j of the acquired complete learning data; a learning function for learning the neural network using the acquired plurality of complete learning data (j, s) and the created plurality of occlusion learning data (cj, s); A learning program characterized by implementing the above in a computer.
Citation Information
Patent Citations
Multi-view-angle gait recognition method based on Kinect
CN104463118A
Real scene shielding pedestrian detection network based on body key point detection and a detection method thereof
CN109766868A
Image processing device
JP2019009752A
Mobile object recognition device, mobile object recognition method, and program
JP2019012304A
Motion estimating device and motion estimating program
JP2019025134A
