Vehicle interaction method and device

By combining facial recognition and voice recognition technology on the vehicle, it can identify the driver's driving status and emotional state, provide a combination of visual and voice interaction, solve the problem of the existing single interaction method, and improve the driving experience and safety.

CN118314897BActive Publication Date: 2024-09-10GAC AION NEW ENERGY AUTOMOBILE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410742764.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-10
Estimated Expiration
2044-06-11

AI Technical Summary

Technical Problem

The existing human-vehicle interaction method has a single interaction mode and a single applicable scenario, making it difficult to provide a comprehensive and natural interactive experience during driving, affecting user satisfaction and driving safety.

Method used

By setting up multiple image acquisition devices on the vehicle to obtain the driver's facial feature vector, combined with speech recognition technology, the driver's driving state and emotional state are identified, and corresponding interactive operations are performed based on this information to provide visual presentation and voice interaction. combination method.

Benefits of technology

It achieves a more comprehensive personalized interaction effect, improves the user's interactive experience during driving, enhances driver satisfaction and safety, and reduces the risk of fatigue and distracted driving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314897B
    Figure CN118314897B
Patent Text Reader

Abstract

The present application provides a vehicle interaction method and device, the method comprising: obtaining the driver's facial feature vector based on multiple image acquisition devices set on the target vehicle; performing facial recognition processing on the driver based on the facial feature vector to obtain the driver's driving state and emotional state; collecting multiple audio information of the driver through multiple microphones set on the target vehicle; performing differential noise reduction processing on the audio information to obtain the audio information to be recognized; performing voice recognition processing on the audio information to be recognized to obtain the voice recognition result; performing corresponding interactive operations according to the driving state, emotional state and voice recognition result. It can be seen that the method and device can combine visual presentation and voice interaction, provide a more comprehensive and natural interaction method, have a wide range of applicable scenarios, and are conducive to improving the user's interactive experience during driving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of human-computer interaction technology, and more specifically, to a vehicle interaction method and device. Background Art

[0002] With the improvement of living standards, vehicles are becoming more and more popular in people's lives and playing an increasingly important role in people's lives. Therefore, the interaction between people and vehicles is becoming more and more frequent. The existing human-vehicle interaction method usually obtains the driver's intention based on voice to achieve human-computer interaction. However, it is found in practice that the existing methods have a single interaction mode and a single applicable scenario. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a vehicle interaction method and device, which can combine visual presentation and voice interaction, provide a more comprehensive and natural interaction method, and is applicable to a wide range of scenarios, which is conducive to improving the user's interactive experience during driving.

[0004] A first aspect of the present application provides a vehicle interaction method, comprising:

[0005] Acquire a facial feature vector of the driver based on a plurality of image acquisition devices arranged on the target vehicle;

[0006] Performing facial recognition processing on the driver based on the facial feature vector to obtain the driving state and emotional state of the driver;

[0007] Collecting multiple audio information of the driver through multiple microphones arranged on the target vehicle;

[0008] Performing differential noise reduction processing on the audio information to obtain audio information to be identified;

[0009] Performing speech recognition processing on the audio information to be recognized to obtain a speech recognition result;

[0010] Corresponding interactive operations are performed according to the driving state, the emotional state and the speech recognition result.

[0011] In the above implementation process, the method can accurately identify the driver's driving status and emotions through facial recognition, and at the same time use voice recognition technology to achieve a more comprehensive personalized interaction effect, thereby enhancing the driver's satisfaction and comfort, improving driving safety, and reducing the risk of driving fatigue and distracted driving.

[0012] Furthermore, the method of acquiring the driver's facial feature vector based on a plurality of image acquisition devices provided on the target vehicle includes:

[0013] Capturing multiple facial images of the driver based on multiple image acquisition devices disposed on the target vehicle;

[0014] Performing image fusion calculation on the plurality of facial images to obtain facial fusion data;

[0015] Performing facial detection processing on the facial fusion data to obtain facial information;

[0016] Performing feature extraction processing on the facial information through a facial feature tracking algorithm to obtain facial feature information; wherein the facial feature information at least includes mouth movement features, facial expression features, head movement features and pupil size features;

[0017] The facial feature information is vectorized to obtain a facial feature vector; wherein the facial feature vector includes an eye feature vector, a mouth motion vector, a head motion vector, and a pupil size vector.

[0018] Further, the performing facial recognition processing on the driver based on the facial feature vector to obtain the driving state and emotional state of the driver includes:

[0019] Obtaining a pre-built facial recognition model; wherein the facial recognition model is a classification model or a regression model;

[0020] The driver is subjected to facial recognition processing by using the facial recognition model and the facial feature vector to obtain the driving state and emotional state of the driver.

[0021] Further, the performing facial recognition processing on the driver based on the facial feature vector to obtain the driving state and emotional state of the driver includes:

[0022] Detecting a first attention state and a first fatigue state of the driver based on the eye feature vector and the mouth motion vector;

[0023] Determining the driver's head posture and head movement based on the head motion vector;

[0024] determining a second attention condition and a second fatigue condition of the driver based on the head posture and the head movement condition;

[0025] evaluating a pupillary response of the driver based on the pupil size vector;

[0026] determining the driver's attention level and arousal state based on the pupillary response;

