Priority is claimed on Japanese Patent Application No. 2018-215602, filed Nov. 16, 2018, the content of which is incorporated herein by reference.
The present invention relates to a prediction device, a prediction method, and a storage medium.
In the related art, an invention of a security guard system including a detector configured to detect an abnormality in a security guard region and transmit an abnormal detection signal to a controller in a case in which an abnormality is detected and the controller configured to receive public safety information in a target area including the security guard region and change determination conditions for determining whether or not to issue an alert in accordance with the public safety information has been disclosed (Japanese Unexamined Patent Application, First Publication No. 2014-178884). According to the invention, the public safety information is generated mainly on the basis of crime information. For example, there is a description that the numbers of break-in robbery cases and break-in theft cases that have occurred in a target area in a predetermined period are used as source information of the public safety information.
However, it is not possible to appropriately estimate a public safety state in the future in some cases according to the related art.
Aspects of the invention were made in view of such circumstances, and one of objectives is to provide a prediction device, a prediction method, and a storage medium capable of appropriately estimating a public safety state in the future.
The prediction device, the prediction method, and the storage medium according to the invention employ the following configurations:
(1): According to an aspect of the invention, there is provided a prediction device including: an acquirer configured to acquire a captured image of a scene of a section in a town and released information representing a value for the section; and a deriver configured to derive a public safety index representing a public safety state of the section in the future by inputting a result of analyzing the image and the released information to a prediction model.
(2): In the aforementioned aspect (1), the deriver derives the public safety index for a section with a rate of change in the released information that is equal to or greater than a reference value.
(3): In the aforementioned aspect (1), the deriver derives the public safety index by evaluating a state of a specific object included in the image.
(4): In the aforementioned aspect (1), the released information includes at least a part of information related to roadside land assessments, rents, and crime occurrence.
(5): In the aforementioned aspect (1), the section is a specific section along a road.
(6): In the aforementioned aspect (1), the prediction device further includes: a learner that generates the model through machine learning.
(7): In the aforementioned aspect (1), the released information is used as teacher data when the model for deriving the public safety index is learned.
(8): According to another aspect of the invention, there is provided a prediction method that is performed using a computer, the method including: acquiring a captured image of a scene of a section in a town and released information representing a value for the section; and deriving a public safety index representing a public safety state of the section in the future by inputting a result of analyzing the image and the released information to a prediction model.
(9): According to yet another aspect of the invention, there is provided a storage medium that causes a computer to: acquire a captured image of a scene of a section in a town and released information representing a value for the section; and derive a public safety index representing a public safety state of the section in the future by inputting a result of analyzing the image and the released information to a prediction model.
According to the aforementioned aspects (1) to (9), it is possible to appropriately estimate a public safety state in the future.
According to the aforementioned aspect (2), it is possible to improve processing efficiency.
According to the aforementioned aspect (3), it is possible to estimate a public safety state in the future with higher accuracy since image processing is not performed in a vague manner but is performed by narrowing down to a specific object.
According to the aforementioned aspect (4), it is possible to estimate a public safety state in the future from diversified viewpoints.
According to the aforementioned aspect (5), it is possible to perform estimation processing with higher granularity as compared with estimation in mesh units in a map in the related art.
Hereinafter, embodiments of a prediction device, a prediction method, and a storage medium according to the invention will be described with reference to drawings.
The prediction device 100 acquires released information from a released information source 30. The released information is arbitrary released information that is considered to represent a value of the town such as a roadside land assessment, a rent per reference, area and a crime occurrence rate. In the following respective embodiments, it is assumed that the released information is a roadside land assessment. The released information source 30 is, for example, an information provision device that releases such information on a website or the like. The prediction device 100 automatically acquires the released information as electronic information from the website using a technology such as a crawler, for example. Instead of this, an operator who has viewed the released information may manually input the released information to an input device (not illustrated) of the prediction device 100.
The prediction device 100 derives a public safety index representing public safety in the town on the basis of the images captured by the in-vehicle camera 10 or the fixed camera 20 and the released information. Hereinafter, variations of a method of deriving the public safety index will be described in the respective embodiments.
The acquirer 110 acquires the image data and the released information and causes the storage 150 to store them as image data 151 and released information 152. The storage 150 is realized by an HDD, a flash memory, or a RAM, for example. In the storage 150, the image data 151 is organized for each section in a chronological order, for example. The section is a specific section along a specific road, and more specifically, the section is a road corresponding to one block.
The released information 152 is organized as chronological information for each release period (for example, each release year) that is periodically reached with a finer granularity than the aforementioned sections, for example.
The deriver 120 includes, for example, a target section selector 121, an image analyzer 122, and a predictor 123.
The target section selector 121 selects a target section as a target of prediction from sections. For example, the target section selector 121 may select, as a target section, a section with a rate of change in the released information 152 between a first timing and a second timing that is a reference value among the sections. As described above, in a case in which a granularity of the released information 152 is finer than that of the section, the target section selector 121 obtains one scalar value by obtaining an average value of the released information 152 in the section and defines it as a determination target. The first timing is the release timing previous to the most recent timing (2017 in the example in
The image analyzer 122 analyzes an image corresponding to the target section selected by the target section selector 121, thus evaluating a state of a specific object included in the image, and outputs evaluation points.
The image analyzer 122 uses an object state recognition model 153 to perform the processing of recognizing a state of an object.
Further, the image analyzer 122 evaluates a state of a recognized specific object using an object state evaluation table 154 and outputs evaluation points.
The predictor 123 derives a public safety index representing a public safety state of the target section in the future on the basis of the total penalty calculated by the image analyzer 122 and the released information 152 of the target section. On the assumption that it is 2018 now, for example, the predictor 123 derives a public safety index in the future (2019, for example) on the basis of Equation (1) defined in advance as a prediction model 155. In the equation, [total penalty (2018)] is a total penalty based on images acquired in 2018. Hereinafter, this will be expressed as “a total penalty in 2018” in some cases.
[Public safety index(2019)]=F{[total penalty(2018)],[released information (2018)],[released information(2017)], . . . [released information(n years ago)] (1)
Although Equation (1) described above are expressed such that only images related to one acquisition data are used as input data in regard to the images, images in a chronological order may be used as input data in regard to images similarly to the released information 152. In this case, the predictor 123 may derive the public safety index on the basis of total penalties based on images over a plurality of years, such as a total penalty based on images acquired in 2018, a total penalty based on images acquired in 2017, and a total penalty based on images acquired in 2016.
The prediction model 155 represented by F in Equation (1) is a function determined on a rule basis, for example. Instead of this, the prediction model 155 may be a function representing a model that has finished learning through machine learning.
First, the target section selector 121 selects sections with large temporal changes in released information 152 as target sections (Step S100).
Next, the prediction device 100 performs processing in Steps S102 to S106 on all the target sections selected in Step S100. First, the image analyzer 122 reads images in a focused target section, recognizes information of specific objects (Step S104), and calculates a total penalty on the basis of states of the recognized specific objects (Step S106). Then, the predictor 123 derives a public safety index on the basis of the total penalty and the released information 152 for the target section (Step S106).
According to the prediction device 100 in the aforementioned first embodiment, it is possible to appropriately estimate a public safety state in the future.
Hereinafter, a second embodiment will be described. Although the object state evaluation table 154 that defines a penalty for each state of a specific object is preset by some method in the first embodiment, the object state evaluation table 154 is generated through machine learning in the second embodiment.
The penalty learner 130A selects one image (it is desirable that the acquisition date is sufficiently older than now) from among a plurality of images in order and generates a feature vector by assigning 1 to a case that corresponds to each state of a specific object and assigning 0 to a case that does not correspond thereto for the selected image. The feature vector is represented by Equation (2). In the equation, fk is a kth “state of a specific object” and is a binary value of 0 or 1. n is the number (type) of “the states of the specific objects” assumed.
(Feature vector)=(f1,f2, . . . ,fn) (2)
Then, the penalty learner 130A learns coefficients α1 to αn such that a correlation between values obtained by multiplying the respective elements of the feature vector by the respective coefficients α1 to αn as penalty and teacher data is maximized in regard to a plurality of target sections (or images). The teacher data represents a public safety state of the target section regarding the selected image in the future, for example, and released information 152 may be used as teacher data, or other information may be used as teacher data. Such processing can be represented by a numerical equation as Equation (3). In the equation, argmax is a function for obtaining a parameter representing a maximum value, and Correl is a correlation function. The teacher data is information of a year of a desired number of years after the acquisition data of the image. In a case in which the acquisition date of the image is 2015, for example, teacher data in 2017 and 2018 are input as parameters of Equation (3).
α1 to αn=arg maxα1 to αn[Correl{Σk-1n(fk×αk)},(teacher data)] (3)
Processing after the object state evaluation table 154A is generated is similar to that in the first embodiment, and description will be omitted.
According to the prediction device 100A in the aforementioned second embodiment, it is possible to appropriately estimate a public safety state in the future. It is possible to perform estimation with higher accuracy by generating the object state evaluation table 154A through machine learning as compared with a case in which the object state evaluation table 154A is determined on a rule basis.
Hereinafter, a third embodiment will be described. Although the released information 152 is used as input data for deriving a public safety index in the first and second embodiments, the released information 152 is used mainly as teacher data for machine learning in the third embodiment.
A predictor 123B according to the third embodiment derives a public safety index representing a public safety state of a target section in the future on the basis of a total penalty calculated by the image analyzer 122. On the assumption that it is 2018 now, for example, the predictor 123B derives a public safety index in the future (2019, for example) on the basis of Equation (4) defined in advance as a prediction model 155
[Public safety index(2019)]=Q{[total penalty(2018)],[total penalty(based on images acquired in 2017)],[total penalty(based on images acquired in 2016)]} (4)
The prediction model 155B represented by Q in Equation (4) is a function representing a model that has finished learning through machine learning performed by the prediction model learner 130B using the released information 152 as teacher data.
In the third embodiment, the object state evaluation table 154A may be generated through machine learning in the third embodiment as well similarly to the second embodiment. Since other processing is similar to that in the first embodiment, description will be omitted.
According to the prediction device 100B in the aforementioned third embodiment, it is possible to appropriately estimate a public safety state in the future. It is possible to perform estimation with higher accuracy by generating the prediction model 155B through machine learning as compared with a case in which the prediction model 155B is determined on a rule basis.
Hereinafter, a fourth embodiment will be described. Although the image analyzer 122 calculates the total penalty in the first to third embodiments, this is omitted in the fourth embodiment, and mages are input directly to the prediction model.
A predictor 123C according to the fourth embodiment inputs image data 151 of a target section and released information 152 to the prediction model 155C and derives a public safety index.
The prediction model learner 130C determines parameters of the CNN and the DNN illustrated in
In the fourth embodiment, the released information 152 may be used only as teacher data for generating the prediction model 155C mainly through machine learning without being used as data input to the prediction model 155C.
According to the prediction device 100C in the aforementioned fourth embodiment, it is possible to appropriately estimate a public safety state in the future. Since image analysis processing is omitted, there is a probability that higher-speed processing can be realized.
Although the embodiments regarding modes for carrying out the invention have been described above, the invention is not limited to such embodiments, and various modifications and replacements can be made without departing from the gist of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2018-215602 | Nov 2018 | JP | national |