SELF-LEARNING METHOD FOR OBSTACLE DETECTION FOR A RAIL VEHICLE, OBSTACLE DETECTION DEVICE, AND RAIL VEHICLE WITH AN OBSTACLE DETECTION DEVICE
Patent Information
- Application Number
- DE502021005476
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-01-28
- Filing Date
- 2021-12-20
- Publication Date
- 2024-10-31
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Current obstacle detection systems for rail vehicles face challenges in achieving real-time, general applicability, and reliability, particularly in detecting various shapes and forms of obstacles, with existing AI-based solutions being object-specific and requiring extensive training datasets, and lidar-based methods struggling with processing time and parameter optimization.
A method utilizing 3D sensor data to generate 2D image data projected onto a 2D plane aligned with the rail vehicle's perspective, combined with a self-learning AI system to create a 2D anomaly mask, which is then fused with 3D data to identify potential collision obstacles, allowing for real-time detection without prior parameterization and adapting to different routes.
Enables robust, real-time detection of obstacles of any shape or form, reducing data processing effort and eliminating the need for complex training datasets or static sensor installations, while being flexible to changing scenarios and routes.
Description
[0001] The invention relates to a method for obstacle detection in the environment of a rail vehicle. Furthermore, the invention relates to an on-board obstacle detection device for a rail vehicle. Furthermore, the invention relates to a rail vehicle.
[0002] In rail transport, it occasionally happens that objects such as people or road vehicles, shopping carts thrown onto the tracks, or even boulders or fallen trees end up on the track bed. They therefore pose a threat to the safety of rail traffic. In the case of people and road vehicles, they also pose a significant risk due to the potential for collision with a moving rail vehicle. Therefore, such objects must be detected in a timely manner to initiate braking for an approaching rail vehicle, thus preventing a collision between the rail vehicle and the detected objects.
[0003] Therefore, the detection of potential obstacles of any shape or form blocking the tracks is a safety-critical necessity for all types of rail vehicles. There are many approaches to solving this problem, with artificial intelligence (AI)-based solutions being the most promising. Every AI-based solution is only as good as its training database, which is very complex to compile and annotate for rail traffic scenarios. Since potential obstacles of any type and shape must be detected and identified, obstacle detection methods based solely on camera image data are not suitable. These methods learn image features, which are very object-specific and therefore not very suitable for a sufficiently safe general approach.On the other hand, such a general approach can be implemented using a method in which sensor data is collected with lidar sensors and displayed as a point cloud. However, this approach has the disadvantage that the collected data requires a very long processing time, making it unsuitable for real-time requirements. In the aforementioned methods, parameters are usually fixed based on the environment to which they are applied.
[0004] Unlike automobiles, most types of rail vehicles travel on familiar routes with a specific timetable, often traveling these routes multiple times a day. Furthermore, rail routes are generally relatively unchanging and are typically located in isolated areas away from other traffic and are generally free of obstacles that could block their path. In particular, rail vehicles traveling longer distances, such as regional or intercity trains, use routes located in sparsely populated areas, so blocking their path is unlikely. Furthermore, these trains operate according to timetables, meaning they always visit the same area at the same time.As a result of the consistency of space and time, the complexity of the sensor data is reduced and allows algorithms that are difficult to generalize for the automotive sector to be adapted to a rail environment.
[0005] There are different approaches to realize real-time detection of anomalies in a rail area without prior parameterization.
[0006] For example, cameras are used as object detectors. Object detection or image segmentation techniques are used to evaluate the image data generated by the cameras, classifying objects into as many classes as possible. Such AI-based approaches use large, publicly available datasets as their database, which are augmented with additional field data to obtain the best detection results and detect as many objects as possible. The problem with these approaches is that they may not detect all types of obstacles, because some of them may not be included in the training datasets, regardless of how many objects they can actually detect.
[0007] Alternatively, static or fixed sensors are used for object detection. These sensors can include any type of motion sensor, thermal imaging camera, or CCTV camera positioned along a railway line. With motion sensors or thermal imaging cameras, detection of any object can be achieved if a threshold for specific movement or temperature is known. When using CCTV cameras, the background is removed to detect any pixels in the image that are not part of the background. However, these approaches are expensive, as the sensors used must be positioned along the entire track and also require a fast communication link with the railway system to be able to warn a rail vehicle in real time.
[0008] There are also attempts to detect objects in point clouds generated by lidar sensors. These include AI-based methods and conventional model-based methods. AI-based methods are quite successful in detecting large objects, such as automobiles, but they struggle to detect smaller objects, such as people. Furthermore, AI-based methods require processing of so much data that even high-performance computers are barely able to handle it in real time. Conventional point cloud processing methods use technologies such as clustering and filtering to detect anomalies. Such methods have many fixed parameters that can only be optimized through lengthy testing, if at all possible.
[0009] International publication WO 2020 / 012475 A1 discloses systems and methods for rail and obstacle detection based on forward-looking electro-optical imaging. The image processing uses a deep learning approach for semantic scene segmentation, which is based on a neural network for determining rail and switch states, which determines the rail path of a train in the forward-looking image recordings, and a neural network for detecting and tracking objects and obstacles, which analyzes the environment of the determined rail path and detects upcoming obstacles.
[0010] European publication EP 3 431 361 A2 shows a rail vehicle with an imaging system for capturing a space outside the rail vehicle. The imaging system has four imaging devices, each of which generates or can generate two-dimensional images of the space during operation of the imaging system. A first and a second of the four imaging devices are arranged at a first distance from one another on the rail vehicle and form a first stereo pair that captures a first common part of the space from different viewing angles. A third and a fourth of the four imaging devices are arranged at a second distance from one another on the rail vehicle and form a second stereo pair that captures a second common part of the space from different viewing angles.The first common part of the space captured by the first stereo pair begins at a greater distance from the rail vehicle than the second common part of the space captured by the second stereo pair.
[0011] The task is therefore to provide a method and a device for detecting and identifying obstacles for rail vehicles, which meet the requirements for real-time functionality, general applicability and reliability better than the aforementioned approaches.
[0012] This object is achieved by a method for obstacle detection for a rail vehicle according to patent claim 1, an obstacle detection device for a rail vehicle according to patent claim 12 and a rail vehicle according to patent claim 13.
[0013] In the method according to the invention for obstacle detection for a rail vehicle, 3D sensor data from an area surrounding the rail vehicle is recorded. The sensor-detected area of the rail vehicle preferably comprises a travel channel extending in front of the rail vehicle, but can preferably also comprise peripheral areas to the right and left of the travel channel, for example, to detect potential collision obstacles early on, before they even approach the travel channel.
[0014] 3D image data is generated based on the 3D sensor data. In contrast to 2D sensor data, 3D sensor data includes depth information about the monitored surrounding area. 2D image data is in turn generated based on the 3D image data. For this purpose, the 3D image data is projected onto a 2D plane whose orientation preferably corresponds to the viewing perspective of the rail vehicle. This viewing perspective also preferably includes the perspective of a driver looking forward from the rail vehicle or in the direction of travel and / or the perspective from which at least some of the sensors, which are preferably aligned in the direction of travel or along the longitudinal axis of the rail vehicle, detect the surrounding area.
[0015] When the application refers to 2D data or 3D data, this always means two-dimensional data or three-dimensional data.
[0016] Furthermore, a 2D anomaly mask is determined or generated by comparing the projected 2D image data with reference image data free of obstacles, for example, generated in advance or in real time or even simultaneously with the projected 2D image data. Image regions that are not contained in the reference image data or, in other words, that differ from the corresponding image regions of the reference image data, i.e., the image regions arranged at the same image position in the reference image data, are identified as mask regions for a 2D anomaly mask in the projected 2D image data. For example, these image regions have a different intensity or different grayscale or different contrast in the projected 2D image data than in the reference image data. For better comparability, the reference image data preferably also includes 2D image data.In contrast to the projected 2D image data, the reference image data represents a scenario of the surrounding area monitored by sensors in which no collision obstacles occur. The 2D anomaly mask in the projected 2D image data therefore includes the image areas of the projected 2D image data where a difference occurs compared to the reference image data. For this purpose, a difference image can be generated, for example, in which the areas of high intensity or the bright areas indicate anomalies or potential collision obstacles. In order to assign the correct reference image data to the 2D image data, the position of the rail vehicle can be determined, for example, when generating the reference image data.When the 3D sensor data underlying the 2D image data is recorded, the rail vehicle's position is also determined. This information can be used to compare the correctly assigned reference image data with the currently projected 2D image data. Markings at the edge of the track, such as beacons, landmarks, and even in combination with odometric methods, as well as satellite navigation, can be used to determine the position. As explained in more detail later, it is even possible to dispense with the rail vehicle's position if the projected 2D image data and the reference image data are simply based on the same currently acquired 3D sensor data.
[0017] In a subsequent step of the method according to the invention, a 3D anomaly mask is generated in the 3D image data by fusing the 2D anomaly mask with the 3D image data. During the fusion, the 2D anomaly mask is back-projected into the 3D image of the 3D image data. Finally, the 3D image data contained in the 3D anomaly mask is interpreted as a potential collision obstacle. Due to the integration of the 3D anomaly mask into the 3D image data, the position of the potential obstacle in space or relative to the rail vehicle can also be immediately determined, so that, based on this information, an appropriate automated response of the rail vehicle to the situation, such as an automated braking maneuver or the generation of a warning signal, can be correctly determined and triggered.Advantageously, the inventive method for obstacle detection can detect all types of obstacles of any shape and form, since the shape of an obstacle does not need to be learned or known; instead, only its surroundings or the surroundings of the rail vehicle as a basic scenario without collision obstacles must be known. Object detection is performed using 2D projections, which have a very small data volume compared to 3D image data, so that the data processing effort for detecting collision obstacles is greatly reduced. Thus, the method can be carried out in real time and is also easy to train or retrain, as will be explained in more detail later, since no objects need to be detected and the amount of data to be processed is comparatively small.
[0018] To generate the reference image data, a self-learning system or a system based on artificial intelligence can be used. This system, through a training process, is enabled to reconstruct reference image data without anomalies based on the sensor data acquired by the rail vehicle's sensors or the image data obtained from them. This training process can be effectively applied when the reference image data itself is to be reconstructed in real time using the sensor data acquired by the sensors or the image data obtained from them and is to be continuously updated while the rail vehicle is in operation. No specialist supervision is required for the learning or training process. Furthermore, no laboriously generated dedicated training dataset is required in advance, since the training data can be generated during the rail vehicle's journey in phases in which no collision obstacles occur.In particular, there is no effort required for annotation and collection of such data by experts. Furthermore, no fixed parameterization of the object detection is required, as the process is self-learning and can be easily adapted to different routes. Advantageously, the sensors are carried along with the rail vehicle, eliminating the need for complex installations of static sensors as infrastructure across the entire rail network. Similar to the principle of static sensors, a type of background is removed from the image of the environment in order to detect moving objects. However, since the sensor data is collected from a moving object – i.e., the rail vehicle – motion detection cannot simply be used to determine moving parts of the environment.Rather, to determine the 2D anomaly mask, the static component of an environment is determined either by staggered acquisition of the reference image data or by an AI-based reconstruction of the reference image data, which eliminates the changing components of the environment. The static component is then subtracted from the overall scenario of the environment. The strength of an artificial intelligence-based system is advantageously utilized: its ability to react extremely flexibly to different scenarios. Thus, the reference image data can be generated quickly, if necessary in real time, during a route change and immediately used for collision obstacle detection.
[0019] The obstacle detection device according to the invention has a sensor data interface for receiving 3D sensor data from an environmental region of a rail vehicle on or in which the obstacle detection device is arranged. Part of the obstacle detection device according to the invention is also an image generation unit for generating 3D image data based on the 3D sensor data. The obstacle detection device according to the invention additionally comprises a projection unit for generating 2D image data based on the 3D image data by projecting the 3D image data onto a projection plane and a mask generation unit for generating a 2D anomaly mask by comparing the 2D image data generated by projection with reference image data free of an obstacle. Image regions that are not contained in the reference image data or that are not included in the reference image data are identified as mask regions in the 2D image data.differ from the corresponding image areas in the reference image data.
[0020] The obstacle detection device according to the invention further comprises a fusion unit for generating a 3D anomaly mask in the 3D image data by fusing the 2D anomaly mask with the 3D image data. The obstacle detection device according to the invention also has an obstacle determination unit for identifying the 3D image data contained in the 3D anomaly mask as a possible collision obstacle. The obstacle detection device according to the invention shares the advantages of the method according to the invention for obstacle detection for a rail vehicle.
[0021] The rail vehicle according to the invention has a sensor unit for acquiring 3D sensor data from the surroundings of the rail vehicle. Furthermore, the rail vehicle according to the invention comprises the obstacle detection device according to the invention. Furthermore, the rail vehicle according to the invention has a control device for controlling the driving behavior of the rail vehicle depending on whether the obstacle detection device has detected an obstacle in the surroundings of the rail vehicle. The rail vehicle according to the invention shares the advantages of the obstacle detection device according to the invention.
[0022] Some components of the obstacle detection device according to the invention can be implemented predominantly in the form of software components. This applies in particular to the image generation unit, the mask generation unit, the fusion unit, and the obstacle detection unit.
[0023] In principle, these components can also be partially implemented in the form of software-supported hardware, such as FPGAs or similar, especially when particularly fast calculations are required. Likewise, the required interfaces, for example, when only data is transferred from other software components, can be implemented as software interfaces. However, they can also be implemented as hardware interfaces controlled by suitable software.
[0024] A largely software-based implementation has the advantage that even computer systems already present in a rail vehicle, after possibly being supplemented with additional hardware elements, such as additional sensor units, can be easily retrofitted with a software update to operate in the manner according to the invention. In this respect, the object is also achieved by a corresponding computer program product with a computer program that can be loaded directly into a memory device of such a computer system, with program sections for executing the steps of the method according to the invention that can be implemented by software when the computer program is executed in the computer system.
[0025] Such a computer program product may, in addition to the computer program, include additional components such as documentation and / or additional components, including hardware components such as hardware keys (dongles, etc.) for using the software.
[0026] A computer-readable medium, such as a memory stick, a hard disk, or another portable or permanently installed data storage device, can be used for transport to the storage device of the computer system and / or for storage on the computer system. The computer unit can store the program sections of the computer program that can be read and executed by a computer unit. For this purpose, the computer unit can, for example, have one or more cooperating microprocessors or the like.
[0027] The dependent claims and the following description each contain particularly advantageous embodiments and developments of the invention. In particular, the claims of one claim category can also be developed analogously to the dependent claims of another claim category and their description sections. Furthermore, within the scope of the invention, the various features of different embodiments and claims can also be combined to form new embodiments.
[0028] In one embodiment of the method according to the invention for obstacle detection for a rail vehicle, the 3D pixel data is projected onto a plane to generate the 2D image data. This plane corresponds to the perspective of a sensor unit of the rail vehicle used to acquire the 3D sensor data. The 2D image data thus essentially comprise a 2D view of the 3D image generated based on the sensor data. Advantageously, the 2D image data assumes the same perspective as the 3D image data on which it is generated.
[0029] The 3D sensor data preferably includes lidar sensor data. The use of lidar sensors enables particularly robust detection under different lighting and weather conditions. This allows for precise 3D detection during the day, at night, and in a tunnel. The 3D image data preferably includes 3D pixel data or image point data, which can particularly preferably be obtained as point cloud data based on the laser sensor data. The 2D image data and the reference image data can also be generated and displayed as projected pixels. The amount of image data can advantageously be reduced by using pixel data or adapted to technical constraints such as computing capacity, the number of pixels of receptor surfaces of sensors, such as cameras, or the sampling density and sampling frequency of a lidar sensor.
[0030] The 2D image data preferably comprises an intensity image and a depth image, also referred to as a distance image. The depth image itself can be implemented as a 2D depth image, but provides depth information through different image intensities, for example, different gray values. The depth image is required to generate the 2D anomaly mask. The information from the depth image is used in a post-processing step to remove false-positive pixels or image points from the 2D anomaly mask. The depth image is subjected to some simple linear calculations to retain only the image points that have a depth greater than that of a ground plane. A ground plane in a 2D depth image is defined as the median pixel of each row from all predicted non-anomaly pixels in the same row.The resulting anomaly image is checked to determine whether all pixels or image regions assigned to anomalies exhibit depth. If so, they are retained as anomalies; if not, they are discarded. If a difference image is generated when comparing the projected 2D image data with the reference image data in order to identify anomalies in the projected 2D image data, a threshold difference image can be generated as an intermediate step after generating the difference image. In this threshold difference image, intensity data exceeding a predetermined threshold is displayed with a standardized high intensity, much brighter than in the difference image. This reduces noise or interference effects on the generation of the 2D anomaly mask. This is because only image regions whose intensity or brightness exceeds a predetermined threshold are considered anomalies.
[0031] The projected 2D image data preferably comprises grayscale image data. Advantageously, the projected 2D image data can be processed particularly efficiently and quickly as grayscale image data, as it occupies a much smaller data volume than, for example, three-dimensional color image data. This also makes real-time detection of collision obstacles during a rail vehicle's journey easier. Training an artificial intelligence system based on grayscale image data can also be carried out particularly quickly and resource-efficiently, enabling rapid adaptation of a reconstruction of reference image data to changed routes or changed track conditions.
[0032] Based on the projected 2D image data, 2D reference image data that do not contain any obstacle objects are preferably reconstructed. This procedure is possible in phases in which no collision obstacle occurs in the surrounding area and the 2D image data can therefore be used as reference image data that represent a scenario without a collision obstacle. However, even if such a collision obstacle does occur, the 2D image data can be used as the basis for reconstructed reference image data. This procedure is advantageous when artificial intelligence, for example a neural network, is used to reconstruct the 2D reference image data based on the 2D image data. As explained in more detail later, the artificial intelligence can be trained to ignore the collision obstacles when reconstructing the reference image data.ignored, so that they no longer appear in the reference image data, even if they are present in the projected 2D image data. The reference image data is required to determine the obstacle objects as a difference image, without them having to be detected or classified by an algorithm. This advantageously avoids classification of the obstacles, making obstacle detection fast and flexible.
[0033] The 2D reference image data is preferably reconstructed using artificial intelligence or an algorithm based on artificial intelligence, preferably an artificial neural network. An artificial neural network can be adapted particularly flexibly to different scenarios. A variational autoencoder is preferably used as an artificial neural network.
[0034] The artificial intelligence, in particular the neural network, is preferably trained for the reconstruction of reference image data during travel sections in which the rail vehicle has free passage. "Free passage" is understood to mean a state in which the rail vehicle moves unhindered by potential collision obstacles. In these travel sections, therefore, no collision obstacles occur that could disrupt the training of the artificial neural network. The goal is to train the artificial neural network in such a way that it recognizes or reconstructs all static features of a rail vehicle's environment, for example, those present on a route that the rail vehicle regularly travels according to a timetable, but does not recognize any randomly occurring moving objects, such as people or vehicles that could enter the rail vehicle's travel channel.The weakness of artificial intelligence—namely, that it can only classify and recognize the objects with which it is trained—is used to its advantage by training the artificial intelligence only, or almost exclusively, with static background objects in the environment and not, or only very little, with dynamic objects, especially road users, which can represent potential collision objects. This special training allows an obstacle-free reference image to be reconstructed even based on image data that includes such collision obstacles. Due to the specific training, the artificial neural network is blind to randomly occurring collision obstacles and does not detect them even when reconstructing an image of a current scenario in which such collision obstacles may occur.The reference image data is then used to generate a difference image from the projected 2D image data containing the collision obstacles and the reference image data. This allows the collision obstacles to be identified and isolated and used as an anomaly mask. Even if isolated collision obstacles occur during training and are included in the training results, these are not significant and are generally not sufficient to adequately train the artificial intelligence to classify and identify the collision obstacles. Rather, these objects are neglected as marginal phenomena in the overall training data set.
[0035] The travel sections in which the rail vehicle has free passage are preferably selected for training based on whether the rail vehicle is currently traveling at a predetermined minimum speed. It can be assumed that no collision obstacle has occurred or will occur in the travel range of the rail vehicle if the rail vehicle maintains its speed or does not reduce its speed below a predetermined value. Alternatively, the travel behavior of the rail vehicle over a repeatedly traveled route can be determined and a tolerance range around a location-dependent average speed at which the rail vehicle moves over the route can be established. If the speed deviates from this tolerance range, particularly downwards, it can be assumed that a potential collision obstacle has occurred and the rail vehicle had to react to it. The current travel section orIf necessary, the reference image data just recorded in this driving section are discarded in order to avoid any potential collision objects in the reference image data.
[0036] The invention is explained in more detail below with reference to exemplary embodiments in the accompanying figures. They show: FIG 1 a flowchart illustrating a method for obstacle detection for a rail vehicle according to an embodiment of the invention, FIG 2 a schematic representation of different types of image data that can be used in the FIG 1 illustrated process, FIG 3 a schematic representation of the steps for forming an anomaly mask, FIG 4 a flowchart illustrating a training method for training a variational autoencoder according to an embodiment of the invention, FIG 5 a schematic representation of an obstacle detection device according to an embodiment of the invention, FIG 6 a schematic representation of a rail vehicle according to an embodiment of the invention.
[0037] In FIG 1 A flowchart 100 is shown which illustrates a method for obstacle detection for a rail vehicle according to an embodiment of the invention. In step 1.I, 3D sensor data 3D-SD from the environment or an environmental area U of a rail vehicle 61 (see FIG 6 ). The 3D sensor data 3D-SD is recorded by a sensor unit 62 arranged on the rail vehicle 61 (see FIG 6 ). The sensor unit 62 comprises a lidar system with which three-dimensional sensor data (3D-SD) are acquired. The 3D-SD sensor data includes information about the topography of the surrounding area U of the rail vehicle 61. In this exemplary embodiment, the surrounding area U includes a front area in front of the rail vehicle 61, into which the rail vehicle 61 intends to enter.
[0038] In step 1.II, 3D pixel data (3D-BD) is then generated from the three-dimensional sensor data (3D-SD) as image data. The 3D pixel data includes, for example, so-called point cloud data, which represents the distances recorded by the lidar system to reflective surfaces of an object in the monitored environmental area U.
[0039] In step 1.III, 2D image data 2D-BD are generated based on the 3D pixel data 3D-BD. For this purpose, the 3D pixel data are projected onto a 2D plane perpendicular to the orientation of the sensor unit 62. More precisely, two types of 2D image data 2D-BD are generated, namely so-called intensity data I-BD (see FIG 2 ) and so-called distance data or depth data D-BD (see FIG 2 ). The intensity data I-BD provide information about the intensity of the reflection of the lidar waves on the surfaces of the environment U of the rail vehicle 61, and the distance data or depth data D-BD include information regarding the distances of the surfaces reflecting the lidar waves to the sensor unit or the lidar system.
[0040] In step 1.IV, a 2D anomaly mask 2D-AM is generated by comparing the 2D image data 2D-BD with reference image data R-BD free of an obstacle KH. Pixels in the 2D image data 2D-BD that are not contained in the reference image data R-BD or that differ from the corresponding image areas in the reference image data are identified as mask pixels. The procedure implemented in step 1.IV is described in connection with FIG 3 explained in more detail.
[0041] In step 1.V, a 3D anomaly mask (3D-AM) is generated in the 3D pixel data (3D-BD) by fusing the 2D anomaly mask (2D-AM) with the 3D pixel data (3D-BD) generated in step 1.II. The fusion can be understood as a type of backprojection of the 2D anomaly mask (2D-AM) into the 3D image (3D-BD). The 3D pixel data or image data affected by the backprojection are interpreted or marked as the 3D anomaly mask (3D-AM).
[0042] In step 1.VI, the 3D pixel data or image data 3D-BD contained in the 3D anomaly mask 3D-AM are interpreted as a possible collision obstacle KH.
[0043] In FIG 2 is a schematic representation 20 of different image data types 3D-BD, 2D-BD, I-BD, D-BD, 2D-AM, 3D-AM shown, which in the FIG 1 illustrated method.
[0044] The top image is in FIG 2 a pixel image with the 3D pixel data 3D-BD generated in step 1.II is shown, which represents a point cloud generated by an on-board lidar sensor of a rail vehicle from the surroundings of a rail vehicle.
[0045] The second-to-top double image (2D-BD) comprises two different image data types arranged one below the other: two-dimensional intensity image data (I-BD) and two-dimensional distance image data (D-BD), also called depth image data. Both types of image data are required for generating the 2D anomaly mask (2D-AM) in step 1.IV.
[0046] The second bottom image shows a two-dimensional anomaly mask 2D-AM, as it was generated in step 1.IV. As in FIG 2 As can be seen, the two-dimensional anomaly mask 2D-AM has only two small, narrowly defined bright areas, while all other image sections are dark, which means that in these image sections there is no difference between the projected 2D image data 2D-BD and the reference image data R-BD.
[0047] The bottom image is FIG 2 The 3D pixel image already shown as the top image, which includes the 3D pixel data 3D-BD, is shown again, but now enriched by a 3D anomaly mask 3D-AM based on the 2D anomaly mask 2D-AM, which marks the pixels present in the 3D pixel image that can be assigned to a possible collision object or collision obstacle KH.
[0048] In FIG 3 A schematic representation 30 of the steps for forming a 2D-AM anomaly mask is shown. During this process, different image data sets I-BD, R-BD, DF-BD, TH-DF-BD, 2D-AM are generated. Therefore, FIG 3 these five during the FIG 1 The image types I-BD, R-BD, DF-BD, TH-DF-BD, 2D-AM generated by the illustrated method are shown directly below each other.
[0049] At the top, two-dimensional intensity data I-BD are shown, which represent possible collision objects, such as a car KH1 and a pedestrian KH2, and are generated based on the 3D sensor data 3D-SD acquired by the sensor unit 62 of the rail vehicle 61 by a projection into the two-dimensional space. The two-dimensional intensity data I-BD are thus derived from the data generated in step 1.III (see FIG 1 ) generated 2D image data 2D-BD. The automobile KH1 is located directly in front of the rail vehicle 61 or the sensor unit 62 of the rail vehicle 61 on the rails S, on which the rail vehicle 61 is also traveling. The pedestrian KH2 can be seen further to the right in the image outside the rails S.
[0050] The next image is a reference image R-BD in FIG 3 which is reconstructed using a so-called variational autoencoder VAR based on the 3D sensor data 3D-SD from the sensor unit 61 of the rail vehicle 62. The variational autoencoder VAR is trained to transfer only stationary features of the 3D sensor data 3D-SD into a two-dimensional image R-BD, so that no collision objects KH1, KH2 appear in the reference image R-BD, since the variational autoencoder VAR did not learn the reconstruction of these objects KH1, KH2 during the training phase. The reconstruction of the reference image R-BD is carried out as a grayscale image based on grayscale data, so that a training procedure and a processing procedure are very efficient and require little data storage. For this reason, a reconstruction of such a reference image R-BD can also be carried out in real time using less specialized computers.
[0051] The third picture from the top is FIG 3 A difference image DF-BD is shown, which is generated based on the difference between the intensity image I-BD and the reference image R-BB. Advantageously, this difference image DF-BD only shows the possible collision objects KH1, KH2 or a mask of these collision objects KH1, KH2.
[0052] The fourth picture from the top is FIG 3 A threshold difference image TH-DF-BD is shown, where intensity data exceeding a predetermined threshold is displayed with a standardized high intensity, much brighter than in the difference image DF-BD. This reduces noise effects or interference with the generation of the anomaly mask.
[0053] The fifth picture from the top or the bottom picture is FIG 3 a 2D anomaly mask 2D-AM is shown. The 2D anomaly mask 2D-AM is generated by fusing the threshold difference image TH-DF-BD with a distance image D-BD (see FIG 2 ) was formed.
[0054] In FIG 4 A flowchart 400 is shown which illustrates a training method for training a variational autoencoder VAR according to an embodiment of the invention. The variational autoencoder VAR reconstructs a collision obstacle-free reference image R-BD based on 3D image data 3D-BD, which in the FIG 1 shown step 1.IV can be used to generate a 2D anomaly mask 2D-AM.
[0055] As part of the training process, which can be carried out, for example, during a journey of a rail vehicle in which no potential collision obstacles arise, 3D sensor data 3D-SD from an environmental area U of a rail vehicle 61 is first acquired in step 4.I. Based on the acquired sensor data 3D-SD, 3D pixel data 3D-BD is generated in step 4.II. Based on the 3D pixel data 3D-BD, reference image data R-BD is then reconstructed in step 4.III. Since there are no moving objects or potential collision obstacles in the 3D pixel data, the neural network VAR does not learn to detect, classify, and reconstruct such objects in this step. In step 4.IV, intensity images I-BD are also generated directly by projection based on the 3D pixel data 2D-BD.
[0056] Then, in step 4.V, the reconstructed reference image data R-BD are compared with the directly generated intensity images I-BD. In the event that the two images R-BD, I-BD are sufficiently identical, which is FIG 4 is marked with "j", the process proceeds to step 4.VI and the variational autoencoder is considered sufficiently trained.
[0057] In case the two images R-BD, I-BD are not yet sufficiently identical, which is FIG 4 is marked with "n", the variational autoencoder VAR is adjusted and steps 4.III, 4.IV are followed and the training process is repeated until it is determined that the variational autoencoder VAR has been sufficiently trained so that the reference image data R-BD and the intensity image data I-BD are sufficiently consistent.
[0058] In FIG 5 a schematic representation of an obstacle detection device 50 according to an embodiment of the invention is shown.
[0059] The obstacle detection device 50 comprises a left in FIG 5 The sensor data interface 51 is shown. The sensor data interface 51 is configured to receive 3D sensor data 3D-SD from an environmental area U of a rail vehicle 61 in which the obstacle detection device 50 is arranged. The 3D sensor data 3D-SD are transmitted to an image generation unit 52 included in the obstacle detection device 50, which is configured to generate 3D pixel data 3D-BD based on the 3D sensor data 3D-SD. Furthermore, the obstacle detection device 50 also includes a projection unit 53, which generates 2D image data 2D-BD based on the 3D pixel data 3D-BD by projection. Part of the obstacle detection device 50 is also a mask generation unit 54, which is configured to generate a 2D anomaly mask 2D-AM by comparing the 2D image data 2D-BD with reference image data R-BD generated by an AI-based reconstruction and free of an obstacle.During this process, pixels are identified as mask pixels in the 2D image data 2D-BD that are not contained in the reference image data R-BD. The 2D anomaly mask 2D-AM is transmitted to a fusion unit 55, which is configured to generate a 3D anomaly mask 3D-AM in the 3D sensor data 3D-SD by fusing the 2D anomaly mask 2D-AM with the 3D pixel data 3D-BD. Also part of the obstacle detection device 50 is an obstacle determination unit 56, which is configured to interpret the 3D pixel data 3D-BD included in the 3D anomaly mask 3D-AM as a possible collision obstacle KH.
[0060] In FIG 6 A schematic representation 60 of a rail vehicle 61 according to an embodiment of the invention is illustrated. The left in FIG 6 The schematically illustrated rail vehicle 61 travels from left to right in the direction of the arrow on a track GK and records three-dimensional sensor data 3D-SD from an environmental area U located in front of the rail vehicle 61. For this purpose, the rail vehicle comprises a sensor unit 62 in its front area. The 3D sensor data 3D-SD are transmitted to an obstacle detection device 50, which is also part of the rail vehicle 61 and FIG 5 The obstacle detection device 50 now determines on the basis of the 3D sensor data 3D-SD that in the surroundings, more precisely on the right rail of the FIG 6shown track bed GK, a collision obstacle KH is located. This result KH is transmitted to a control device 63 included in the rail vehicle 61, which, in response to this collision obstacle KH, transmits control commands to individual functional units of the rail vehicle 61. For example, the brakes of the rail vehicle 61 are activated in order to bring the rail vehicle 61 to a stop before the collision obstacle.
[0061] Finally, it is emphasized once again that the methods and devices described above are merely preferred embodiments of the invention and that the invention may be varied by those skilled in the art without departing from the scope of the invention, as defined by the claims. For the sake of completeness, it is also emphasized that the use of the indefinite articles "a" or "an" does not exclude the possibility that the respective features may be present in multiple instances. Likewise, the term "unit" does not exclude the possibility that it may consist of multiple components, which may also be spatially distributed.
Claims
1. Method of obstacle detection for a rail vehicle (61), having the steps: - capturing 3D sensor data (3D-SD) from a surrounding area (U) of the rail vehicle (61), - generating 3D image data (3D-BD) on the basis of the 3D sensor data (3D-SD), - generating 2D image data (2D-BD) on the basis of the 3D image data (3D-BD), - generating a 2D anomaly mask (2D-AM) by comparing the 2D image data (2D-BD) with reference image data (R-BD) that is free of a collision obstacle (KH), wherein an image region is identified as a mask region in the 2D image data (2D-BD), which differs from a corresponding image region in the reference image data (R-BD), - generating a 3D anomaly mask (3D-AM) in the 3D image data (3D-BD) by fusing the 2D anomaly mask (2D-AM) with the 3D image data (3D-BD), - identifying the 3D image data (3D-BD) incorporated by the 3D anomaly mask (3D-AM) as a possible collision obstacle (KH).
2. Method according to claim 1, wherein for generating the 2D image data (2D-BD), the 3D image data (3D-BD) is projected onto a plane, which coincides with the perspective of a sensor unit (62) of the rail vehicle (61) used for capturing the 3D sensor data (3D-SD).
3. Method according to claim 1 or 2, wherein the 3D sensor data (3D-SD) comprises LIDAR sensor data.
4. Method according to one of the preceding claims, wherein the 2D image data (2D-BD) comprises an intensity image (I-BD) and a distance image (D-BD).
5. Method according to one of the preceding claims, wherein the 2D image data (2D-BD) comprises greyscale image data.
6. Method according to one of the preceding claims, wherein on the basis of the 2D image data (2D-BD) 2D reference image data (R-BD) is constructed which does not comprise any obstacle objects (KH).
7. Method according to claim 6, wherein the 2D reference image data (R-BD) is reconstructed by artificial intelligence (KNN).
8. Method according to claim 7, wherein the artificial intelligence comprises an artificial neural network, preferably a variational autoencoder (VAR).
9. Method according to claim 7 or 8, wherein the artificial intelligence is trained during stages of travel, in which the rail vehicle (61) has a clear line, for a reconstruction of obstacle-free 2D reference image data (R-BD).
10. Method according to claim 9, wherein the stages of travel are selected for the training in terms of whether the rail vehicle (61) is currently traveling at a predetermined minimum speed.
11. Method according to one of the preceding claims, wherein the surroundings (U) of the rail vehicle (61) captured by way of sensors comprises a travel channel (FK) of the rail vehicle (62) extending in front of the rail vehicle (61).
12. Obstacle detection facility (50), having: - a sensor data interface (51) for receiving 3D sensor data (3D-SD) from a surrounding area (U) of a rail vehicle (61), - an image-generating unit (52) for generating 3D image data (3D-BD) on the basis of the 3D sensor data (3D-SD), - a projection unit (53) for generating 2D image data (2D-BD) on the basis of the 3D image data (3D-BD), - a mask-generating unit (54) for generating a 2D anomaly mask (2D-AM) by comparing the 2D image data (2D-BD) with reference image data (R-BD) that is free of a collision obstacle (KH), wherein an image region is identified as a mask region in the 2D image data (2D-BD), which differs from a corresponding image region in the reference image data (R-BD), - a fusion unit (55) for generating a 3D anomaly mask (3D-AM) in the 3D image data (3D-BD) by fusing the 2D anomaly mask (2D-AM) with the 3D image data (3D-BD), - an obstacle-ascertaining unit (56) for identifying (55) the 3D image data (3D-BD) incorporated by the 3D anomaly mask (3D-AM) as a possible collision obstacle (KH).
13. Rail vehicle (61), having - a sensor unit (62) for capturing 3D sensor data (3D-SD) from the surroundings of the rail vehicle (61), - an obstacle detection facility (50) according to claim 12, - a control facility (63) for controlling the travel behaviour of the rail vehicle (61) as a function of whether the obstacle detection facility (50) detected a collision obstacle (KH) in the surroundings of the rail vehicle (61).
14. Computer program product having a computer program, which can be directly loaded into a memory unit of a control facility (63) of a rail vehicle (61), having program segments in order to carry out all steps of a method according to one of claims 1 to 11 when the computer program is executed in the control facility (63).
15. Computer-readable medium on which program segments, which can be executed by a computer unit, are stored in order to carry out all steps of the method according to one of claims 1 to 11 when the program segments are executed by the computer unit.
