Driving behavior identification and warning device based on multi-features of human face and implementation method
Through the driving behavior discrimination and early warning device based on the multi-features of the face, combined with the MTCNN and Face Net models, driver identity authentication and behavior analysis are realized, which solves the problem of the inability to collect and analyze driver behavior videos in real time in the existing technology, and improves the efficiency Driving safety and real-time performance of image data.
Patent Information
- Application Number
- CN201911260670.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-10
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2039-12-10
AI Technical Summary
The existing technology cannot collect and analyze the driver's behavioral video images in real time, cannot perform combined identification of witnesses and witnesses, and the transmission of characteristic images is not real-time, making it difficult to ensure safe driving behavior.
Design a driving behavior discrimination and early warning device based on multi-features of human face. The early warning device is distinguished through feature image collection and PC host computer, using Raspberry Pi 3B+ module, SIM7600CE communication module, OV5647 camera and ENC28J60 Ethernet module, combined with MTCNN face detection Model and Face Net feature extraction are used to realize driver identity authentication and behavior discrimination, and the 4G communication module is used to transmit the discrimination results in real time and record logs.
It realizes real-time collection, analysis and early warning of driver behavior, improves the standardization of driver behavior and ensures driving safety. Through real-name log recording and 4G network transmission, the real-time reliability of image data is ensured.
Smart Images

