A method for implementing a locomotive alert device based on face recognition
Through face and iris recognition technology, it solves the problem that existing locomotive vigilance devices cannot effectively prevent false triggering when the driver is tired or distracted. It achieves alarm triggering and safe braking without the need for continuous pressure, ensuring that the train operates at high acceleration. and safe operation under short station spacing conditions.
Patent Information
- Application Number
- CN202011109128.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-16
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-10-16
AI Technical Summary
Existing locomotive vigilance devices cannot effectively prevent false triggering or extend the triggering cycle when the driver is tired or distracted, resulting in insufficient safe braking distance for the train. Moreover, holding the operating handle for a long time increases driver fatigue, and there is a risk of false detection.
Use wide-angle cameras and full-angle cameras for face recognition, determine the driver's eye position, and calculate the iris area through iris recognition. When the area is lower than 80% and remains for 5 seconds, an alarm will be issued. The driver can manually cancel the alarm, reducing the risk of misdetection and avoiding cycles. Sexual cycle manipulation.
It achieves alarm triggering without the need for continuous pressure, reduces the risk of false detection, ensures safe braking of trains under conditions of high acceleration and short station distances, reduces driver fatigue, and improves train safety.
Smart Images

Figure CN112381871B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of face recognition, and in particular to a method for realizing a locomotive alert device based on face recognition. Background Art
[0002] With the development of my country's high-speed railways, the requirements for train driving safety are getting higher and higher, and the safety of passengers' lives and property is guaranteed to the greatest extent. Both high-speed trains and urban rail trains at home and abroad are equipped with alert devices. Train drivers need to operate the alert devices within the specified time to ensure the normal operation of the vehicle. The system can accurately determine whether the driver is awake during driving the vehicle, and then send sound and light alarm information to the driver to ensure that the driver remains vigilant during train driving. If the driver fails to operate the alert device within the specified time and release the alarm, the train will be emergency braked until it stops.
[0003] The locomotive warning device of existing urban rail vehicles in my country is integrated with the driver controller and is generally set below the operating handle. When the driver is driving in a non-high brake gear, once the operating handle is released, the continuous mechanical pressure is cancelled, and the warning buzzer equipped with the locomotive immediately sounds an alarm to remind the driver that the current train is in a first-run situation. If the driver does not touch the warning device within 5 seconds, the vehicle will implement emergency braking until it stops. In addition, my country's high-speed trains are also equipped with warning devices, which are located on the control panel and under the control panel respectively. The driver can choose to operate the warning device by triggering the button on the control panel with his hand and the pedal under the control panel with his foot. If there is no triggering action within 30 seconds, the buzzer on the control panel will automatically sound an alarm to remind the driver to take corresponding actions to remove the warning alarm. If the driver still does not trigger the warning device after another 10 seconds, the train will implement emergency braking until it stops.
[0004] The locomotive warning device of the urban rail vehicle needs to be continuously pressed to release the alarm, and any object that happens to be placed on the warning device due to improper placement can replace the driver's continuous pressure action due to its own quality reasons, thereby causing the warning device to fail to protect itself. Secondly, holding the operating handle for a long time can easily make the driver tired and increase the driver's workload, but the alarm will be triggered immediately once it is released; secondly, the locomotive warning device of the high-speed train is a cyclically operated device, but when the train is running under a high acceleration and small station spacing, the safe braking distance of the train cannot be guaranteed due to the long triggering cycle. Summary of the invention
[0005] In order to solve the above problems, the purpose of the present invention is to provide a method for implementing a locomotive alert device based on face recognition, which uses a wide-angle camera to identify the face position of the train driver and determine the position of the eyes, and then adjusts the full-angle camera to aim at the driver's eyes for iris recognition. When the iris area is detected to be lower than 80% of the normal value and remains for 5 seconds, the alert device will sound an alarm to remind the driver to drive cautiously, and the driver will manually trigger the alert button to release the alarm. The driver does not need to continuously apply pressure to the operating handle, which reduces the false detection of the alert device caused by other objects, and triggers the alert alarm device in real time. There is no need for periodic cycle operation, and the safe braking distance of the train can be guaranteed even if the train accelerates quickly and the station distance is small.
[0006] In order to achieve the above-mentioned purpose, the present invention provides a method for implementing a motorcycle alert device based on face recognition, which is implemented as follows:
[0007] A method for implementing a locomotive alert device based on face recognition includes a computer host, a 5G module, a wide-angle camera, a full-angle camera, a voice alarm, and a cancel alarm button. The computer host and the 5G module are installed under the locomotive control panel. The 5G module is used to establish communication between the computer host and a railway system server. The computer host accesses the railway system server through 5G technology. The wide-angle camera, the full-angle camera, the voice alarm, and the cancel alarm button are installed on the locomotive control panel. The wide-angle camera is used to collect driver facial image information, and send the collected image to the computer host for face recognition and locate the driver's eye position. The full-angle camera is used to collect driver's eye iris image information and send it to the computer host. The computer host adjusts the full-angle camera according to the calculated eye position to aim at the driver's eye for red membrane image collection, and calculates the area of the iris in the computer host. When it is recognized that the iris area is lower than 80% of the iris area when the driver punches in and remains for 5 seconds, the computer host controls the voice alarm to send an alarm message, and the driver manually presses the cancel alarm button to cancel the alarm.
[0008] The computer host of the present invention is electrically connected to the central control system of the train and wirelessly connected to the railway system server through the 5G network. The train driver needs to punch in and sign in before driving the train. The picture of the driver collected in the punch-in attendance system and the corresponding driving number are sent to the railway system server, and then sent to the computer host through the 5G network in the railway system server. The computer host compares the picture sent from the railway system server with the recognition result. After the recognition results of the two pictures are consistent, the driver's iris is collected by the full-angle camera, and the iris area of the driver under normal circumstances is identified in the computer host. Then the driver can operate the train, and the computer host sends the identified driver's iris area information and the time it is maintained to the central control system of the train. When the computer host calculates that the iris area is only 80% of the normal situation and is maintained for 5 seconds, when the duration exceeds 10 seconds, the central control system will control the train to take braking measures until the train stops.
[0009] The full-angle camera of the present invention adopts a 360-degree rotating camera, and the rotation of the panoramic camera is controlled by a computer host to adjust the lens to the position of the driver's eyes.
[0010] The scheme of the present invention for judging whether the driver is in a sober state to drive the train is:
[0011] Face recognition is an existing technology, and the innovation lies in iris area calculation
[0012] 1. Face recognition
[0013] (1) Face image acquisition
[0014] The driver's face is photographed by a wide-angle camera to collect pictures, and the collected pictures are sent to a computer host.
[0015] (2) Image preprocessing
[0016] First, the collected face image is grayed to reduce the amount of calculation, and then the two-dimensional median filtering method is used to filter and denoise the grayed image to reduce the interference of noise on the image.
[0017] (3) Face Detection
[0018] The face color is used as the texture feature and the color histogram algorithm is used to identify the location of the face.
[0019] 2. Eye Positioning
[0020] The eye position is determined by eye key point positioning. The convolutional neural network is used to detect eye key points on the face image, and the eye area image is obtained to automatically extract the feature information of the eye center point. The key point positioning network contains 3 convolutional layers, 3 maximum pooling layers and 2 fully connected layers. Each convolutional layer is processed by the Relu activation function to increase the nonlinear mapping ability of the network. The network also has a Dropout layer after the third convolutional layer, and the Dropout ratio is 0.5. The network uses the stochastic gradient descent method with momentum for training, and the loss function used is the mean square error function. Where Z i and Z′ i Represent the actual value and predicted value of the ith output respectively. The input pixel is a 39×39 grayscale face image. After training, the network will get the specific coordinate position of the center of both eyes. The origin of the coordinate system is the upper left corner of the face image, the two axes are horizontal to the right, and the y axis is horizontal downward. The four output values are the horizontal and vertical coordinate values of the center of the left eye and the center of the right eye, respectively. Then, the rectangular area around the coordinates of the center of both eyes is determined as the eye area with a width of 12 pixels and a height of 6 pixels. Finally, it is back-projected onto the original size face image according to the coordinate relationship to obtain the actual size eye image.
[0021] 3. Iris recognition
[0022] An algorithm that integrates multi-directional local binary patterns and stable features is used for iris recognition. A median filtering algorithm is used to extract sufficient internal feature points of the iris as effective iris information from the iris image in a small stable state with illumination and noise interference, thereby forming an iris feature image. Multi-directional local binary patterns are then used to extract feature vectors, reduce the dimension of the feature image, and obtain the overall spatial information of the iris image.
[0023] 4. Iris area calculation
[0024] The pixel value of the iris is different from that of the eye socket, so the pixel integral projection method is used to calculate the area of the iris. When the driver is tired, the eyelids will cover a large area of the iris, which reduces the area of the iris. The method for calculating the iris area is:
[0025] Let I(x,y) represent the pixel value at the image point (x,y), x1, x2 are the values in the horizontal direction, and define the integral projection function H[x1,x2] on [x1,x2], where x1,x2∈[0,M].
[0026]
[0027] Similarly, define y1, y2 as the values in the vertical direction, and the integral projection function V[y1,y2] on [y1,y2], where y1,y2∈[0,N].
[0028]
[0029] Combining equations (1) and (2), the area of the iris is calculated as:
[0030]
[0031] Since the present invention uses a wide-angle camera and a full-angle camera to identify whether the train driver is driving fatigued and then remind the driver to drive carefully, the following beneficial effects can be achieved:
[0032] When the iris area is detected to be 80% lower than the normal value and remains so for N seconds (N value can be set, usually set to 5 seconds), the warning device will sound an alarm to remind the driver to drive vigilantly. The driver can manually trigger the warning button to release the alarm. There is no need for the driver to continuously apply pressure to the operating handle, which reduces false detection of the warning device caused by other objects. The warning alarm device can be triggered in real time without periodic cycle operation, and the safe braking distance of the train can be guaranteed even if the train accelerates quickly and the distance between stations is small. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 The present invention is an installation structure intention of a method for implementing a locomotive alert device based on face recognition;
[0034] Figure 2 A connection relationship diagram of a computer host and a train central control system and a railway system server diagram of a method for implementing a locomotive alert device based on face recognition of the present invention;
[0035] Figure 3 A flowchart of a method for implementing a locomotive alert device based on face recognition of the present invention for judging whether the driver is in a sober state to drive the train;
[0036] Figure 4 A convolutional neural network structure diagram of the key point positioning of the human eye in a method for realizing a motorcycle alert device based on face recognition according to the present invention;
[0037] Figure 5 This is a working principle diagram of a method for implementing a locomotive alert device based on face recognition according to the present invention.
[0038] Description of main component symbols.
[0039] Computer host 1 5G Module 2 Wide-angle camera 3 Full-angle camera 4 Voice alarm 5 Disarm button 6 DETAILED DESCRIPTION
[0040] The present invention will be further described in detail below in conjunction with the embodiments and with reference to the accompanying drawings.
[0041] See also Figures 1 to 5 The figure shows a method for realizing a locomotive alert device based on face recognition in the present invention, comprising a computer host 1, a 5G module 2, a wide-angle camera 3, a full-angle camera 4, a voice alarm 5, and an alarm release button 6.
[0042] like Figure 1 As shown, the 5G module 2, wide-angle camera 3, full-angle camera 4, voice alarm 5, and alarm release button 6 are all electrically connected to the computer host 1. The computer host 1 and the 5G module 2 are installed under the locomotive control panel. The 5G module 2 is used to establish communication between the computer host 1 and the railway system server. The computer host 1 accesses the railway system server through 5G technology. The server sends the picture information of the clocking driver to the computer host 1. The computer host 1 determines whether the driver driving the train is the same person based on the driver's face recognition result, which improves the safety of the train and prevents non-drivers of the train from driving. The wide-angle camera 3, full-angle camera 4, voice alarm 5, and alarm release button 6 is installed on the locomotive control panel, the wide-angle camera 3 is used to collect the driver's facial image information, and send the collected image to the computer host 1 for facial recognition and positioning the driver's eye position, the full-angle camera 4 is used to collect the driver's iris image information, and send it to the computer host 1, the computer host 1 adjusts the full-angle camera 4 to aim at the driver's eye for iris image collection according to the calculated eye position, and calculates the iris area in the computer host 1, when it is recognized that the iris area is less than 80% of the iris area when the driver punches in and remains for 5 seconds, the computer host 1 controls the voice alarm 5 to issue an alarm message to remind the driver to drive vigilantly, and the driver manually presses the alarm release button 6 to release the alarm.
[0043] like Figure 2As shown, the computer host 1 is electrically connected to the central control system of the train and is wirelessly connected to the railway system server through a 5G network. The train driver needs to punch in and sign in before driving the train. The driver's picture collected in the punch-in attendance system and the corresponding driving number are sent to the railway system server, and then sent to the computer host 1 through the 5G network in the railway system server. After the driver enters the locomotive cab, the wide-angle camera 3 performs facial recognition on him as the unlocking password for the driver to drive the train. The computer host 1 compares the recognition result with the picture sent by the railway system server. When the recognition results of the two pictures are consistent, the full-angle camera 4 collects the driver's iris. When collecting the iris picture, the driver opens his eyes normally, which is used as a reference for the change in the visible area of the iris, and the driver is identified in the computer host 1. The iris area under normal circumstances, and then the driver can operate the train, and only when the result of face recognition is the same as the image collected by the clock-in attendance system, can the driver drive the train of this train to prevent others from operating the train at will. The computer host 1 sends the driver's iris area information and the time it is maintained to the train central control system. When the computer host 1 calculates that the iris area is only 80% of the normal situation and maintains it for 5 seconds, the computer host 1 will control the voice alarm 5 to issue an alarm message. When the duration exceeds 10 seconds, the central control system will control the train to take braking measures until the train stops. When the driver is able to press the alarm release button 6 within 80% of the normal iris area and maintain it within 5 seconds, the central control system will control the train to run normally under the driver's operation.
[0044] The full-angle camera 4 is a 360-degree rotating camera. The computer host 1 controls the rotation of the panoramic camera and adjusts the lens to the position of the driver's eyes to better capture the driver's iris image.
[0045] The present invention first performs face recognition on the driver, locates the human eyes in the face recognition result, and then adjusts the full-angle camera 4 to recognize the driver's iris area according to the position information of the human eyes to determine whether the driver is in a sober state to drive the train.
[0046] like Figure 3 As shown, the scheme for judging whether the driver is in a sober state to drive the train is:
[0047] 1. Face recognition
[0048] (1) Face image acquisition
[0049] The driver's face is photographed by the wide-angle camera 3 to collect pictures, and the collected pictures are sent to the computer host 1.
[0050] (2) Image preprocessing
[0051] First, the collected face image is grayed to reduce the amount of calculation, and then the two-dimensional median filtering method is used to filter and denoise the grayed image to reduce the interference of noise on the image.
[0052] (3) Face Detection
[0053] With the face color as the texture feature, the color histogram algorithm is used to identify the location of the face. Since the skin color information is not affected by details such as facial expressions and angles, it has high stability, and the skin color can be distinguished from the color of the locomotive cab. Therefore, the skin color feature can be used to quickly detect the face in the color space.
[0054] 2. Eye Positioning
[0055] like Figure 4 As shown in the figure, the eye position is determined by locating the key points of the eyes. The convolutional neural network is used to detect the key points of the eyes on the face image, and the eye area image is obtained to automatically extract the feature information of the center point of the eye. The key point positioning network contains 3 convolutional layers, 3 maximum pooling layers and 2 fully connected layers. Each convolutional layer is processed by the Relu activation function to increase the nonlinear mapping ability of the network. The network also has a Dropout layer after the third convolutional layer, and the Dropout ratio is 0.5. The network uses the stochastic gradient descent method with momentum for training, and the loss function used is the mean square error function. Where Z i and Z′ i Represent the actual value and predicted value of the ith output respectively. The input pixel is a 39×39 grayscale face image. After training, the network will get the specific coordinate position of the center of both eyes. The origin of the coordinate system is the upper left corner of the face image, the two axes are horizontal to the right, and the y axis is horizontal downward. The four output values are the horizontal and vertical coordinate values of the center of the left eye and the center of the right eye, respectively. Then, the rectangular area around the coordinates of the center of both eyes is determined as the eye area with a width of 12 pixels and a height of 6 pixels. Finally, it is back-projected onto the original size face image according to the coordinate relationship to obtain the actual size eye image.
[0056] 3. Iris recognition
[0057] An algorithm that integrates multi-directional local binary patterns and stable features is used for iris recognition. A median filtering algorithm is used to extract sufficient internal feature points of the iris as effective iris information from the iris image in a small stable state with illumination and noise interference, thereby forming an iris feature image. Multi-directional local binary patterns are then used to extract feature vectors, reduce the dimension of the feature image, and obtain the overall spatial information of the iris image.
[0058] 4. Iris area calculation
[0059] The pixel value of the iris is different from that of the eye socket, so the pixel integral projection method is used to calculate the area of the iris. When the driver is tired, the eyelids will cover a large area of the iris, which reduces the area of the iris. The method for calculating the iris area is:
[0060] Let I(x,y) represent the pixel value at the image point (x,y), x1, x2 are the values in the horizontal direction, and define the integral projection function H[x1,x2] on [x1,x2], where x1,x2∈[0,M].
[0061]
[0062] Similarly, define y1, y2 as the values in the vertical direction, and the integral projection function V[y1,y2] on [y1,y2], where y1,y2∈[0,N].
[0063]
[0064] Combining equations (1) and (2), the area of the iris is calculated as:
[0065]
[0066] The working principle and working process of the present invention are as follows:
[0067] like Figure 5 As shown, the wide-angle camera 3 sends the collected driver's face image to the computer host 1 for face recognition and locates the driver's eye position. The full-angle camera 4 collects the driver's iris image information and sends it to the computer host 1. The computer host 1 adjusts the full-angle camera 4 according to the calculated eye position to collect the red membrane image of the driver's eye, and calculates the area of the iris in the computer host 1. The 5G module 2 is used to establish communication between the computer host 1 and the railway system server. The computer host 1 accesses the railway system server through 5G technology, and the server sends the picture information of the clocking-in driver to Computer host 1, computer host 1 determines whether the driver of the train is the same person based on the driver's face recognition result. Computer host 1 sends the driver's iris area information and the retention time after recognition to the train central control system. When computer host 1 calculates that the iris area is only 80% of the normal situation and is maintained for 5 seconds, computer host 1 will control the voice alarm 5 to issue an alarm message to remind the driver to drive vigilantly. The driver manually presses the alarm release button 6 to release the alarm. When the duration exceeds 10 seconds, the central control system will control the train to take braking measures until the train stops.
Claims
1. A method for implementing a motorcycle alert device based on face recognition, characterized in that: It includes a computer host, a 5G module, a wide-angle camera, a full-angle camera, a voice alarm, and a cancel alarm button. The computer host and the 5G module are installed under the locomotive control panel. The 5G module is used to establish communication between the computer host and the railway system server. The computer host accesses the railway system server through 5G technology. The wide-angle camera, the full-angle camera, the voice alarm, and the cancel alarm button are installed on the locomotive control panel. The wide-angle camera is used to collect the driver's facial image information, and send the collected image to the computer host for facial recognition and locate the driver's eye position. The full-angle camera is used to collect the driver's iris image information and send it to the computer host. The computer host adjusts the full-angle camera according to the calculated eye position to aim at the driver's eye for red membrane image collection, and calculates the area of the iris in the computer host. When it is recognized that the iris area is lower than 80% of the iris area when the driver punches in and remains for 5 seconds, the computer host controls the voice alarm to send an alarm message, and the driver manually presses the cancel alarm button to cancel the alarm; The scheme for determining whether the driver is in a sober state to drive the train includes steps of face recognition, eye location, iris recognition, and iris area calculation; The calculation of iris area includes the following steps: The pixel value of iris is different from the pixel value of eye socket, so the pixel integral projection method is used to calculate the area of iris. When the driver is tired, the eyelids will cover a large area of iris, which will reduce the area of iris. The calculation method of iris area is: Let I(x,y) represent the pixel value at the image point (x,y), x1, x2 are the values in the horizontal direction, and define the integral projection function H[x1,x2] on [x1,x2], where x1,x2∈[0,M], Similarly, define y1, y2 as the values in the vertical direction, and the integral projection function V[y1,y2] on [y1,y2], where y1,y2∈[0,N]; Combining equations (1) and (2), the area of the iris is calculated as: The computer host is electrically connected to the central control system of the train and is wirelessly connected to the railway system server through a 5G network. The train driver needs to punch in and sign in before driving the train. The driver's picture collected in the punch-in attendance system and the corresponding driving number are sent to the railway system server, and then sent to the computer host through the 5G network in the railway system server. The computer host compares the recognition result with the picture sent by the railway system server. When the recognition results of the two pictures are consistent, the driver's iris is collected by a full-angle camera, and the driver's iris area under normal conditions is identified in the computer host. Then the driver can operate the train, and the computer host sends the recognized driver's iris area information and the time it is maintained to the central control system of the train. When the computer host calculates that the iris area is only 80% of the normal situation and is maintained for 5 seconds, when the duration exceeds 10 seconds, the central control system will control the train to take braking measures until the train stops; Face recognition includes the following steps: ① Face image acquisition: The driver's face is photographed by a wide-angle camera and the collected image is sent to the computer host; ② Image preprocessing: The collected face image is first grayed to reduce the amount of calculation, and then the grayed image is filtered and denoised using a two-dimensional median filter method to reduce the interference of noise on the image; ③ Face detection: The face color is used as the texture feature, and the color histogram algorithm is used to identify the location of the face; Eye positioning includes the following steps: determining the eye position by eye key point positioning, using convolutional neural network to detect eye key points on the face image, and obtaining the eye area image, and automatically extracting the feature information of the eye center point. The key point positioning network contains 3 convolutional layers, 3 maximum pooling layers and 2 fully connected layers. Each convolutional layer is processed by Relu activation function to increase the nonlinear mapping ability of the network. The network also has a Dropout layer after the third convolutional layer, and the Dropout ratio is 0.
5. The network uses the stochastic gradient descent method with momentum for training, and the loss function used is the mean square error function. Where Z i and Z′ i They represent the actual value and predicted value of the ith output respectively. The input pixel is a 39×39 grayscale face image. After training, the network will obtain the specific coordinate position of the center points of both eyes. The origin of the coordinate system is the upper left corner of the face image, the x-axis is horizontal to the right, and the y-axis is horizontally downward. The four output values are the horizontal and vertical coordinate values of the center point of the left eye and the horizontal and vertical coordinate values of the center point of the right eye, respectively. Then, a rectangular area around the coordinates of the center points of both eyes is determined as the eye area with a width of 12 pixels and a height of 6 pixels. Finally, it is back-projected onto the face image of the original size according to the coordinate relationship to obtain an eye image of the actual size.
2. The method for implementing a motorcycle alert device based on face recognition according to claim 1 is characterized in that: Iris recognition includes the following steps: An algorithm that integrates multi-directional local binary patterns and stable features is used for iris recognition. A median filtering algorithm is used to extract sufficient internal feature points of the iris as effective iris information from the iris image in a small stable state with illumination and noise interference, thereby forming an iris feature image. Multi-directional local binary patterns are then used to extract feature vectors, reduce the dimension of the feature image, and obtain the overall spatial information of the iris image.
