Procedure for detecting a safety-relevant event within a passenger cabin of a railway vehicle
Patent Information
- Application Number
- ES2022173166T
- Authority / Receiving Office
- ES · ES
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-07-01
- Filing Date
- 2022-05-13
- Publication Date
- 2026-11-18
- Estimated Expiration
- 2042-05-13
AI Technical Summary
Existing methods for detecting safety-relevant events in rail vehicle passenger cabins are not precise and flexible, as they rely on recognizing specific actions or movements rather than characteristic velocity patterns, and often require additional hardware.
A method that utilizes optical flow analysis from camera sensors to detect safety-relevant events by identifying characteristic velocity patterns, independent of object position, using rectified image elements, histograms, and trained artificial intelligence to enhance precision and flexibility.
Enables precise and flexible detection of safety-relevant events by focusing on optical flow patterns, reducing reliance on specific image data and position, and utilizing existing CCTV cameras, thus improving detection accuracy and reducing training complexity.
Smart Images

Figure 00000015_0000 
Figure 00000016_0000 
Figure 00000017_0000
Abstract
Description
[0001] The invention relates to a method for detecting a safety-relevant event within a passenger cabin of a rail vehicle.
[0002] The future of mobility lies in the operation of intelligent and autonomous vehicles. Onboard safety presents a challenge that must be guaranteed, especially for rail vehicles in local public transport. Safety for public transport encompasses not only intelligent driving but also ensuring that any dangerous situations on board are detected and reported in real time.
[0003] EP 3 499 473 A1 describes a method for the automated detection of a hazardous situation in a monitored area. In this method, video data from the monitored area is captured. The captured video data is converted into optical flow data. Subsequently, a classifier trained on relevant movement patterns is applied to the optical flow data in real time. Finally, a hazardous situation is determined based on the classification result.
[0004] In SONI UTKARSH ET AL: "Real-time hand tracking using integrated optical flow and CAMshift algorithm", 2016 SECOND INTERNATIONAL CONFERENCE ON RESEARCH IN COMPUTATIONAL INTELLIGENCE AND COMMUNICATION NETWORKS (ICRCICN), IEEE, September 23, 2016 (2016-09-23), pages 135-140, XP033039959, DOI: 10.1109 / ICRCICN.2016.7813645, a video-based gesture recognition system with mathematical video data analysis for a human-machine interface is described.
[0005] German patent application DE 10 2007 031 302 A1 describes a device for detecting and / or classifying a motion pattern in an image sequence of a surveillance scene with a large number of moving objects. The device comprises an interface for inputting the image sequence, a calculation module for determining an optical flow field in the surveillance scene by evaluating the image sequence, and a detection module, which is configured programmatically and / or circuit-wise, to compare the optical flow field and / or parts thereof with one or more patterns in order to detect the motion pattern in the image sequence.
[0006] The invention is based on the objective of providing an improved method for detecting a safety-relevant event within a passenger cabin of a rail vehicle.
[0007] This problem is solved by the method for detecting a safety-relevant event within a passenger cabin of a rail vehicle according to the independent claim. Advantageous embodiments are the subject of the dependent claims.
[0008] The invention is defined by the features of claim 1 and relates to a method for detecting a safety-relevant event within a passenger cabin of a rail vehicle, comprising: Receiving image data from a camera sensor viewing the interior of the passenger cabin of the rail vehicle; determining the optical flux of at least one image element of the image data for a predetermined period; determining the change in light within each image element for the predetermined period; combining the determined optical flux of the respective image element with the information on the change in light within an image element; detecting a safety-relevant event based on a characteristic velocity pattern of the determined optical flux by performing motion detection on the determined optical flux, wherein the safety-relevant event includes a movement of an object within the passenger cabin that poses a safety risk, and wherein the safety-relevant event is detected based on the combined information; and outputting a warning message relating to the safety-relevant event.
[0009] This provides the technical advantage of an improved method for detecting safety-relevant events within a passenger cabin of a rail vehicle. To detect safety-relevant events based on image data from at least one camera sensor, an optical flow of the recorded image data is determined in order to identify a characteristic velocity pattern of a safety-relevant event based on this optical flow. The safety-relevant event is characterized by a movement of an object within the passenger cabin that poses a safety risk. By considering the optical flow and recognizing the characteristic velocity pattern to identify the respective safety-relevant event, it is possible to detect safety-relevant events independently of the specific image data recorded.The detection of the safety-relevant event can be performed using the respective camera sensor. Furthermore, the detection of the safety-relevant event is independent of the object's position within the passenger cabin. Since the detection of the safety-relevant event is not based on recognizing the actual action or movement, but rather indirectly through the determination of a characteristic velocity pattern, the position within the image data or the passenger cabin where the characteristic velocity pattern is detected plays a subordinate role. This allows for increased flexibility and precision in the detection of safety-relevant events.
[0010] For the purposes of this application, an image recording is a video recording from a corresponding video camera. Advantageously, light effects are recognized as such and can therefore be filtered out. This allows for the technical advantage of further increasing the precision of detecting safety-relevant events. By feeding the motion detection system with the additional information of a specific change in light within an image element, the motion detection system can be trained more efficiently to recognize safety-relevant events. Optical flow data that, for example, lead to comparable movement patterns but are not based on safety-relevant events, but rather on extreme changes in light, can thus be excluded from the detection of safety-relevant events.
[0011] According to one embodiment, determining the optical flux includes: Rectifying the image data from the camera sensor and creating a rectified image of the passenger cabin; dividing the rectified image into a plurality of image elements; and determining the optical flow for each of the image elements.
[0012] This offers the technical advantage that the precise determination of the optical flow through image data rectification enables the creation of rectified images. Velocity distortions of movements, depending on the positioning of the moving object relative to the camera sensor, can be avoided through rectification. By dividing the rectified image into multiple image elements, the optical flow can be determined as precisely as possible for two-dimensional rectified images.
[0013] According to one embodiment, determining the optical flux includes: Identifying a distinctive point within each image element of the rectified image; determining the optical flow for each pair of immediately consecutive frames of the image data based on the identified distinctive points for each image element; and creating a histogram of the determined optical flow for the frames of the image acquisition during the predetermined time period.
[0014] This approach offers the technical advantage of enabling the most precise possible determination of optical flow and, consequently, the most precise possible detection of safety-relevant events. By identifying the key point and calculating the optical flow for successive frames of the image data in relation to this key point, a precise determination of the optical flow is achieved. Creating a histogram allows for an efficient visualization of the optical flow data. Optical flow data, in this context, refers to data generated for determining the optical flow and includes the relevant information.
[0015] According to one embodiment, the identification of distinctive points within the image elements is effected by executing an interest operator, wherein the interest operator is given by a Harris vertex detection algorithm or a Shi-Tomasi algorithm.
[0016] This allows for the technical advantage of efficient and precise identification of key points within the image elements.
[0017] According to one embodiment, the specific optical flow of a picture element for each two successive frames comprises at least one velocity vector with a velocity direction and a velocity value, wherein the velocity vectors of a plurality of optical flows for a plurality of temporally successive frames are represented in the histogram, and wherein the velocity vectors of the optical flows of the plurality of frames are projected onto predetermined spatial directions in the histogram.
[0018] This achieves the technical advantage of enabling the most precise possible detection of safety-relevant events based on the velocity vectors of the optical flow in the generated histograms through motion detection. By projecting the velocity vectors of the optical flow for the respective image elements onto predetermined spatial directions in the histograms, the detection of safety-relevant events based on the velocity vectors of the histograms can be facilitated by the appropriately trained motion detection system. Projecting onto these predetermined spatial directions reduces the possible spatial directions of the velocity vectors to a predetermined number.This allows motion detection to be efficiently trained to identify safety-relevant events in the form of characteristic velocity patterns based on the velocity vectors of the optical flow in the respective histograms of the corresponding image elements. Projecting the velocity vectors onto predetermined spatial directions thus facilitates the training of the motion detection system, thereby increasing the precision of detecting safety-relevant events.
[0019] According to one embodiment, the method further comprises: Determining the driving state of the rail vehicle; and / or assigning an identification to each image element; and combining the specific optical flow of the respective image element with the information of the driving state of the train and / or the identification of an image element, whereby the safety-relevant event is recognized based on the combined information.
[0020] This allows for the technical advantage of further increasing the precision of safety-relevant event detection. By feeding additional information into the motion detection system, such as the vehicle's operating state, the system can be trained more efficiently to recognize safety-relevant events. Optical flow data, which might lead to similar movement patterns but are not based on safety-relevant events, but rather on the vehicle's movements, can thus be excluded from the detection of safety-relevant events.
[0021] According to one embodiment, the safety-endangering movement includes: a safety-endangering action by a passenger towards another passenger and / or a safety-endangering unforeseen opening of a door of the rail vehicle and / or damage to the rail vehicle in the form of a broken window.
[0022] This allows for the technical advantage of broad applicability of the inventive method for the detection of safety-relevant events that may occur during typical operation of a rail vehicle, for example in local passenger transport.
[0023] According to one embodiment, image data are data from a CCTV camera installed inside the passenger cabin of the rail vehicle.
[0024] This offers the technical advantage that the CCTV cameras already installed in the passenger cabin can be used to detect safety-relevant events. The installation of additional hardware components can therefore be avoided.
[0025] In one embodiment, the optical flow is determined by executing a Lucas-Kanade algorithm.
[0026] This allows for the technical advantage of a precise calculation of the optical flow.
[0027] According to one embodiment, the motion detection is designed as a trained artificial intelligence, wherein the artificial intelligence is trained to detect a safety-endangering movement of an object inside the passenger cabin based on the characteristic velocity patterns of the specified optical flow.
[0028] This offers the technical advantage of enabling powerful, fast, and precise detection of safety-relevant events by using appropriately trained artificial intelligence for motion detection. By training the artificial intelligence, which can be, for example, a neural network or a support vector machine, deterministic detection of safety-relevant events based on optical flow data can be achieved. Training the artificial intelligence on optical flow data to detect safety-relevant events avoids the need for training directly based on the image data from the camera sensors. The trained motion detection is therefore independent of the specific image data used.The system is compatible with the corresponding camera sensors and can therefore be used with any camera sensor. Furthermore, the detection of safety-relevant events by executing the appropriately trained motion detection on the optical flow data is independent of the positions or actions of the respective objects performing the safety-relevant movements within the passenger cabin. By recognizing and determining only the characteristic velocity or movement patterns, the position at which the respective movement or safety-relevant event occurred within the passenger cabin plays a subordinate role. As long as the characteristic velocity pattern can be recognized, events at any position or location within the passenger cabin can be detected, regardless of whether events at such locations within the passenger cabin were included in the training data.This simplifies the training process, as the artificial intelligence or motion recognition system to be trained only needs to be trained on optical flow data, which can be based on any different image data.
[0029] A second aspect is described as a method for training a motion recognition system according to the invention, comprising: Creating a training dataset, wherein the training dataset comprises values of an optical flow for a plurality of image elements of image data of at least one interior of at least one passenger cabin of at least one rail vehicle; performing motion detection on the training dataset and training the motion detection to recognize a safety-relevant event based on a characteristic velocity pattern of the specified optical flow by machine learning, wherein the safety-relevant event comprises a safety-endangering movement of an object inside the passenger cabin.
[0030] This allows for the technical advantage of providing an improved method for training motion detection with the aforementioned technical benefits. By training the motion detection system on optical flow data, which can be based on any number of different image data sources, increased flexibility and a simplified training process can be achieved by enabling independence from the specific image data used.
[0031] According to one embodiment, creating the training dataset includes: Creating a set of image data of at least one interior of a passenger cabin of at least one rail vehicle, wherein the image data depict safety-relevant events; calculating the optical flow for the plurality of image data, wherein the optical flow is calculated for a plurality of image elements of the image data and for a plurality of frames of the image data within a predetermined period; creating a histogram for each image element for the plurality of frames during the predetermined period of the op tic flow by projecting velocity vectors of the optical flow onto predetermined spatial directions; and annotating the training dataset and identifying the characteristic motion patterns of safety-relevant events.
[0032] This allows for the technical advantage of determining the optical flow data as precisely as possible based on the respective image data. The precise determination of the optical flow, or rather the respective optical flow data, enables increased training precision. Furthermore, annotating the training data and marking the characteristic movement patterns of safety-relevant events within the training data allows for even greater precision in the detection of these events.
[0033] According to one embodiment, creating the set of image data includes: Correcting the image data and creating corrected image captures; and dividing the corrected image captures into a plurality of image elements; creating the training dataset further includes: Determining a change in light within each image element for the predetermined period; and / or determining a driving state of the respective rail vehicle; and / or assigning an identification to each image element; and combining the determined optical flux of the respective image element with the information of the change in light within an image element and / or the information of the driving state of the train and / or the identification of an image element.
[0034] This can achieve the technical advantage of improving the quality of the training data and, consequently, the training itself.
[0035] According to a third aspect, a computing unit is provided, wherein the computing unit is configured to execute the method for detecting a safety-relevant event within a passenger cabin of a rail vehicle according to one of the preceding embodiments and / or a method for training a motion detection system according to one of the preceding embodiments.
[0036] According to a fourth aspect, a computer program product is comprehensively provided with instructions which, when the program is executed by a data processing unit, cause it to execute the method for detecting a safety-relevant event within a passenger cabin of a rail vehicle according to one of the preceding embodiments and / or a method for training a motion detection system according to one of the preceding embodiments.
[0037] The features and advantages of this invention described above, as well as the manner in which they are achieved, will become clearer and more easily understood through the explanations of the following highly simplified, schematic representations of preferred embodiments. These show: FIG 1 a schematic representation of a system for detecting a safety-relevant event within a passenger cabin of a rail vehicle according to one embodiment; FIG 2 a flowchart of a procedure for detecting a safety-relevant event within a passenger cabin of a rail vehicle according to one embodiment; FIG 3 a schematic representation of image data and a rectified image of the interior of a passenger cabin of a rail vehicle; FIG 4 another schematic representation of a rectified image of the interior of a passenger cabin of a rail vehicle; FIG 5 a schematic representation of a histogram of an optical flow; FIG 6 a flowchart of a method for training a motion detection system according to one embodiment; and FIG 7 a schematic representation of a computer program product.
[0038] FIG 1 Figure 1 shows a schematic representation of a system 200 for detecting a safety-relevant event within a passenger cabin 202 of a rail vehicle 201 according to an embodiment.
[0039] The illustrated system 200 is configured to execute the inventive method for detecting a safety-relevant event within a passenger cabin 202 of a rail vehicle 201. For this purpose, the system 200 comprises at least one camera sensor 205, which is arranged and configured in a passenger cabin 202 of a rail vehicle 201 to view an interior 203 of the passenger cabin 202. The system 200 further comprises a processing unit 209 with motion detection 211, which can be implemented on the processing unit 209. The camera sensor 205 can be configured as a CCTV camera and record image data 207 of the interior 203 of the passenger cabin 202 of the rail vehicle 201. The image data 207 can, for example, be in the form of video data.
[0040] To detect a safety-relevant event, the image data 207 from the camera sensor 205 are transmitted to the processing unit 209 via a data transmission 210. By executing motion detection 211 on the transmitted image data 207, the motion detection system 211 is configured to detect corresponding safety-relevant events. The motion detection system 211 can be configured as a suitably trained artificial intelligence for this purpose. Furthermore, the motion detection system 211 can be trained to detect safety-relevant events using appropriate training data sets 227 according to the inventive method for training a motion detection system 211.
[0041] FIG 2 Figure 1 shows a flowchart of a method 100 for detecting a safety-relevant event within a passenger cabin 202 of a rail vehicle 201 according to an embodiment.
[0042] The inventive method 100 for detecting a safety-relevant event within a passenger cabin 202 of a rail vehicle 201 can be implemented by a system 200 according to the embodiment in FIG 1 be carried out.
[0043] In a process step 101, image data 207 from at least one camera sensor 205 are initially received, the image data 207 depicting the interior 203 of the passenger cabin 202 of the rail vehicle 201 to be monitored. The camera sensor 205 can, for example, be a CCTV camera and the image data 207 can be configured as corresponding video data.
[0044] Subsequently, in a process step 103, an optical flow 217 of at least one image element 215 of the image data 207 is determined for a predetermined period of time based on the image data 207.
[0045] In a process step 109, the received image data 207 from the camera sensor 205 are first rectified, and correspondingly rectified image recordings 213 of the interior 203 of the passenger cabin 202 are created. An example of such rectification is shown in FIG 3 As shown. Typically, images from surveillance cameras, such as CCTV cameras, can be captured inside passenger cabins using a fisheye lens. By correcting the distortion and creating a corresponding two-dimensional representation of the images, the calculation of the optical flow of image elements within the images is facilitated.
[0046] In a further process step 111, the rectified image 213 is divided into a plurality of image elements 215. FIG 4 is a corresponding division of the rectified image recording 213 from FIG 3 represented in a multitude of image elements 215. The image elements 215 can, for example, be rectangular or square and regularly shaped image elements.
[0047] In a further process step 113, a corresponding optical flux 217 is determined for each of the image elements 215.
[0048] In a further process step 115, a distinctive point within the image element 215 of the rectified image 213 is determined for each image element 215. A distinctive point can be created by executing an interest operator, which can be, for example, a Harris corner detection algorithm or a Shi-Tomasi algorithm.
[0049] In a further process step 117, the corresponding optical flux 217 is determined for each image element 215 based on the identified distinctive points for two immediately consecutive frames of the image data 207. For this purpose, the image data 207, which is configured as video data, is divided into the individual frames of the video recordings from the camera sensor 205, configured as a CCTV camera. Each frame can be individually converted into a rectified image 213. To detect or calculate the optical flux 217, a change in the position of the identified distinctive point of the respective image element 215 is determined for each image element 215 between at least two immediately consecutive frames of the image data 207 or the rectified image 213, according to the usual procedure known from the prior art.
[0050] In a further process step 119, a histogram 219 of the respective determined optical flux 217 is created for each image element 215 for the temporally successive frames of the image acquisition 213. A corresponding histogram 219 is in FIG 5 The histogram 219 comprises a plurality of velocity vectors 221 of the determined optical flux 217 for a plurality of temporally successive frames of the rectified image 213. According to the invention, the optical flux 217 is determined for each image element 215 for a predetermined period. The predetermined period can, for example, be in the range of seconds and comprise a number from 1 to, for example, 20 seconds. The frames of the image 213 that follow each other temporally within the predetermined period are each included in a histogram 219 by calculating the respective velocity vectors 221 of the optical flux 217 for the corresponding image element 215. The velocity vectors 221, which each describe a velocity value and a velocity direction of the calculated optical flux 217, are projected onto predetermined spatial directions 223 in the histogram 219.According to the invention, the number of velocity vectors 221 considered in the histograms 219 depends on the length of the predetermined period for which the optical flux 217 is to be calculated according to the invention, and on the number of frames per second of the camera sensor 205. The number of velocity vectors 221 considered in the histograms 219 is identical for the majority of different image elements 215. According to the invention, a velocity vector 221 is calculated for each frame of the image acquisition and included in the histogram 219.
[0051] The calculation of the optical flux 217 for each of the image elements 215 can be achieved, for example, by executing a Lucas-Kanade algorithm known from the prior art.
[0052] In addition to determining the optical flux 217 in process step 103, in the illustrated embodiment a change in light within each image element 215 between different frames of the rectified image recording 213 is determined in a further process step 121.
[0053] In a further process step 123, a driving state of the rail vehicle 201 is determined. The driving state of the rail vehicle 201 can be, for example, a stationary state of the rail vehicle 201 in a station area or a moving state of the rail vehicle 201 traveling along a track. The driving state can be determined at least for the predetermined period for determining the optical flux 217.
[0054] In a further process step 125, each image element 215 can be assigned an identification. This identification allows each of the image elements 215 of the rectified image 213 to be identified and distinguished from other image elements 215.
[0055] In a further process step 127, the optical flow data of the optical flow 217 calculated for each image element 215 in process step 103 or process step 113 are combined with the information regarding the light change, the driving state, and the identification for each image element 215. This combination can, for example, be represented by a corresponding property vector. The property vector can contain information or entries for each image element 215 regarding the optical flow 217, the light change, the driving state, and the identification.
[0056] In a further process step 105, by executing motion detection 211, a safety-relevant event is detected based on a characteristic velocity pattern 218 using the feature vectors generated in process step 127, which contain information regarding the optical flow 217, the change in light, the driving state, and the identification for each image element 215. As already mentioned, the motion detection 211 can be a suitably trained artificial intelligence, for example, a neural network or a support vector machine, and trained to recognize characteristic velocity patterns 218 based on optical flow data that can be assigned to safety-relevant events.Safety-relevant events that can be detected by such a motion detection system 211 on the acquired optical flow data include safety-relevant movements of objects within the passenger cabin 202 of the rail vehicle 201. Such safety-relevant events can, for example, include actions by one passenger 225 towards another passenger 225 within the passenger cabin 202 that endanger safety. Alternatively or additionally, safety-endangering movements and associated safety-relevant events can include, for example, the unforeseen opening of a door of the rail vehicle and / or damage to a window of the rail vehicle or the unauthorized activation of an emergency brake of the rail vehicle.
[0057] Since the motion detection system 211 is trained to identify characteristic speed patterns of object movements within the passenger cabin 202 that correspond to predefined safety-relevant events, it is able to identify safety-relevant events occurring at any position or location within the passenger cabin 202 based on these characteristic speed patterns. The motion detection system 211 thus operates independently of position.
[0058] In a further process step 107, a corresponding warning message is issued upon detection of a relevant safety event. The warning message can, for example, take the form of a corresponding warning signal, either visual or audible.
[0059] The computing unit 209 can, for example, be integrated into the rail vehicle 201, for instance, in the control cabin of the rail vehicle. Alternatively, the computing unit 209 can be integrated into the camera sensor 205, in which case the camera sensor 205 is configured as a smart sensor. Alternatively, the computing unit 209 can be configured as an external computing unit and located in a suitable monitoring center, for example, in a railway station.
[0060] FIG 3 shows a schematic representation of image data 207 and a rectified image 213 of an interior 203 of a passenger cabin 202 of a rail vehicle 201.
[0061] FIG 3 shows an image of the interior 203 of a passenger cabin 202, which was captured using a camera sensor 205 with a fisheye lens. FIG 3 Furthermore, a corrected image 213 of the same interior space 203 is shown. In the corrected image 213, the distortions of the image data 207 caused by the fisheye lens are corrected.
[0062] FIG 4 shows another schematic representation of a rectified image 213 of an interior 203 of a passenger cabin 202 of a rail vehicle 201.
[0063] FIG 4 shows a rectified image 213 of the interior 203 of the passenger cabin 202 from FIG 3 . In FIG 4 The rectified image 213 is further divided into a plurality of different image elements 215. A corresponding optical flux 217 is calculated for each image element 215. The optical flux 217 is in FIG 4 The velocity vectors 221 pointing in different directions are exemplified by the image 213. In addition to the furnishings of the passenger cabin 202, two passengers 225 are also shown in the image 213. By determining the optical flow 217 for each image element 215 and executing the correspondingly trained motion detection 211 according to the procedure steps described above, a corresponding characteristic velocity pattern 218 of a safety-relevant event can be determined. In the embodiment shown, the safety-relevant event concerns a safety-endangering action by one of the passengers 225 towards the other passenger 225.Through appropriate training of the motion detection system 211, the motion detection system 211 is able to detect corresponding safety-endangering movements of passengers based on the characteristic velocity patterns 218 that accompany such movements and the associated characteristic optical flow data. The hatching shown can also be used to identify the image elements 215 in which the characteristic velocity patterns 218 of the respective specific values of the optical flow 217 describe a characteristic velocity pattern 218. This allows for the localization of the safety-relevant movement of the safety-relevant event within the passenger cabin 202.
[0064] Due to the position-independent determination of the characteristic velocity patterns 218, such an event can also be detected or determined for any other image element 215 by the motion detection 211.
[0065] By taking into account information regarding changes in light or the vehicle's driving state, the motion detection system 211 can be trained to disregard optical flow data that may exhibit a characteristic velocity pattern 218, which is solely attributable to the lighting conditions or the driving state, for the detection of safety-relevant events. Furthermore, by identifying the individual image elements 215, the motion detection system 211 can be trained to consider different image elements 215, in which a safety-relevant event is not expected due to their respective position within the passenger cabin 202, with lower priority when assessing or detecting safety-relevant events.
[0066] FIG 5 shows a schematic representation of a histogram 219 of an optical flow 217.
[0067] The histogram 219 shown comprises a plurality of velocity vectors 221 of the optical flux 217 calculated for a picture element 215 and the predetermined time period. The various velocity vectors 221 of the optical flux 217 are projected onto predetermined spatial directions 223. The histogram 219 shown is merely an example. In particular, the number of different spatial directions 223 may differ from the number shown here.
[0068] FIG 6 shows a flowchart of a method 300 for training a motion detection system 211 according to an embodiment.
[0069] The inventive method 300 for training a motion recognition system 211 can, for example, be implemented by a computing unit 209 according to the [reference to be added]. FIG 1 The embodiment shown is implemented.
[0070] To train the motion detection 211, training data is first created in a process step 301, wherein the training data set comprises values of an optical flow 217 for a plurality of image elements 215 of image data 207 of at least one interior 203 of at least one passenger cabin 202 of at least one rail vehicle 201.
[0071] For this purpose, a set of image data 207 is first created in a process step 305. The image data 207 can depict any passenger cabin 202 of any rail vehicle 201 and originate from different camera sensors 205. The image data 207 are preferably video data that depict at least one interior 203 of a corresponding passenger cabin 202. The image data 207 each comprise safety-relevant events according to the embodiments described above. For example, the image data can depict scenes of violent or safety-endangering behavior by persons or passengers, or another safety-relevant event. Since, according to the invention, not actual actions of the dangerous behavior, but only characteristic speed patterns are detected, the reenactment or simulation of such actions can be used to identify and correct the dangerous behavior.Simulating actual actions generates meaningful training data, which can then be used to precisely train the motion detection system. Alternatively or additionally, the training data can also include real image or video data of actual safety-relevant events, such as violent assaults, accidents involving people inside the passenger cabin, or accident situations involving the rail vehicle. The training dataset can, for example, include a combination of image data from simulated and real safety-relevant events.
[0072] In process step 313, the image data 207 are rectified and a rectified image 213 is acquired. The rectification can be carried out according to process step 109 described above.
[0073] In a further process step 315, the rectified image 213 is divided into a plurality of image elements 215. The division of the rectified image 213 can be carried out according to process step 111 described above.
[0074] Analogous to the above explanations, the image data 207, for example, is structured as video data and comprises a plurality of temporally successive frames.
[0075] In a further process step 307, an optical flux 217 is subsequently determined for each of the image elements 215. The determination of the optical flux 217 can be carried out analogously to process steps 103 and 113.
[0076] In a further process step 309, a histogram 219 is calculated for each image element 215, wherein the histogram 219 comprises, as described above, a plurality of velocity vectors 221 of the optical flux 217 determined for the respective image element 215, the velocity vectors 221 being projected onto predetermined spatial directions 223. The creation of the histogram 219 can be carried out analogously to process step 119 described above.
[0077] In addition, in process step 317, a change in light is determined for each image element 215. This change in light can be determined according to process step 121 described above.
[0078] In a further process step 319, a driving state of the respective rail vehicle 201 is determined for each image element 215. The driving state can be determined analogously to the process step 123 described above.
[0079] In a further process step 321, a corresponding identification can be assigned to each image element 215.
[0080] In a further process step 323, the information regarding the change in light, the driving state, or the identification for each image element 215 is combined with the information regarding the optical flux 217 of the respective image element 215. This combination of information can, for example, be achieved in the form of a corresponding property vector.
[0081] In a further process step 311, the information of the training data set 227 is annotated and consequently the characteristic velocity patterns 218, which are reflected in the respective optical flow data, are marked accordingly as present safety-relevant events.
[0082] Based on a training dataset 227 created in this way, the motion detection 211 is subsequently trained in a process step 303 to recognize safety-relevant events based on the information of the optical flow 217 of the image data 207. The training can be carried out by executing machine learning training methods known from the prior art.
[0083] FIG 7 Figure 400 shows a schematic representation of a computer program product 400, comprising instructions which, when the program is executed by a computing unit, cause it to execute the procedure 100 for detecting a safety-relevant event within a passenger cabin of a rail vehicle and / or the procedure 300 for training a motion detection system.
[0084] In the embodiment shown, the computer program product 400 is stored on a storage medium 401. The storage medium 401 can be any storage medium known from the prior art.
[0085] Although the invention has been illustrated and described in detail by the preferred embodiment, the invention is not limited by the disclosed examples and other variations can be derived by the person skilled in the art without departing from the scope of protection of the invention as defined by the attached claims.
Claims
1. Method (100) for detecting a safety-related event inside a passenger cabin (202) of a rail vehicle (201), comprising: - receiving (101) image data (207) from a camera sensor (205) viewing an interior space (203) of the passenger cabin (202) of the rail vehicle (201); - determining (103) an optical flow (217) of at least one image element (215) of the image data (207) for a predefined period of time; - determining (121) a change in light within each image element (215) for the predefined period of time; - combining (323) the determined optical flow (217) of the respective image element (215) with the information on the change in light within an image element (215); - detecting (105) a safety-related event on the basis of a characteristic speed pattern (218) of the determined optical flow (217) by way of performing a movement detection (211) on the determined optical flow (217), wherein the safety-related event includes a safety-endangering movement of an object inside the passenger cabin (202), wherein the safety-related event is detected based on the combined information; and - outputting (107) a warning notification concerning the safety-related event.
2. Method (100) according to claim 1, wherein determining (103) the optical flow includes: - undistorting (109) the image data (207) from the camera sensor (205) and creating an undistorted image recording (213) of the passenger cabin (202); - segmenting (111) the undistorted image recording (213) into a plurality of image elements (215); and - determining (113) the optical flow (217) for each of the image elements (215).
3. Method (100) according to claim 2, wherein determining the optical flow includes: - ascertaining (115) a distinctive point within each image element (215) of the undistorted image recording (213); - determining (117) the optical flow (217) for two temporally immediately successive frames of the image data in each case on the basis of the ascertained distinctive points for each image element (215); and - creating (119) a histogram (219) of the determined optical flow (217) for the frames of the image recording during the predefined period of time.
4. Method (100) according to claim 3, wherein the ascertainment (115) of distinctive points within the image elements (215) is prompted by executing an interest operator, and wherein the interest operator is provided by a Harris corner detection algorithm or a Shi-Tomasi algorithm.
5. Method (100) according to claim 3 or 4, wherein the determined optical flow (217) of an image element (215) includes at least one speed vector (221) with a speed direction and a speed value for two successive frames in each case, wherein, in the histogram (219), a plurality of speed vectors (221) of the optical flow (217) is represented for a plurality of temporally successive frames, and wherein, in the histogram (219), the speed vectors (221) of the optical flow of the plurality of frames are projected onto predefined spatial directions (223).
6. Method (100) according to one of the preceding claims, further comprising: - ascertaining (123) a travel state of the rail vehicle (201); and / or - assigning (215) an identifier to each image element (215); and - combining (127) information on the travel state of the train and / or the identifier of an image element, wherein the safety-related event is detected based on the combined information.
7. Method (100) according to one of the preceding claims, wherein the safety-endangering movement comprises: a safety-endangering act by one passenger (225) against another passenger and / or a safety-endangering unexpected opening of a door of the rail vehicle and / or damage to the rail vehicle (201) in the form of breaking of a window.
8. Method (100) according to one of the preceding claims, wherein image data (207) is data from a CCTV camera installed inside the passenger cabin (202) of the rail vehicle (201).
9. Method (100) according to one of the preceding claims, wherein the optical flow (217) is determined by executing a Lucas Kanade algorithm.
10. Method (100) according to one of the preceding claims, wherein the movement detection (211) is designed as trained artificial intelligence, and wherein the artificial intelligence is trained to ascertain a safety-endangering movement of an object inside the passenger cabin (202) based on the characteristic speed pattern (218) of the determined optical flow (217).
11. Method (300) for training a movement detection (211) according to one of the preceding claims 1 to 10, comprising: - creating (301) a training dataset (227), wherein the training dataset (227) includes values of an optical flow (217) for a plurality of image elements (215) from image data (207) of at least one interior space (203) of at least one passenger cabin (202) of at least one rail vehicle (201); - executing (303) the movement detection (211) on the training dataset (227) and training the movement detection (211) to detect a safety-related event on the basis of a characteristic speed pattern (218) of the determined optical flow (217) by way of machine learning, wherein the safety-related event comprises a safety-endangering movement of an object inside the passenger cabin.
12. Method (100) according to claim 11, wherein creating (301) the training dataset comprises: - creating (305) a set of image data (207) of at least one interior space (203) of a passenger cabin (202) of at least one rail vehicle (201), wherein the image data (207) maps safety-related events; - determine (307) the optical flow (217) for the plurality of image data (207), wherein the optical flow (217) is calculated for a plurality of image elements (215) of the image data (207) and for a plurality of frames of the image data (207) within a predefined time period; - during the predefined time period, creating (309) a histogram (219) of the optical flow (217) for each image element (215) for the plurality of frames by projecting speed vectors (221) of the optical flow (217) onto predefined spatial directions (223); and - annotating (311) the training dataset (227) and marking the characteristic movement pattern of safety-related events.
13. Method (100) according to claim 12, wherein creating the set of image data (305) comprises: - undistorting (313) the image data (207) and creating undistorted image recordings (213); and - segmenting (315) the undistorted image recordings (213) into a plurality of image elements (215); wherein creating (301) the training dataset further comprises: - determining (317) a change in light within each image element (215) for the predefined period of time; and / or - ascertaining (319) a travel state of the respective rail vehicle; and / or - assigning (321) an identifier to each image element; and - combining (323) the determined optical flow (217) of the respective image element (215) with the information on the change in light within an image element (215) and / or the information on the travel state of the train and / or the identifier of an image element (215).
14. Computing unit (209), wherein the computing unit (209) is designed to carry out the method (100) for detecting a safety-related event inside a passenger cabin (202) of a rail vehicle (201) according to one of the preceding claims 1 to 10 and / or a method (300) for training a movement detection (211) according to one of the preceding claims 11 to 13.
15. Computer program product (400) comprising commands, which, when the program is executed by a data processing unit, prompt it to carry out the method (100) for detecting a safety-related event inside a passenger cabin of a rail vehicle according to one of the preceding claims 1 to 10 and / or a method (300) for training a movement detection (211) according to one of the preceding claims 11 to 13.