[0027] Based on the first attention condition, the first fatigue condition, the second attention condition, the second fatigue condition, the attention level, and the motivational state, the driving state and the emotional state of the driver are evaluated.

[0028] Furthermore, the method further comprises:

[0029] determining a comprehensive state of the driver according to the driving state and the emotional state;

[0030] Determining an interactive prompting scheme that matches the comprehensive state;

[0031] Outputting corresponding prompt information according to the interactive prompt scheme;

[0032] The step of determining an interactive prompting scheme matching the comprehensive status includes:

[0033] When the comprehensive state is fatigue driving, determining the interactive prompting scheme is to remind the driver to pull over and rest in time by voice prompting;

[0034] When the comprehensive state is distracted driving, the interactive prompting scheme is determined to remind the driver to pay attention to the road conditions ahead by voice prompting.

[0035] Furthermore, performing speech recognition processing on the audio information to be recognized to obtain a speech recognition result includes:

[0036] The audio information to be recognized is processed by MFCC to obtain processed speech information;

[0037] Performing vectorization processing on the processed voice information to obtain an audio vector;

[0038] Convert the audio vector into a byte stream;

[0039] Performing Base64 encoding on the byte stream to obtain encoded audio data;

[0040] Perform speech recognition on the encoded audio data to obtain a speech recognition result.

[0041] Furthermore, performing corresponding interactive operations according to the driving state, the emotional state and the speech recognition result includes:

[0042] Acquire a voice command according to the voice recognition result;

[0043] When the voice command is an inquiry command, obtaining response data according to the driving state, the emotional state and the inquiry command, and outputting the response data in the form of a voice prompt;

[0044] When the voice command is a vehicle control command, the vehicle is controlled to perform corresponding operations according to the driving state, the emotional state and the vehicle control command.

[0045] A second aspect of the present application provides a vehicle interaction device, the vehicle interaction device comprising:

[0046] An acquisition unit, used for acquiring a facial feature vector of the driver based on a plurality of image acquisition devices arranged on the target vehicle;

[0047] A facial recognition unit, configured to perform facial recognition processing on the driver based on the facial feature vector to obtain the driving state and emotional state of the driver;

[0048] A collection unit, used for collecting a plurality of audio information of the driver through a plurality of microphones arranged on the target vehicle;

[0049] A noise reduction unit, used for performing differential noise reduction processing on the audio information to obtain audio information to be recognized;

[0050] A speech recognition unit, used to perform speech recognition processing on the audio information to be recognized to obtain a speech recognition result;

[0051] An execution unit is used to perform corresponding interactive operations according to the driving state, the emotional state and the speech recognition result.

[0052] Furthermore, the acquisition unit includes:

[0053] A collection subunit, used for collecting multiple facial images of the driver based on multiple image collection devices arranged on the target vehicle;

[0054] A calculation subunit, used for performing image fusion calculation on the plurality of facial images to obtain facial fusion data;

[0055] A first processing subunit is used to perform face detection processing on the face fusion data to obtain face information;

[0056] The first processing subunit is further used to perform feature extraction processing on the facial information through a facial feature tracking algorithm to obtain facial feature information; wherein the facial feature information at least includes mouth movement features, facial expression features, head movement features and pupil size features;

[0057] The first processing sub-unit is further used to perform vectorization processing on the facial feature information to obtain a facial feature vector; wherein the facial feature vector includes an eye feature vector, a mouth motion vector, a head motion vector, and a pupil size vector.

[0058] Furthermore, the facial recognition unit comprises:

[0059] A first acquisition subunit is used to acquire a pre-built facial recognition model; wherein the facial recognition model is a classification model or a regression model;

[0060] The facial recognition subunit is used to perform facial recognition processing on the driver through the facial recognition model and the facial feature vector to obtain the driving state and emotional state of the driver.

[0061] Furthermore, the facial recognition unit comprises:

[0062] a detection subunit, configured to detect a first attention condition and a first fatigue condition of the driver based on the eye feature vector and the mouth motion vector;

[0063] a determination subunit, configured to determine the driver's head posture and head movement based on the head motion vector;

[0064] The determination subunit is further used to determine a second attention condition and a second fatigue condition of the driver based on the head posture and the head movement condition;

[0065] an evaluation subunit, configured to evaluate the driver's pupil response based on the pupil size vector;

[0066] The determination subunit is further used to determine the driver's attention level and motivation state according to the pupil reaction;

[0067] A facial recognition subunit is used to evaluate the driving state and emotional state of the driver based on the first attention state, the first fatigue state, the second attention state, the second fatigue state, the attention level and the motivation state.

[0068] Furthermore, the vehicle interaction device further includes:

[0069] a determination unit, configured to determine a comprehensive state of the driver according to the driving state and the emotional state;

[0070] The determining unit is further used to determine an interactive prompting scheme matching the comprehensive state;

[0071] An output unit, used to output corresponding prompt information according to the interactive prompt scheme;

[0072] Wherein, the determining unit is specifically used to determine the interactive prompting scheme to remind the driver to pull over and rest in time by voice prompting when the comprehensive state is fatigue driving;

[0073] The determination unit is further specifically used to determine, when the comprehensive state is distracted driving, an interactive prompting scheme to remind the driver to pay attention to the road conditions ahead by way of voice prompting.