Figure CN111016915B_ABST
Abstract
Description
Technical field:
[0002] The present invention relates to an image recognition method, and in particular to a driving behavior recognition and warning device based on multiple features of human face and an implementation method thereof. Background technology:
[0004] The current construction of smart cities has brought public transportation construction to a new level, and is an inevitable choice to improve the level of public transportation management and the quality of behavioral services. The existing market technology only captures real-time video of the driver, but cannot identify the driver's identity card, and the image collection and analysis of bad driving records are imperfect. At the same time, the transmission of feature images cannot guarantee real-time performance. Summary of the invention:
[0006] The purpose of the present invention is to provide a driving behavior identification and warning device based on multiple facial features and an implementation method, which realizes dynamic control of the driver's driving situation, dynamically collects and monitors in units of current time intervals, and ensures driving safety standards. The early warning and identification of the driver's behavior standards greatly improves the driver's behavior standards.
[0007] To achieve the above object, the technical solution adopted by the present invention is:
[0008] A driving behavior identification and warning device based on multiple facial features, characterized in that:
[0009] The invention comprises a feature image acquisition, discrimination and warning device and a PC host computer which are arranged in a vehicle-mounted system. The feature image acquisition, discrimination and warning device comprises a CPU module, and a video image acquisition module, a liquid crystal display debugging module, a system startup storage module, an Ethernet port module, a 4G communication module and a power supply module which are respectively connected to the CPU module. The PC host computer receives the discrimination result and key feature image of the feature image acquisition, discrimination and warning device through the 4G communication module, and performs storage and backup of historical data through the SQL method.
[0010] The CPU module is a Raspberry Pi 3B+ module.
[0011] The 4G communication module adopts SIM7600CE, the VCC of SIM7600CE is connected to a 3.3V power supply, the GND pin is grounded, a 104 capacitor is connected between VCC and GND to achieve balanced filtering, the RXD is connected to the TXD0 pin of the CPU, and the TXD pin is connected to the RXD0 pin of the CPU.
[0012] The video image acquisition module adopts a 500W pixel camera OV5647 module with CSI interface characteristics. The VCC pin of the OV5647 module is connected to a 3.3V power supply, the GND pin is grounded, the SCL pin is connected to SCL0 of the IIC, the SDA pin is connected to SDA0 of the IIC, the 11th and 12th pins of the OV5647 are respectively connected to the GPIO0 and GPIO1 of the CPU, the DN0, DP0, DN1, and DP1 pins of the OV5647 are directly connected to the GPIO port of the CPU to form data transmission, and the CN and CP pins are directly connected to the idle GPIO port of the CPU to realize clock transmission.
[0013] The LCD display debugging module is a standard HDMI interface, the VCC pin of HDMI is connected to a 5V power supply, the GND pin is grounded, the SCL pin of HDMI is connected to the CPU's No. 5 pin SCL1, and the SDA pin is connected to the CPU's No. 3 pin SDA1 to realize the basic information of the LCD display. The HDMI_HPD pin is a hot plug signal, which is directly connected to the CPU's idle GPIO. When the HPD pin is greater than 2V, TMDS will be output.
[0014] The system startup storage module uses a Micro-SD card interface as the data for storing system files. It has four data line interfaces (D0-D3), each connected to a 10K pull-up resistor, and CMD is a command line for command interaction with the CPU.
[0015] The Ethernet port module adopts Microchip ENC28J60 chip as the Ethernet module, the MOSI pin of ENC28J60 is connected to the 19th pin SPI_MOSI of the CPU, the MISO pin is connected to the 21st pin SPI_MISO of the CPU, the SCLK pin is connected to the 23rd pin SPI_CLK of the CPU, and the CS pin is connected to the idle GPIO.
[0016] A method for implementing a driving behavior identification and warning device based on multiple facial features, characterized in that it includes a method for implementing a unified identification of person and evidence by collecting and identifying the early warning device through feature images.
[0017] The method for realizing the identification of person and evidence by using a feature image acquisition and identification early warning device is as follows:
[0018] Step 1: Collect feature images;
[0019] Step 2: Use the MTCNN face detection model to extract the face image from the feature image;
[0020] Step 3: Input the face image into Face Net and calculate the feature vector of Embedding;
[0021] Step 4: Use the same method to extract the driver's ID card information and calculate the Embedding feature vector;
[0022] Step 5: Compare the Euclidean distances between feature vectors;
[0023] Step 6: If the feature distance is less than 1, the person and the ID card are considered to be the same person. If the feature distance is greater than 1, they are considered to be different people.
[0024] The steps of realizing the driving behavior judgment warning and characteristic image transmission method and the real-name log recording method of the judgment result by the characteristic image acquisition judgment warning device are as follows:
[0025] Step 1: Collect feature images;
[0026] Step 2: Detect the face to roughly determine the human body area and pre-determine the driver's position;
[0027] Step 3: Find the three areas with skin color features on the face and hands. That is, among all the areas with skin color features, extract the three areas with the largest area as the locations of the head and hands.
[0028] Step 4: Calculate the Euclidean distance between the three, and then determine the driver's position more accurately;
[0029] Step 5: Extract human body regions from each frame in real time;
[0030] Step 6: Based on the method of extracting 2D features of images using the limb behavior algorithm, the cost formula was partially modified;
[0031] Step 7: Use simulated annealing algorithm instead of annealing particle swarm algorithm to minimize the cost function and realize the prediction of driver posture by 3D model tracking estimation;
[0032] Step 8: Use posture angle conversion to obtain the real-time three-dimensional coordinates of the eight bone nodes of the upper body, and finally identify the driver's behavior to determine the driver's current state;
[0033] Step 9: Bind the identification result to the driver's identity, transmit it to the PC management software through the 4G communication module, record the real-name log with the current system time, and store the backup in the form of an SQL database.
[0034] Compared with the prior art, the present invention has the following advantages and effects:
[0035] 1. The present invention aims at warning and distinguishing the behavior norms of drivers, collects and analyzes the driving feature video images in real time, and realizes the functions of fatigue driving warning, distracted driving reminder, phone call warning during driving, hands-off direction warning, driver identification, 4G full network communication, information dispatch, etc. through algorithms, which greatly improves the behavior norms of drivers. The driving behavior identification and warning device based on multi-features of human faces of the present invention combines the Internet of Things with artificial intelligence technology to realize feature video image collection, detection and discrimination processing of artificial intelligence algorithms, and recording of real-name logs, thereby ensuring the standardization of driver behavior. It provides a powerful space for the construction of smart cities.
[0036] 2. The present invention includes two modules, image acquisition and recognition warning and PC host management software. Through real-time acquisition of driving feature video images, if the driver has bad behavior, the key feature images and discrimination results can be transmitted remotely in real time through the 4G network, and the PC host management software can receive the key feature images and discrimination results to build a real-name database. This makes it more convenient to control the record of bad driving behavior of drivers during driving, and remind unsafe driving behavior in real time, thereby improving the safety factor of driving.
[0037] 3. The present invention can realize the acquisition and transmission of characteristic images: The present invention realizes the real-time acquisition of driving videos through the characteristic image acquisition device, and realizes the parallel transmission of image data by extracting special frames and using the new 4G communication module. Compared with the traditional GSM image remote transmission method, it can more effectively ensure the real-time reliability of image data; it can effectively control the current driving situation in real time, which is convenient for standardizing driving behavior.
[0038] 4. The present invention can realize the unified identification and early warning of the person and the ID card: through further image analysis of the collected feature image, the driver's ID card information is used with the collected feature image for face comparison and identification, so as to realize the unified identification of the driver and the real-name management.
[0039] 5. The present invention can realize behavior identification and warning: the present invention can identify driving behavior on the feature image acquisition device; use artificial intelligence algorithm to identify and warn the current driver's driving behavior based on the feature video image; when bad driving behaviors such as fatigue warning and distracted driving warning appear, real-time control instructions are used to issue voice warnings, and the bad driving behaviors are bound to the driver's identity; key feature images and bad behavior identification results are transmitted to the PC host software through the 4G module to build a real-name database and log records.
[0040] 6. The present invention can realize real-name log recording: The present invention realizes real-time reception of key feature images and discrimination results through the developed PC host management software, binds the discrimination results with the current system time and the driver's identity for real-name log recording, and stores and backs up in the form of SQL database. Description of the drawings:
[0042] Figure 1 A block diagram of the overall implementation of the driving behavior identification and warning device based on multiple facial features provided by an embodiment of the present invention;
[0043] Figure 2 for Figure 1 Circuit connection diagram of 4G wireless communication module;
[0044] Figure 3 for Figure 1 Circuit connection diagram of video image acquisition module;
[0045] Figure 4 for Figure 1 Circuit connection diagram of HDMI LCD display debugging module;
[0046] Figure 5 for Figure 1 Circuit connection diagram of Micro SD system boot storage module;
[0047] Figure 6 for Figure 1 Circuit connection diagram of the network port module;
[0048] Figure 7 for Figure 1 The block diagram of the implementation of the unified judgment of the person and the certificate;
[0049] Figure 8 for Figure 1 Diagram of the driving behavior judgment warning and log recording architecture. Specific implementation method:
[0051] Reference Figure 1 In the embodiment of the present invention, a driving behavior identification and warning device based on multiple facial features is provided, which aims to improve the driving safety factor, standardize driving, effectively control the driving situation, and ensure the safety of the actual driving process and the safety of passengers. The device consists of a complete set of service devices such as a feature image acquisition identification and warning device and a PC host computer software.
[0052] The early warning device mentioned in this example refers to a service device mounted on large vehicles such as buses.
[0053] The driving behavior identification and warning device based on multi-features of human face designed by the present invention mainly realizes the collection, preprocessing, identification and warning, transmission and log recording of driving images. It mainly includes feature image collection, identification and certificate integration judgment, bad driving behavior judgment and real-name log recording.
[0054] The driving behavior identification and warning device based on multiple facial features is mainly Figure 1 The CPU module in the system is used as the main controller of the feature image acquisition device of the driving behavior identification and warning device based on multi-features of human faces. Raspberry Pi3B+ is selected as the core of the CPU module. Raspberry Pi is an ARM-based microcomputer motherboard, with SD / Micro SD card as the memory hard disk, equipped with Linux system, and has up to 1GB RAM. The Linux system undertakes several major tasks such as "feature image acquisition" + "image transmission preprocessing" + "display" + "low power consumption", realizing the safe and stable operation of the entire system.
[0055] refer to Figure 2 The 4G communication module adopts SIM7600CE wireless communication, the VCC of SIM7600CE is connected to 3.3V power supply, the GND pin is grounded, a 104 capacitor is connected between VCC and GND to achieve balanced filtering, RXD is connected to the TXD0 pin of CPU, and the TXD pin is connected to the RXD0 pin of CPU.
[0056] Reference Figure 3 The video image acquisition module adopts a 500W pixel camera OV5647 module with CSI interface characteristics. The VCC pin of the OV5647 module is connected to a 3.3V power supply, the GND pin is grounded, the SCL pin is connected to SCL0 of the IIC, the SDA pin is connected to SDA0 of the IIC, the 11th and 12th pins of the OV5647 are respectively connected to the GPIO0 and GPIO1 of the CPU, the DN0, DP0, DN1, and DP1 pins of the OV5647 are directly connected to the GPIO port of the CPU to form data transmission, and the CN and CP pins are directly connected to the idle GPIO port of the CPU to realize clock transmission.
[0057] Reference Figure 4 The LCD display debugging module is a standard HDMI interface. The VCC pin of HDMI is connected to a 5V power supply, the GND pin is grounded, the SCL pin of HDMI is connected to the CPU's No. 5 pin SCL1, and the SDA pin is connected to the CPU's No. 3 pin SDA1 to realize the basic information of the LCD display. The HDMI_HPD pin is a hot plug signal, which is directly connected to the CPU's idle GPIO. When the HPD pin is greater than 2V, TMDS will be output.
[0058] Reference Figure 5The system startup storage module uses a Micro-SD card interface as the data for storing system files. It has four data line interfaces (D0-D3), each of which is connected to a 10K pull-up resistor. CMD is the command line for command interaction with the CPU.
[0059] Reference Figure 6 The Ethernet port module adopts the Microchip ENC28J60 chip as the Ethernet module. The MOSI pin of ENC28J60 is connected to the 19th pin SPI_MOSI of the CPU, the MISO pin is connected to the 21st pin SPI_MISO of the CPU, the SCLK pin is connected to the 23rd pin SPI_CLK of the CPU, and the CS pin is connected to the idle GPIO.
[0060] Reference Figure 7 , Figure 7 This is a block diagram for implementing the unified identification of human and evidence in a driving behavior identification and warning device based on multiple facial features.
[0061] The operation method and implementation steps are as follows:
[0062] Step 1: Collect feature images;
[0063] Step 2: Use the MTCNN face detection model to extract the face image from the feature image;
[0064] Step 3: Input the face image into Face Net and calculate the feature vector of Embedding;
[0065] Step 4: Use the same method to extract the driver's ID card information and calculate the Embedding feature vector;
[0066] Step 5: Compare the Euclidean distances between feature vectors;
[0067] Step 6: If the feature distance is less than 1, the person and the ID card are considered to be the same person. If the feature distance is greater than 1, they are considered to be different people.
[0068] Reference Figure 8 , Figure 8 This is a diagram of the driving behavior determination and warning architecture of a driving behavior determination and warning device based on multiple facial features.
[0069] The operation method and implementation steps are as follows:
[0070] Step 1: Collect feature images;
[0071] Step 2: Detect the face to roughly determine the human body area and pre-determine the driver's position;
[0072] Step 3: Find the three areas with skin color features on the face and hands. That is, among all the areas with skin color features, extract the three areas with the largest area as the locations of the head and hands.
[0073] Step 4: Calculate the Euclidean distance between the three, and then determine the driver's position more accurately;
[0074] Step 5: Extract human body regions from each frame in real time;
[0075] Step 6: Based on the method of extracting 2D features of images using the limb behavior algorithm, the cost formula was partially modified;
[0076] Step 7: Use simulated annealing algorithm instead of annealing particle swarm algorithm to minimize the cost function and realize the prediction of driver posture by 3D model tracking estimation;
[0077] Step 8: Use posture angle conversion to obtain the real-time three-dimensional coordinates of the eight bone nodes of the upper body, and finally identify the driver's behavior to determine the driver's current state;
[0078] Step 9: Bind the identification result to the driver's identity, transmit it to the PC management software through the 4G communication module, record the real-name log with the current system time, and store the backup in the form of an SQL database.
[0079] Through experimental testing, the driving safety factor has been greatly improved, driving behavior has been standardized, driving conditions have been effectively controlled, and safety in the actual driving process and the safety of passengers have been guaranteed, providing a feasible basis example.
[0080] The present invention realizes the functions of driver identity authentication, bad driving behavior discrimination, and remote transmission of feature image data through 4G network through a driving behavior discrimination and warning device based on multiple facial features, realizes the reception of image data and bad behavior discrimination results through a PC host management system, and completes the backup storage of historical data through an SQL method. The present invention uses Raspberry Pi 3B+ as the hardware platform of the driving behavior discrimination and warning device, expands functional modules such as sensor modules, liquid crystal display modules, and 4G communication modules, and cooperates with PC host management software. The real-time performance is good, and the average bit error rate of image acquisition, transmission, and control communication does not exceed 0.1%; the synchronization is high, and the average update delay of image data does not exceed 200ms; compared with the traditional GSM image remote transmission method, it can more effectively guarantee the real-time reliability of image data; through the present invention, bad behaviors in driving can also be effectively discriminated and warned to prevent them before they happen.
[0081] The above embodiments are only illustrative of the principles and effects of the present invention, as well as some embodiments of its application. For those skilled in the art, several modifications and improvements may be made without departing from the creative concept of the present invention, and all of these belong to the protection scope of the present invention.
Claims
1. A driving behavior identification and warning device based on multiple facial features, Features: It includes a feature image acquisition, discrimination and warning device and a PC host computer arranged in a vehicle-mounted system. The feature image acquisition, discrimination and warning device includes a CPU module, and a video image acquisition module, a liquid crystal display debugging module, a system startup storage module, an Ethernet port module, a 4G communication module and a power supply module respectively connected to the CPU module. The PC host computer receives the discrimination result and key feature image of the feature image acquisition, discrimination and warning device through the 4G communication module, and performs storage and backup of historical data through the SQL method; The CPU module uses a Raspberry Pi 3B+ module; The 4G communication module adopts SIM7600CE, the VCC of SIM7600CE is connected to 3.3V power supply, the GND pin is grounded, a 104 capacitor is connected between VCC and GND to achieve balanced filtering, RXD is connected to the TXD0 pin of CPU, and the TXD pin is connected to the RXD0 pin of CPU; The video image acquisition module adopts a 500W pixel camera OV5647 module with CSI interface characteristics. The VCC pin of the OV5647 module is connected to a 3.3V power supply, the GND pin is grounded, the SCL pin is connected to SCL0 of the IIC, the SDA pin is connected to SDA0 of the IIC, the 11th and 12th pins of the OV5647 are respectively connected to the GPIO0 and GPIO1 of the CPU, the DN0, DP0, DN1, and DP1 pins of the OV5647 are directly connected to the GPIO port of the CPU to form data transmission, and the CN and CP pins are directly connected to the idle GPIO port of the CPU to realize clock transmission; The LCD debugging module is a standard HDMI interface, the VCC pin of HDMI is connected to the 5V power supply, the GND pin is connected to the ground, the SCL pin of HDMI is connected to the CPU's No. 5 pin SCL1, and the SDA pin is connected to the CPU's No. 3 pin SDA1, to realize the basic information of the LCD display, the HDMI_HPD pin is a hot plug signal, directly connected to the CPU's idle GPIO, and when the HPD pin is greater than 2V, TMDS will be output; The system startup storage module uses a Micro-SD card interface as the data for storing system files. It has four data line interfaces D0-D3, each connected to a 10K pull-up resistor, and CMD is a command line for command interaction with the CPU; The Ethernet port module adopts Microchip ENC28J60 chip as the Ethernet module, the MOSI pin of ENC28J60 is connected to the 19th pin SPI_MOSI of the CPU, the MISO pin is connected to the 21st pin SPI_MISO of the CPU, the SCLK pin is connected to the 23rd pin SPI_CLK of the CPU, and the CS pin is connected to the idle GPIO.
2. A method for implementing driving behavior identification and warning based on multiple facial features using the device of claim 1, Features: It includes a method for realizing the unified identification of person and certificate by a feature image acquisition, identification and warning device, a method for determining and warning of driving behavior, and a method for recording real-name logs of image reception and identification results completed by a PC host management system; The invention includes a method for realizing the identification of person and document through a feature image acquisition and identification early warning device, and the steps are as follows: Step 1: Collect feature images; Step 2: Use the MTCNN face detection model to extract the face image from the feature image; Step 3: Input the face image into Face Net and calculate the feature vector of Embedding; Step 4: Use the same method to extract the driver's ID card information and calculate the Embedding feature vector; Step 5: Compare the Euclidean distances between feature vectors; Step 6: If the feature distance is less than 1, the person and the ID card are considered to be the same person. If the feature distance is greater than 1, they are considered to be different people. The method includes realizing driving behavior judgment warning and characteristic image transmission and real-name log recording of judgment results through a characteristic image acquisition and judgment warning device, and the steps are as follows: Step 1: Collect feature images; Step 2: Detect the face to roughly determine the human body area and pre-determine the driver's position; Step 3: Find the three areas with skin color features on the face and hands. That is, among all the areas with skin color features, extract the three areas with the largest area as the locations of the head and hands. Step 4: Calculate the Euclidean distance between the three, and then determine the driver's position more accurately; Step 5: Extract human body regions from each frame in real time; Step 6: Based on the method of extracting 2D features of images using the limb behavior algorithm, the cost formula was partially modified; Step 7: Use simulated annealing algorithm instead of annealing particle swarm algorithm to minimize the cost function and realize the prediction of driver posture by 3D model tracking estimation; Step 8: Use posture angle conversion to obtain the real-time three-dimensional coordinates of the eight bone nodes of the upper body, and finally identify the driver's behavior to determine the driver's current state; Step 9: Bind the identification result to the driver's identity, transmit it to the PC management software through the 4G communication module, record the real-name log with the current system time, and store the backup in the form of an SQL database.
Citation Information
Patent Citations
Driving fatigue detection and early warning system and method based on vision
CN108791299A
Driver response recognition system based on risk warning
CN109367540A
