Technical Field
The present invention relates to Recursive Neural Networks (RNN), and more particularly training RNNs in predicting future events.
Description of the Related Art
Much of the current future prediction work with RNNs focuses on detecting entailment or paraphrase relationships between two sentences or events. Work on detecting temporal relationships is needed. Some models are designed solely for predicting textual order of events instead of semantic order of events. As a consequence, some models do not model the fact that some specific events will not occur in the future as a consequence of the occurrence of a previous event. As an example, once an apple is fully consumed, it is unlikely that the next future event will be to “eat the apple.” Current models do not attempt to remove the specific events that will not occur in the future, because of the occurrence of a previous event, from the set of possible future events.
While current efforts focus on detecting entailment or paraphrase relationships between two sentences or events, there is little work on detecting temporal relationships. One line of research, tries to extract “what happens-after an event occurs” relationships from large collections of text using bootstrapping methods utilizing resources such as VerbOcean. In the context of script learning, another line of work, uses corpora statistics such as event bi-grams to define probabilities of what the next possible event will be.
However, such models cannot generalize situations of new events that have not been observed before. These models are designed for predicting textual order of events instead of semantic order of events. What is needed is an ability to train a recursive neural network (RNN) in predicting the occurrence of future events. Further, what is needed is a method for the RNN to learn how to make accurate predictions of future events and for the RNN to take action automatically in hazardous situations in order to mitigate risk to human life and damage to property.
According to an aspect of the present invention, a video camera device for video-based workplace safety is provided. The camera device includes at least one imaging sensor configured to capture one or more video sequences in a workplace environment having a plurality of machines therein. The video camera further includes a processor. The processor is configured to generate a plurality of embedding vectors based on a plurality of observations. The observations include (i) a subject, (ii) an action taken by the subject, and (iii) an object on which the subject is taking the action on. The subject and object are constant. The processor is further configured to generate predictions of one or more future events based on one or more comparisons of at least some of the plurality of embedding vectors. The processor is also configured to generate a signal for initiating an action to the at least one of the plurality of machines to mitigate harm to the at least one item.
According to another aspect of the present invention, a video camera system for performing video-based workplace safety is provided. The video camera system for performing video-based workplace safety includes a plurality of video cameras, each including at least one imaging sensor configured to capture one or more video sequences in a workplace environment having a plurality of machines therein, and a processor configured to generate using the RNN, a plurality of embedding vectors based on a plurality of observations, wherein the observations include (i) a subject, (ii) an action taken by the subject, and (iii) an object on which the subject is taking the action on, wherein the subject and object are constant, generate predictions of one or more future events based on one or more comparisons of at least some of the plurality of embedding vectors; and generate a signal for initiating an action to the at least one of the plurality of machines to mitigate harm to the at least one item.
These and other features and advantages will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings.
The disclosure will provide details in the following description of preferred embodiments with reference to the following figures wherein:
In accordance with the present invention, systems and methods are provided for training RNNs to predict future events and in hazardous situations, to automatically take action in order to mitigate harm to human life or to prevent significant damage to property.
Referring now in detail to the figures in which like numerals represent the same or similar elements and initially to
A storage device 122 and a second storage device 124 are operatively coupled to system bus 102 by the I/O adapter 120. The storage devices 122 and 124 can be any of a disk storage device (e.g., a magnetic or optical disk storage device), a solid state magnetic device, and so forth. The storage devices 122 and 124 can be the same type of storage device or different types of storage devices. In some embodiments, the RNN can be stored in storage accessible by the system 100, such as storage devices 122, 124 or a network attached storage.
A speaker 132 is operatively coupled to system bus 102 by the sound adapter 130. A transceiver 142 is operatively coupled to system bus 102 by network adapter 140. A display device 162 is operatively coupled to system bus 102 by display adapter 160.
A first user input device 152, a second user input device 154, and a third user input device 156 are operatively coupled to system bus 102 by user interface adapter 150. The user input devices 152, 154, and 156 can be any of a keyboard, a mouse, a keypad, an image capture device, a motion sensing device, a microphone, a device incorporating the functionality of at least two of the preceding devices, and so forth. Of course, other types of input devices can also be used. The user input devices 152, 154, and 156 can be the same type of user input device or different types of user input devices. The user input devices 152, 154, and 156 are used to input and output information to and from system 100.
The RNN interface 172 can also alternatively engage with the system for training the RNN, screening video image data 174 for automatic image recognition, and can also actuate mitigating action through an actuator mechanism 182 in order to protect human life or prevent destruction of property based on the prediction of future events by the RNN. The imaging sensor 176 can capture image data available for the RNN through the RNN Interface 172. The sound sensor 178 can sense sound available for the RNN through the RNN Interface 172. The video camera 180 can capture data available for the RNN through the RNN Interface 172.
Of course, the processing system 100 may also include other elements (not shown), as readily contemplated by one skilled in the art, as well as omit certain elements. For example, various other input devices and/or output devices can be included in processing system 100, depending upon the particular implementation of the same, as readily understood by one of ordinary skill in the art. For example, various types of wireless and/or wired input and/or output devices can be used. Moreover, additional processors, controllers, memories, and so forth, in various configurations can also be utilized as readily appreciated by one of ordinary skill in the art. These and other variations of the processing system 100 are readily contemplated by one of ordinary skill in the art given the teachings of the present principles provided herein.
It is to be appreciated that processing system 100 may perform at least part of the method described herein including, for example, at least part of method 200 of
Also, it is to be appreciated that system 700 described below with respect to
Referring now to
Referring now to
The environment 400 at least includes at least one safety system or device 422, at least one video camera 418, a computer processing system 410 (labeled “server” in
The at least one video camera 418 is configured to capture one or more video sequences that are processed by the computer processing system 410.
The computer processing system 410 is configured to perform large-margin high-order deep learning with auxiliary tasks for video-based anomaly detection. Moreover, the computer processing system 410 is configured to perform an action (e.g., a control action) on the controlled system, machine, and/or device 414 responsive to detecting an abnormality. Such action can include, but is not limited to, one or more of: powering down the controlled system, machine, and/or device 422 or a portion thereof; powering down, e.g., a system, machine, and/or a device that is affected by another device, opening a valve to relieve excessive pressure, locking an automatic fire door, and so forth. As is evident to one of ordinary skill in the art, the action taken is dependent upon the type of abnormality and the controlled system, machine, and/or device 414 to which the action is applied.
The safety system or device 422 can implement the aforementioned or other action. The safety system or device 422 can be a shut off switch, a fire suppression system, an overpressure valve, and so forth. As is readily appreciated by one of ordinary skill in the art, the particular safety system or device 422 used depends upon the particular implementation to which the present invention is applied. Hence, the safety system 422 can be located within or proximate to or remote from the controlled system, machine, and/or device 422, depending upon the particular implementation.
In the embodiment shown in
Referring now to
Referring now to
At step 810, capture one or more video sequences in a workplace environment having a set of machines therein. At step 820, generate a plurality of embedding vectors based on a plurality of observations, wherein the observations include (i) a subject, (ii) an action taken by the subject, and (iii) an object on which the subject is taking the action on, wherein the subject and object are constant. At step 830 generate predictions of one or more future events based on one or more comparisons of at least some of the plurality of embedding vectors. At step 840, generate a signal for initiating an action to the at least one of the plurality of machines to mitigate harm to the at least one item.
A Stanford dependency parserun with a co-reference resolution the English Wikipedia. Subsequently, for each article a list events f the form (subject, action, object) sorted in the order of occurrence. All words are lemmatized, and for subject and object WH-pronouns are not considered. Next, are extracted positive examples with the same subject and the same object: (S, V1, O)=>t (S, V2pos, O), if (S, V1, O) occurs before (S, V2pos, O) in an article. V1=>t V2pos is listed in VerbOcean as happens-after and therefore (V1=>V2) according to WordNet.
For each positive relation, negative relations of the form are selected (S, V1, O)=>t(S, V2neg, O), by randomly selecting without replacement a V2neg such that V2neg is different from V1 and V1=>t V2neg is not listed in VerbOccan as happens-after.
The event (S, V2neg, O) occurs at least once in the corpus. This requirement helps to respect the selectional preference of V2neg.
Future prediction data set is denoted by F. Examples of the created data are shown in Table 1 (upper-half). Due to the limited coverage of VerbOcean, several negative examples appear equally likely than the positive examples.
Table 1 shows examples of future prediction data. (S, V1, O)=>t (S, V2pos, O) and other possible future events (S, V2neg, O) that are considered to be less likely than (S, V2pos, O) are shown.
Additionally, another data set FS is shown where the negative relations are selected by additionally adding the requirement:
The resulting data set contains positive examples, where each positive example has on average 4 corresponding negative examples. Examples of the created data can be seen in Table 1 (lower half). The statistics of both data sets are shown in Table 2.
In an embodiment, a function provides a linear combination of the word embeddings of words in e1 and e2 and then passes it to two non-linear functions.
The FCN model only performs a linear combination of the word embeddings of words in e1 and e2, and subsequently the combination is operated on by two non-linear functions.
Let xp1ε and xp2ε be the word embeddings of the action of the first and second event respectively. Furthermore, let x5 and x0, be the word embeddings of the subject and object, respectively. We define:
y=M
s
x
s
+M
p1
x
p1
+M
p2
x
p2
+M
o
x
o (1)
and then l(e1,e2)=sTg2(A(g1(y))) (2)
where g1 and g2 are the component-wise non-linearity functions which both are set to rectifier, and A ε and s ε.
Training is performed minimizing the rank margin loss:
Lp(a,b)=max {0,x−l(e1,e2pos)+l(e1,e2neg)} (3)
where e1=>t e2pos and e1 NOT=>t e2neg are positive and negative samples from the training corpus, and t is some threshold value, for example 1. e2pos are events that satisfy e1=>t e2 while e2neg are events that do not. All parameters of the model are trained using stochastic gradient descent and drop-out procedures before each non-linear function.
In an embodiment of the present invention, a Semantic Matching Energy Function (SMEF) is provided. The SMEF utilizes the event scheme previously used to embed each event, and uses margin rank loss as in Equation 3.
Limiting the variable data within the observations results in a reduction in the time lag in generating predictions. Limiting the variable data further reduces computational costs involved in generating predictions. Further still, limiting the variable data results in generated predictions with higher accuracy.
In an embodiment, the RNN is deployed in police hostage negotiation situations, wherein the RNN is trained to predict the likelihood of future events given the immediate actions of a suspect or perpetrator. The RNN learns to predict the occurrence of future events, and is automatically configured to take immediate action if harm to human life or significant damage to property is imminent. Automatic actions taken can include automatically securing magnetic door locks in a facility, alerting police officers of the predicted event, and providing annunciation of the predicted event at remote locations.
In another embodiment, the RNN is deployed as an automatic police safety protection system. The police safety protection system is operated by the RNN and receives image data from the police officer's body armor camera and police vehicle camera. The RNN is trained to predict future events based on a suspect's actions. The RNN is configured to automatically mitigate a health or safety risk to the police officers, when the RNN predicts a future event that would bring harm to the police officers. Automatic actions can include deploying additional body armor devices for the police officers, alerting police officers of the predicted event, and providing annunciation of the predicted event at remote locations.
In another embodiment, the RNN is deployed within an industrial facility and is trained to monitor hazardous conditions. In particular, in power generation facilities utilizing fossil fuel boilers, the RNN is deployed to monitor the boiler room personnel and to take immediate action, based on observed personnel actions, to prevent harm to human life or significant property damage. Automatic actions can include shutting down a boiler or furnace, automatic shutdown of equipment or preventing human access to hazardous areas.
Embodiments described herein may be entirely hardware, entirely software or including both hardware and software elements. In a preferred embodiment, the present invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.
Embodiments may include a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. A computer-usable or computer readable medium may include any apparatus that stores, communicates, propagates, or transports the program for use by or in connection with the instruction execution system, apparatus, or device. The medium can be magnetic, optical, electronic, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a propagation medium. The medium may include a computer-readable storage medium such as a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk, etc.
Each computer program may be tangibly stored in a machine-readable storage media or device (e.g., program memory or magnetic disk) readable by a general or special purpose programmable computer, for configuring and controlling operation of a computer when the storage media or device is read by the computer to perform the procedures described herein. The inventive system may also be considered to be embodied in a computer-readable storage medium, configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner to perform the functions described herein.
A data processing system suitable for storing and/or executing program code may include at least one processor coupled directly or indirectly to memory elements through a system bus. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code to reduce the number of times code is retrieved from bulk storage during execution. Input/output or I/O devices (including but not limited to keyboards, displays, pointing devices, etc.) may be coupled to the system either directly or through intervening I/O controllers.
Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters.
The foregoing is to be understood as being in every respect illustrative and exemplary, but not restrictive, and the scope of the invention disclosed herein is not to be determined from the Detailed Description, but rather from the claims as interpreted according to the full breadth permitted by the patent laws. It is to be understood that the embodiments shown and described herein are only illustrative of the principles of the present invention and that those skilled in the art may implement various modifications without departing from the scope and spirit of the invention. Those skilled in the art could implement various other feature combinations without departing from the scope and spirit of the invention. Having thus described aspects of the invention, with the details and particularity required by the patent laws, what is claimed and desired protected by Letters Patent is set forth in the appended claims.
This application claims priority to Provisional Application 62/300,968 filed on Feb. 29, 2016, incorporated herein by reference in its entirety. Further, this application is related to concurrently filed application titled “RECURSIVE NEURAL NETWORKS ON FUTURE EVENT PREDICTION”, attorney docket No. 15070A and application No. TBD.
Number | Date | Country | |
---|---|---|---|
62300968 | Feb 2016 | US |