[0074] Furthermore, the speech recognition unit comprises:

[0075] The second processing subunit is used to perform regular processing on the audio information to be recognized through MFCC to obtain processed voice information;

[0076] The second processing subunit is further used to perform vectorization processing on the processed voice information to obtain an audio vector;

[0077] A conversion subunit, used for converting the audio vector into a byte stream;

[0078] The second processing subunit is further used to perform Base64 encoding on the byte stream to obtain encoded audio data;

[0079] The speech recognition subunit is used to perform speech recognition on the encoded audio data to obtain a speech recognition result.

[0080] Furthermore, the execution unit includes:

[0081] A second acquisition subunit, used to acquire a voice instruction according to the voice recognition result;

[0082] an output subunit, for obtaining response data according to the driving state, the emotional state and the query instruction when the voice instruction is an inquiry instruction, and outputting the response data by way of voice prompt;

[0083] The execution subunit is used to control the vehicle to perform corresponding operations according to the driving state, the emotional state and the vehicle control instruction when the voice instruction is a vehicle control instruction.

[0084] A third aspect of the present application provides an electronic device, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the vehicle interaction method described in any one of the first aspects of the present application.

[0085] A fourth aspect of the present application provides a computer-readable storage medium storing computer program instructions, wherein when the computer program instructions are read and executed by a processor, the vehicle interaction method described in any one of the first aspect of the present application is executed.

[0086] The beneficial effects of the present application are as follows: the method and device can combine visual presentation and voice interaction, provide a more comprehensive and natural interaction mode, have a wide range of applicable scenarios, and are conducive to improving the user's interactive experience during driving. BRIEF DESCRIPTION OF THE DRAWINGS

[0087] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0088] Figure 1 A schematic diagram of a vehicle interaction method provided in an embodiment of the present application;

[0089] Figure 2 A schematic diagram of a flow chart of another vehicle interaction method provided in an embodiment of the present application;

[0090] Figure 3 A schematic diagram of an example flow of a vehicle interaction method provided in an embodiment of the present application;

[0091] Figure 4 A schematic diagram of the structure of a vehicle interaction device provided in an embodiment of the present application;

[0092] Figure 5 A schematic diagram of the structure of another vehicle interaction device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0093] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0094] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0095] Example 1

[0096] Please see Figure 1 , Figure 1 A flow chart of a vehicle interaction method provided in this embodiment. The vehicle interaction method includes:

[0097] S101. Acquire a facial feature vector of a driver based on multiple image acquisition devices arranged on a target vehicle.

[0098] S102: Perform facial recognition processing on the driver based on the facial feature vector to obtain the driver's driving state and emotional state.

[0099] As an optional implementation, facial recognition processing is performed on the driver based on the facial feature vector to obtain the driver's driving state and emotional state, including:

[0100] Obtain a pre-built facial recognition model; wherein the facial recognition model is a classification model or a regression model;

[0101] The driver's face is recognized through the face recognition model and the face feature vector to obtain the driver's driving state and emotional state.

[0102] In this embodiment, the method can use facial detection and key point positioning algorithms to detect and track facial features. Then, a classification or regression model can be used to determine the driver's state, such as fatigue, concentration, excitement, etc.

[0103] S103, collecting multiple audio information of the driver through multiple microphones arranged on the target vehicle.

[0104] In this embodiment, the number of microphones is at least three, which are respectively arranged at the driver's position, the co-pilot's position and the rear position of the target vehicle.

[0105] S104: Perform differential noise reduction processing on the audio information to obtain audio information to be recognized.

[0106] S105: Perform speech recognition processing on the audio information to be recognized to obtain a speech recognition result.

[0107] S106: Execute corresponding interactive operations according to the driving state, emotional state and speech recognition result.

[0108] In this embodiment, the method can achieve the effect of adaptive interaction while ensuring the balance of multimodal interaction, thereby assisting the driver in the car to make decisions through voice commands, and thus providing a safe driving interaction method.

[0109] In this embodiment, the execution subject of the method may be a computing device such as a computer or a server, and no limitation is made in this embodiment.

[0110] In this embodiment, the execution subject of the method may also be a smart device such as a smart phone, a tablet computer, etc., which is not limited in this embodiment.

[0111] It can be seen that the implementation of the vehicle interaction method described in this embodiment can combine visual presentation and voice interaction, provide a more comprehensive and natural interaction method, which is applicable to a wide range of scenarios and is conducive to improving the user's interactive experience during driving.

[0112] Example 2

[0113] Please see Figure 2 , Figure 2 A flow chart of a vehicle interaction method provided in this embodiment. The vehicle interaction method includes:

[0114] S201. Capture multiple facial images of the driver based on multiple image acquisition devices provided on the target vehicle.

[0115] In this embodiment, the method may use a single image acquisition device to perform acquisition, or may use multiple image acquisition devices to perform acquisition.

[0116] In this embodiment, image fusion calculation needs to be performed during the acquisition process using multiple image acquisition devices to obtain more accurate and reliable facial information.

[0117] S202: Perform image fusion calculation on multiple facial images to obtain facial fusion data.

[0118] In this embodiment, image fusion may be performed by image registration, feature extraction, feature fusion, and the like.

[0119] For example, when two feature vectors x1 and x2 are collected by multiple image acquisition devices (set in front of the left and right of the driver), this method can fuse them as F=αx1+βx2; where α and β are weights, α+β=1.

[0120] S203: Perform facial detection processing on the facial fusion data to obtain facial information.

[0121] S204, performing feature extraction processing on the facial information through a facial feature tracking algorithm to obtain facial feature information; wherein the facial feature information at least includes mouth movement features, facial expression features, head movement features and pupil size features.

[0122] In this embodiment, the method can select facial feature information such as mouth movements, facial expressions, head movements, pupil size and other feature information, and record the attribute information of each feature in the form of a feature vector.

[0123] In this embodiment, facial expressions can reflect the emotional state of the driver. For example, a frown is considered to indicate that the driver is dissatisfied or tired. A smile is considered to indicate that the driver is in a good mood.

[0124] S205, performing vectorization processing on the facial feature information to obtain a facial feature vector; wherein the facial feature vector includes an eye feature vector, a mouth motion vector, a head motion vector, and a pupil size vector.

[0125] S206 , detecting a first attention state and a first fatigue state of the driver based on the eye feature vector and the mouth motion vector.

[0126] In this embodiment, the method can use eye feature vectors and mouth motion vectors to detect the driver's attention and fatigue level.

[0127] In this embodiment, the method can determine whether the driver is focused on the driving task or showing signs of fatigue by analyzing the position and size of the eyes and the degree of opening and closing of the mouth.

[0128] For example, closed eyes can indicate that the driver is dozing off or tired; frequent blinking may mean that the driver is concentrating on observing the surrounding environment; and the direction of the eyes' gaze can indicate where the driver's attention is focused.

[0129] For example, yawning can be seen as a sign of driver fatigue; pursing of lips or clenching of teeth can be seen as a sign of driver tension or anxiety.

[0130] S207: Determine the driver's head posture and head movement based on the head motion vector.

[0131] S208: Determine a second attention condition and a second fatigue condition of the driver based on the head posture and the head movement condition.

[0132] In this embodiment, the method can use the head motion vector and to analyze the driver's head posture and movement. It can detect whether the driver is distracted (distracted), sleepy, or has inappropriate head movement (also known as abnormal head movement).

[0133] For example, head tilt can indicate driver fatigue or discomfort; head rotation can indicate where the driver's attention is.

[0134] S209 . Evaluate the driver's pupil reaction based on the pupil size vector.

[0135] S210: Determine the driver's attention level and motivation state according to the pupil response.

[0136] In this embodiment, the method can use the pupil size vector (and the amount of change) to evaluate the driver's pupil response to infer his concentration and motivation level. By analyzing the change in pupil size, the method can infer the driver's concentration level and motivation state, such as inattention, fatigue driving, etc.

[0137] For example, dilated pupils can indicate that the driver is excited or nervous.

[0138] S211. Evaluate the driver's driving state and emotional state based on the first attention state, the first fatigue state, the second attention state, the second fatigue state, the attention level and the motivation state.

[0139] In this embodiment, the driving state is one of inattention, fatigue driving, concentration, excitement, etc.

[0140] In this embodiment, the emotional state is one of anxiety, tension, anger, happiness, dissatisfaction, illness and discomfort, etc.

[0141] As an optional implementation, the driver's comprehensive state is determined based on the driving state and the emotional state;

[0142] Determine the interactive prompt scheme that matches the comprehensive state;

[0143] Output corresponding prompt information according to the interactive prompt scheme;

[0144] Among them, determining an interactive prompt scheme that matches the comprehensive status includes:

[0145] When the comprehensive status is fatigue driving, the interactive prompting scheme is determined to remind the driver to pull over and rest in time through voice prompts;

[0146] When the comprehensive state is distracted driving, the interactive prompting scheme is determined to remind the driver to pay attention to the road conditions ahead by means of voice prompts.

[0147] In this embodiment, when the method detects the driver's fatigue state, it can remind the driver to take a rest through voice prompts and suggest pulling over to rest;

[0148] When the driver asks about the current vehicle fuel level or mileage through voice commands, provide relevant information through voice responses;

[0149] When facial recognition detects that the driver's attention is distracted (for example, the driver frequently looks to the side or rear), voice prompts are used to remind the driver to pay attention to the road conditions ahead.

[0150] In this embodiment, the method can establish a variety of interactive prompting schemes through the corresponding relationship of (state-decision).

[0151] S212. Collect multiple audio information of the driver through multiple microphones arranged on the target vehicle.

[0152] S213: Perform differential noise reduction processing on the audio information to obtain audio information to be identified.

[0153] In this embodiment, the method uses multiple microphones to collect the driver's voice, thereby realizing comprehensive collection of the driver's voice information. The microphones are arranged at multiple points to ensure that the driver's voice can be captured without being disturbed by the noise inside the car.

[0154] In this embodiment, the microphone transmits the collected sound signal to a specific processing unit for analysis and processing through an audio processing algorithm.

[0155] In this embodiment, the collected sound information can come from multiple directions. For example, the method can place three microphones in the car and collect the driver's voice; wherein the three microphones can be placed at the driver's position, the co-pilot's position and the rear of the vehicle respectively.

[0156] In this discussion, the acquisition and vector representation of each microphone are the same, and the specific relevant calculation formula is as follows:

[0157] ① Input signal vector representation: x=[x1, x2, ..., xn], where xi represents the i-th sampling point of the input signal.

[0158] ② The expected output signal vector is represented by: d=[d1, d2, ..., dn], where di represents the i-th sampling point of the expected output signal.

[0159] ③Filter coefficient vector representation: w=[w1, w2, ..., wm], where m represents the order of the filter.

[0160] ④The filter output signal vector representation: y=[y1, y2,…,·yn], where yi represents the i-th sampling point of the filter output signal.

[0161] ⑤ Error signal vector representation: e=[e1, e2, ..., en], where ei=di-yi, ei represents the error between the expected output signal and the filter output signal.

[0162] ⑥ The formula for updating the filter coefficients (taking LMS as an example):

[0163] w(k+1)=w(k)+u·x(k)·e(E)

[0164] Among them, w(k) represents the filter coefficient vector of the third step, u represents the step size (learning rate), x(k) represents the input signal vector of the kth step, and e(k) represents the error signal of the kth step.

[0165] By implementing this implementation method, the sound information collected by multiple microphones in the car can be used for calculation and the difference between multiple sound information can be found. Thus, through this differential calculation, the environmental noise can be accurately eliminated, making the audio signal clearer, and the microphone information placed at the driver's position, the co-pilot's position and the rear of the vehicle can be subjected to differential noise reduction processing. As a result, the method can retain the same signal in the three signals, eliminate the difference part, and achieve the effect of removing environmental sound, noise, wind sound, etc., while retaining the driver's voice information.

[0166] S214, regularizing the audio information to be recognized by using MFCC to obtain processed voice information.

[0167] In this embodiment, the method can further regularize the audio signal through MFCC (Mel Frequency Cepstrum Coefficient) after differential noise reduction, so that the audio signal can be converted into a series of spectral features related to human ear perception, so as to better characterize and enrich the audio information after noise reduction, making it more in line with human hearing habits.

[0168] It can be seen that through differential noise reduction and MFCC regularization measures, the noise interference in the speech signal can be effectively reduced and the quality of audio information can be improved, thereby effectively improving the performance and user experience of speech recognition applications.

[0169] S215. Perform vectorization processing on the processed voice information to obtain an audio vector.

[0170] S216. Convert the audio vector into a byte stream.

[0171] S217, performing Base64 encoding processing on the byte stream to obtain encoded audio data.

[0172] S218: Perform speech recognition on the encoded audio data to obtain a speech recognition result.

[0173] In this embodiment, the method can be based on collecting a continuous audio stream with a fixed duration, and converting the collected audio into a base64 encoding format, so as to facilitate transmission and processing. Among them, as the audio is continuously collected, this continuous stream will be continuously transmitted and processed to complete the recognition task.

[0174] In this embodiment, by converting the audio into base64 encoding, accurate transmission and effective recognition of the audio can be ensured, while reducing the space and bandwidth occupied by data transmission, achieving the effect of recognizing while speaking and performing semantic processing at the same time.

[0175] For example, the method is implemented in the following programming languages:

[0176] #The denoised signal is denoised_signal, the type is numpy array

[0177] denoised_signal=np.array([...])

[0178] #Convert the signal into a byte stream

[0179] signal_bytes=denoised_signal.astype(np.int16).tobytes()

[0180] #Base64 encode the byte stream

[0181] base64_signal=base64.b64encode(signal_bytes).decode('utf-8').

[0182] S219: Execute corresponding interactive operations according to the driving state, emotional state and speech recognition results.

[0183] As an optional implementation, corresponding interactive operations are performed according to the driving state, emotional state and speech recognition results, including:

[0184] Acquire voice commands based on voice recognition results;

[0185] When the voice command is an inquiry command, answer data is obtained according to the driving state, emotional state and inquiry command, and the answer data is output in the form of voice prompts;

[0186] When the voice command is a vehicle control command, the vehicle is controlled to perform corresponding operations according to the driving state, emotional state and the vehicle control command.

[0187] In this embodiment, the voice interaction process is divided into three steps: starting, identifying status and instructions, and responding. The first is triggering, where the user activates the voice interaction function through voice commands or buttons. The next is the stage of identifying the driver's status and judging instructions based on voice. The system will recognize and analyze the user's voice input to understand the user's intentions and instructions. The last is the response stage, where the system performs corresponding operations according to the user's instructions.

[0188] Please see Figure 3 , Figure 3 An example process diagram of a vehicle interaction method is shown.

[0189] In this embodiment, the method can be combined with the interactive scheme of holographic visual presentation, integrating the interactive modes of visual presentation and voice interaction. Specifically, the method can combine the vehicle display screen and voice recognition technology to achieve the effect of multi-format presentation of information, such as text, images, charts, etc.

[0190] In this embodiment, the driver can interact with the interactive assistant through voice commands without having to divert attention for manual operations, thereby improving the safety of the driving process.

[0191] In this embodiment, the execution subject of the method may be a computing device such as a computer or a server, and no limitation is made in this embodiment.

[0192] In this embodiment, the execution subject of the method may also be a smart device such as a smart phone, a tablet computer, etc., which is not limited in this embodiment.

[0193] It can be seen that the vehicle interaction method described in this embodiment can more correctly identify the driver's intention based on a multimodal discrimination method. At the same time, through a personalized interaction method, the driver's needs can be better understood and met, providing a more humane driving experience. In addition, multiple noise reduction calculations are performed during the voice information collection process, which can ensure that the voice input of multimodal intention discrimination is of higher quality; wherein, differential processing can obtain differential signals by calculating the differences between adjacent sampling points, reducing the impact of noise (because noise usually changes less at adjacent sampling points, while sound signals change more). Finally, it can also provide a safe interaction method for the driver's driving based on holographic visual presentation; wherein, the interaction method that integrates visual presentation and voice interaction can provide a more convenient and efficient interaction experience. At this time, the driver can obtain the required information only through simple voice commands, and no longer needs to be distracted to operate the vehicle-mounted equipment. It can be seen that this not only improves the safety of driving, but also improves the efficiency and convenience of interaction, so that the driver can better focus on the driving task.

[0194] Example 3

[0195] Please see Figure 4 , Figure 4 FIG. 1 is a schematic diagram of the structure of a vehicle interaction device provided in this embodiment. Figure 4 As shown, the vehicle interaction device includes:

[0196] An acquisition unit 310 is used to acquire a facial feature vector of the driver based on a plurality of image acquisition devices provided on the target vehicle;

[0197] A facial recognition unit 320 is used to perform facial recognition processing on the driver based on the facial feature vector to obtain the driving state and emotional state of the driver;

[0198] The collecting unit 330 is used to collect multiple audio information of the driver through multiple microphones arranged on the target vehicle;

[0199] The noise reduction unit 340 is used to perform differential noise reduction processing on the audio information to obtain the audio information to be recognized;

[0200] The speech recognition unit 350 is used to perform speech recognition processing on the audio information to be recognized to obtain a speech recognition result;

[0201] The execution unit 360 is used to perform corresponding interactive operations according to the driving state, emotional state and speech recognition results.

[0202] In this embodiment, the explanation of the vehicle interaction device can refer to the description in Embodiment 1 or Embodiment 2, and will not be further elaborated in this embodiment.

[0203] It can be seen that the vehicle interaction device described in this embodiment can combine visual presentation and voice interaction to provide a more comprehensive and natural interaction method, which is applicable to a wide range of scenarios and is conducive to improving the user's interactive experience during driving.

[0204] Example 4

[0205] Please see Figure 5 , Figure 5 FIG. 1 is a schematic diagram of the structure of a vehicle interaction device provided in this embodiment. Figure 5 As shown, the vehicle interaction device includes:

[0206] An acquisition unit 310 is used to acquire a facial feature vector of the driver based on a plurality of image acquisition devices provided on the target vehicle;

[0207] A facial recognition unit 320 is used to perform facial recognition processing on the driver based on the facial feature vector to obtain the driving state and emotional state of the driver;

[0208] The collecting unit 330 is used to collect multiple audio information of the driver through multiple microphones arranged on the target vehicle;

[0209] The noise reduction unit 340 is used to perform differential noise reduction processing on the audio information to obtain the audio information to be recognized;

[0210] The speech recognition unit 350 is used to perform speech recognition processing on the audio information to be recognized to obtain a speech recognition result;

[0211] The execution unit 360 is used to perform corresponding interactive operations according to the driving state, emotional state and speech recognition results.

[0212] As an optional implementation, the acquiring unit 310 includes:

[0213] A collection subunit 311 is used to collect multiple facial images of the driver based on multiple image collection devices arranged on the target vehicle;

[0214] A calculation subunit 312 is used to perform image fusion calculation on multiple facial images to obtain facial fusion data;

[0215] The first processing subunit 313 is used to perform face detection processing on the face fusion data to obtain face information;

[0216] The first processing subunit 313 is further used to perform feature extraction processing on the facial information through a facial feature tracking algorithm to obtain facial feature information; wherein the facial feature information at least includes mouth movement features, facial expression features, head movement features and pupil size features;

[0217] The first processing sub-unit 313 is further used to perform vectorization processing on the facial feature information to obtain a facial feature vector; wherein the facial feature vector includes an eye feature vector, a mouth motion vector, a head motion vector, and a pupil size vector.

[0218] As an optional implementation, the facial recognition unit 320 includes:

[0219] The first acquisition subunit 321 is used to acquire a pre-built facial recognition model; wherein the facial recognition model is a classification model or a regression model;

[0220] The facial recognition subunit 322 is used to perform facial recognition processing on the driver through a facial recognition model and a facial feature vector to obtain the driving state and emotional state of the driver.

[0221] As an optional implementation, the facial recognition unit 320 includes:

[0222] A detection subunit 323, configured to detect a first attention state and a first fatigue state of the driver based on an eye feature vector and a mouth motion vector;

[0223] A determination subunit 324, configured to determine the driver's head posture and head movement based on the head motion vector;

[0224] The determination subunit 324 is further used to determine a second attention condition and a second fatigue condition of the driver based on the head posture and the head movement condition;

[0225] an evaluation subunit 325 for evaluating the driver's pupil response based on the pupil size vector;

[0226] The determination subunit 324 is further used to determine the driver's attention level and arousal state based on the pupil response;

[0227] The facial recognition subunit 322 is used to evaluate the driver's driving state and emotional state based on the first attention state, the first fatigue state, the second attention state, the second fatigue state, the attention level and the motivation state.

[0228] As an optional implementation manner, the vehicle interaction device further includes:

[0229] a determination unit 370, for determining a comprehensive state of the driver according to the driving state and the emotional state;

[0230] The determination unit 370 is further used to determine an interactive prompting scheme matching the comprehensive state;

[0231] An output unit 380, configured to output corresponding prompt information according to the interactive prompt scheme;

[0232] The determining unit 370 is specifically used to determine the interactive prompting scheme to remind the driver to pull over and rest in time by voice prompting when the comprehensive state is fatigue driving;

[0233] The determination unit 370 is further specifically configured to determine, when the comprehensive state is distracted driving, that the interactive prompting scheme is to remind the driver to pay attention to the road conditions ahead by means of voice prompting.

[0234] As an optional implementation, the speech recognition unit 350 includes:

[0235] The second processing subunit 351 is used to perform regular processing on the audio information to be recognized through MFCC to obtain processed voice information;

[0236] The second processing subunit 351 is further used to perform vectorization processing on the processed voice information to obtain an audio vector;

[0237] A conversion subunit 352, for converting the audio vector into a byte stream;

[0238] The second processing subunit 351 is further used to perform Base64 encoding on the byte stream to obtain encoded audio data;

[0239] The speech recognition subunit 353 is used to perform speech recognition on the encoded audio data to obtain a speech recognition result.

[0240] As an optional implementation, the execution unit 360 includes:

[0241] A second acquisition subunit 361 is used to acquire a voice instruction according to the voice recognition result;

[0242] The output subunit 362 is used to obtain response data according to the driving state, emotional state and the query instruction when the voice instruction is an inquiry instruction, and output the response data by means of voice prompts;

[0243] The execution subunit 363 is used to control the vehicle to perform corresponding operations according to the driving state, emotional state and the vehicle control command when the voice command is a vehicle control command.

[0244] In this embodiment, the explanation of the vehicle interaction device can refer to the description in Embodiment 1 or Embodiment 2, and will not be further elaborated in this embodiment.

[0245] It can be seen that the vehicle interaction device described in this embodiment can more correctly identify the driver's intention based on a multimodal discrimination method. At the same time, through a personalized interaction method, the driver's needs can be better understood and met, providing a more humane driving experience. In addition, multiple noise reduction calculations are performed during the voice information collection process, which can ensure that the voice input of multimodal intention discrimination is of higher quality; wherein, differential processing can obtain differential signals by calculating the differences between adjacent sampling points, reducing the impact of noise (because noise usually changes less at adjacent sampling points, while sound signals change more). Finally, it can also provide a safe interaction method for the driver's driving based on holographic visual presentation; wherein, the interaction method that integrates visual presentation and voice interaction can provide a more convenient and efficient interaction experience. At this time, the driver can obtain the required information only through simple voice commands, and no longer needs to be distracted to operate the vehicle-mounted equipment. It can be seen that this not only improves the safety of driving, but also improves the efficiency and convenience of interaction, allowing the driver to better focus on the driving task.

[0246] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the vehicle interaction method in embodiment 1 or embodiment 2 of the present application.

[0247] An embodiment of the present application provides a computer-readable storage medium storing computer program instructions. When the computer program instructions are read and executed by a processor, the vehicle interaction method in embodiment 1 or embodiment 2 of the present application is executed.

[0248] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0249] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0250] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0251] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0252] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0253] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A vehicle interaction method, characterized in that: include: Acquire a facial feature vector of the driver based on a plurality of image acquisition devices arranged on the target vehicle; Performing facial recognition processing on the driver based on the facial feature vector to obtain the driving state and emotional state of the driver; Collecting multiple audio information of the driver through multiple microphones arranged on the target vehicle; Performing differential noise reduction processing on the audio information to obtain audio information to be identified; Performing speech recognition processing on the audio information to be recognized to obtain a speech recognition result; Perform corresponding interactive operations according to the driving state, the emotional state and the speech recognition result; The performing corresponding interactive operations according to the driving state, the emotional state and the speech recognition result includes: Acquire a voice command according to the voice recognition result; When the voice command is an inquiry command, obtaining response data according to the driving state, the emotional state and the inquiry command, and outputting the response data in the form of a voice prompt; When the voice command is a vehicle control command, controlling the vehicle to perform a corresponding operation according to the driving state, the emotional state and the vehicle control command; The method of acquiring the driver's facial feature vector based on multiple image acquisition devices arranged on the target vehicle includes: collecting multiple facial images of the driver based on multiple image acquisition devices arranged on the target vehicle; Performing image fusion calculation on the plurality of facial images to obtain facial fusion data; Performing facial detection processing on the facial fusion data to obtain facial information; Performing feature extraction processing on the facial information through a facial feature tracking algorithm to obtain facial feature information; wherein the facial feature information at least includes mouth movement features, facial expression features, head movement features and pupil size features; Performing vectorization processing on the facial feature information to obtain a facial feature vector; wherein the facial feature vector includes an eye feature vector, a mouth motion vector, a head motion vector, and a pupil size vector; The step of performing facial recognition processing on the driver based on the facial feature vector to obtain the driving state and emotional state of the driver includes: Detecting a first attention state and a first fatigue state of the driver based on the eye feature vector and the mouth motion vector; Determining the driver's head posture and head movement based on the head motion vector; determining a second attention condition and a second fatigue condition of the driver based on the head posture and the head movement condition; evaluating a pupillary response of the driver based on the pupil size vector; determining the driver's attention level and arousal state based on the pupillary response; Based on the first attention condition, the first fatigue condition, the second attention condition, the second fatigue condition, the attention level, and the motivational state, the driving state and the emotional state of the driver are evaluated.

2. The vehicle interaction method according to claim 1, characterized in that: The performing facial recognition processing on the driver based on the facial feature vector to obtain the driving state and emotional state of the driver includes: Obtaining a pre-built facial recognition model; wherein the facial recognition model is a classification model or a regression model; The driver is subjected to facial recognition processing by using the facial recognition model and the facial feature vector to obtain the driving state and emotional state of the driver.

3. The vehicle interaction method according to claim 1, characterized in that: The method further comprises: determining a comprehensive state of the driver according to the driving state and the emotional state; Determining an interactive prompting scheme that matches the comprehensive state; Outputting corresponding prompt information according to the interactive prompt scheme; The step of determining an interactive prompting scheme matching the comprehensive status includes: When the comprehensive state is fatigue driving, determining the interactive prompting scheme is to remind the driver to pull over and rest in time by voice prompting; When the comprehensive state is distracted driving, the interactive prompting scheme is determined to remind the driver to pay attention to the road conditions ahead by voice prompting.

4. The vehicle interaction method according to claim 1, characterized in that: The performing speech recognition processing on the audio information to be recognized to obtain a speech recognition result includes: The audio information to be recognized is processed by MFCC to obtain processed speech information; Performing vectorization processing on the processed voice information to obtain an audio vector; Convert the audio vector into a byte stream; Performing Base64 encoding on the byte stream to obtain encoded audio data; Perform speech recognition on the encoded audio data to obtain a speech recognition result.

5. A vehicle interaction device, characterized in that: The vehicle interaction device comprises: An acquisition unit, used for acquiring a facial feature vector of the driver based on a plurality of image acquisition devices arranged on the target vehicle; A facial recognition unit, configured to perform facial recognition processing on the driver based on the facial feature vector to obtain the driving state and emotional state of the driver; A collection unit, used for collecting a plurality of audio information of the driver through a plurality of microphones arranged on the target vehicle; A noise reduction unit, used for performing differential noise reduction processing on the audio information to obtain audio information to be recognized; A speech recognition unit, used to perform speech recognition processing on the audio information to be recognized to obtain a speech recognition result; an execution unit, configured to execute corresponding interactive operations according to the driving state, the emotional state and the speech recognition result; Wherein, the execution unit includes: A second acquisition subunit, used to acquire a voice instruction according to the voice recognition result; an output subunit, for obtaining response data according to the driving state, the emotional state and the query instruction when the voice instruction is an inquiry instruction, and outputting the response data by way of voice prompt; an execution subunit, for controlling the vehicle to perform a corresponding operation according to the driving state, the emotional state and the vehicle control instruction when the voice instruction is a vehicle control instruction; Wherein, the acquisition unit includes: A collection subunit, used for collecting multiple facial images of the driver based on multiple image collection devices arranged on the target vehicle; A calculation subunit, used for performing image fusion calculation on the plurality of facial images to obtain facial fusion data; A first processing subunit is used to perform face detection processing on the face fusion data to obtain face information; The first processing subunit is further used to perform feature extraction processing on the facial information through a facial feature tracking algorithm to obtain facial feature information; wherein the facial feature information at least includes mouth movement features, facial expression features, head movement features and pupil size features; The first processing sub-unit is further used to perform vectorization processing on the facial feature information to obtain a facial feature vector; wherein the facial feature vector includes an eye feature vector, a mouth motion vector, a head motion vector, and a pupil size vector; Wherein, the facial recognition unit comprises: a detection subunit, configured to detect a first attention condition and a first fatigue condition of the driver based on the eye feature vector and the mouth motion vector; a determination subunit, configured to determine the driver's head posture and head movement based on the head motion vector; The determination subunit is further used to determine a second attention condition and a second fatigue condition of the driver based on the head posture and the head movement condition; an evaluation subunit, configured to evaluate the driver's pupil response based on the pupil size vector; The determination subunit is further used to determine the driver's attention level and motivation state according to the pupil reaction; A facial recognition subunit is used to evaluate the driving state and emotional state of the driver based on the first attention state, the first fatigue state, the second attention state, the second fatigue state, the attention level and the motivation state.

6. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the vehicle interaction method according to any one of claims 1 to 4.

7. A readable storage medium, characterized in that: The readable storage medium stores computer program instructions, and when the computer program instructions are read and executed by a processor, the vehicle interaction method according to any one of claims 1 to 4 is executed.

Citation Information

Patent Citations

  • Education image and voice recognition system and method

    CN104079580A

  • Fatigue state detection method and device based on audio and video

    CN113642522A

  • Multi-tone-area small pickup and noise elimination microphone array of automobile cockpit

    CN117221772A

  • Driving behavior detection system and method

    CN117842054A