Detection method and device of vehicle-mounted alarm system, medium and vehicle

By calculating the matching similarity between the audio signal in the car and the pre-stored alarm audio, it solves the diagnostic problem when the vehicle alarm system cannot output audio normally, realizes rapid verification and fault detection of the output link of the vehicle alarm system, and improves driving safety. sex.

CN118762489APending Publication Date: 2024-10-11CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410945563.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The existing vehicle-mounted alarm system cannot diagnose system abnormalities when it cannot output audio normally, resulting in the inability to provide timely reminders when there is fault information in the vehicle, posing serious safety risks.

Method used

By collecting in-vehicle audio data, the matching similarity between the actual audio signal and the pre-stored alarm audio is calculated. If the similarity is greater than the threshold, it is confirmed that the system output is normal. If it is less than the threshold, it is confirmed that there is an abnormality in the output loop, and the buzzer is controlled to sound an alarm.

Benefits of technology

It realizes rapid verification of the output link of the vehicle alarm system, accurately detects abnormal faults, avoids safety hazards caused by failure to issue alarms in time, and improves driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762489A_ABST
    Figure CN118762489A_ABST
Patent Text Reader

Abstract

The invention discloses a detection method and device for a vehicle-mounted alarm system, a medium and a vehicle, and relates to the technical field of vehicles, and the method comprises the steps: collecting audio data in the vehicle in response to an alarm signal of the vehicle, and obtaining a first audio signal; extracting a second audio signal from a pre-stored alarm audio according to the alarm signal; and calculating the matching similarity between the first audio signal and the second audio signal, and if the matching similarity is greater than a first matching threshold, determining that the working state of the vehicle-mounted alarm system is normal output. The working state of the vehicle-mounted alarm system is confirmed by collecting the actual audio in the vehicle and carrying out similarity matching on the actual audio and the pre-stored alarm audio, so that the problems that the vehicle-mounted alarm system cannot detect abnormity, cannot remind vehicle fault information in time and has potential safety hazards are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle technology, and in particular to a detection method, device, medium and vehicle for a vehicle-mounted alarm system. Background Art

[0002] As an important part of vehicle safety performance, the vehicle alarm system can effectively prevent or reduce the occurrence of traffic accidents by issuing specific sound signals to alert drivers and passengers when abnormal conditions occur in the vehicle, such as engine failure, brake system abnormality, door not closed tightly, etc. However, with the rapid development of automobile technology and the improvement of vehicle intelligence, traditional vehicle alarm systems have gradually exposed some problems and technical limitations.

[0003] Most existing vehicle alarm systems use sound prompts to remind and warn of vehicle faults. Due to various reasons, when the alarm system cannot output audio normally, the system cannot diagnose and confirm the fault location, resulting in a latent fault. It may result in the inability to output alarm audio for timely reminders when there is fault information in the vehicle, posing a serious safety hazard. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a detection method, device, medium and vehicle for a vehicle alarm system, so as to solve the problem in the prior art that when the alarm system cannot output audio normally, the system abnormality cannot be diagnosed, resulting in the failure to output the alarm audio when the vehicle has fault information, which poses a safety hazard. The specific technical solution is as follows:

[0005] According to a first aspect of an embodiment of the present application, a detection method for a vehicle alarm system is provided, the method comprising:

[0006] In response to an alarm signal of the vehicle, collecting in-vehicle audio data to obtain a first audio signal;

[0007] According to the alarm signal, extracting a second audio signal from the pre-stored alarm audio;

[0008] The matching similarity between the first audio signal and the second audio signal is calculated, and if the matching similarity is greater than a first matching threshold, it is confirmed that the working state of the vehicle alarm system is normal output.

[0009] Optionally, in response to an alarm signal of the vehicle, collecting in-vehicle audio data to obtain a first audio signal includes:

[0010] In response to an alarm signal of the vehicle, obtaining a first alarm audio corresponding to the alarm signal;

[0011] The first alarm audio is output, and the in-vehicle audio data is collected through a microphone to obtain a first audio signal.

[0012] Optionally, calculating the matching similarity between the first audio signal and the second audio signal includes:

[0013] extracting a first waveform of the first audio signal and a second waveform of the second audio signal;

[0014] Preprocessing the first waveform to obtain a processed first waveform aligned with the second waveform;

[0015] Performing similarity calculation based on the processed first waveform and the second waveform to obtain a first similarity;

[0016] A matching similarity between the first audio signal and the second audio signal is obtained based on the first similarity.

[0017] Optionally, preprocessing the first waveform to obtain a processed first waveform aligned with the second waveform includes:

[0018] Obtaining a preset amplitude interval, and proportionally adjusting the amplitude of the first waveform according to the preset amplitude interval to obtain an adjusted first waveform;

[0019] The timestamp information of the second waveform is acquired, and time compensation is performed on the adjusted first waveform according to the timestamp information to obtain a processed first waveform aligned with the second waveform.

[0020] Optionally, before collecting in-vehicle audio data in response to the alarm signal of the vehicle to obtain the first audio signal, the method further includes:

[0021] Get some alarm audios;

[0022] The plurality of warning audios are pre-stored in a memory of the vehicle.

[0023] Optionally, the alarm audio is pre-stored in a memory of the vehicle, and extracting a second audio signal from the pre-stored alarm audio according to the alarm signal comprises:

[0024] Acquiring a signal correspondence relationship pre-stored in the memory;

[0025] According to the signal correspondence, the second audio signal corresponding to the alarm signal is searched in the memory.

[0026] Optionally, after calculating the matching similarity between the first audio signal and the second audio signal, the method further includes:

[0027] If the matching similarity is less than or equal to a first matching threshold, confirming that the working state of the vehicle alarm system is an output circuit abnormality;

[0028] If the working state is that the output circuit is abnormal, the buzzer of the vehicle is controlled to emit an alarm sound.

[0029] According to a second aspect of an embodiment of the present application, a detection device for a vehicle alarm system is provided, the device comprising:

[0030] A first audio acquisition module, used for collecting in-vehicle audio data in response to an alarm signal of the vehicle to obtain a first audio signal;

[0031] A second audio extraction module, used to extract a second audio signal from the pre-stored alarm audio according to the alarm signal;

[0032] The system status detection module is used to calculate the matching similarity between the first audio signal and the second audio signal, and if the matching similarity is greater than a first matching threshold, confirm that the working status of the vehicle alarm system is normal output.

[0033] According to a third aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which instructions are stored. When the instructions are executed by one or more processors, the processors execute the detection method of the vehicle alarm system as described in the first aspect.

[0034] According to a fourth aspect of an embodiment of the present application, a vehicle is provided, comprising: a detection device for a vehicle-mounted alarm system as described in the second aspect.

[0035] Compared with the prior art, the technical solution provided by the embodiment of the present application has the following beneficial effects:

[0036] The detection method of the vehicle alarm system disclosed in the embodiment of the present application obtains a first audio signal by collecting audio data in the vehicle in response to the alarm signal of the vehicle; extracts a second audio signal from the pre-stored alarm audio according to the alarm signal; calculates the matching similarity between the first audio signal and the second audio signal, and if the matching similarity is greater than the first matching threshold, it is confirmed that the working state of the vehicle alarm system is normal output. The present application outputs alarm audio in response to the alarm signal, collects the actual audio in the vehicle, obtains the audio waveform similarity by comparing the actual audio in the vehicle with the pre-stored alarm audio, and confirms the matching degree between the actual audio and the pre-stored audio, thereby quickly verifying the output link of the alarm system, filling the current technical gap in the detection of the alarm system, and can accurately detect abnormal faults of the alarm system, avoiding the failure to issue an alarm in time when the vehicle fails, resulting in greater safety hazards, and improving the safety of user driving. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0038] Figure 1 is a flow chart of the steps of a detection method of a vehicle alarm system provided by an embodiment of the present application;

[0039] Figure 2 is a system block diagram of a detection system in a detection method for a vehicle alarm system provided in an embodiment of the present application;

[0040] Figure 3 It is a flowchart of the steps of calculating audio matching similarity in a detection method of a vehicle alarm system provided in an embodiment of the present application;

[0041] Figure 4 It is a structural block diagram of a detection device for a vehicle alarm system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application.

[0043] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, some technical features involved in the embodiments of the present application are explained and illustrated below:

[0044] The vehicle alarm system is an electronic device used to protect the safety of the vehicle. It can detect and report various emergency situations encountered by the vehicle in a timely manner through various sensors, controllers and communication equipment.

[0045] Output link, in an alarm system, the output link of the alarm audio refers to the path from the alarm controller to the speaker or audio output device, which is used to play the alarm sound when the alarm is triggered.

[0046] On-board memory plays a vital role in cars. It is used to store and manage various data and information of the vehicle. It is mainly divided into several categories, including DRAM (Dynamic Random Access Memory), NAND Flash and NOR Flash.

[0047] FLASH is a non-volatile storage technology that allows data to remain unchanged after the power is turned off. FLASH storage technology is widely used in various electronic control units (ECUs) and in-vehicle entertainment systems to store software, data and multimedia content. In-vehicle FLASH memory plays a vital role in the automotive field. It is an important component in automotive electronic systems for storing key information such as code, data and network protocols.

[0048] Audio signal refers to an electrical signal that carries sound information, which can be in analog or digital form. Audio signal plays a vital role in various audio devices and systems, including recording, playing, processing and transmitting sound.

[0049] Waveform refers to the graphical representation of the signal changing over time, which describes the characteristics of the signal such as amplitude, frequency and phase. The waveform of an audio signal refers to the graphical representation of the sound signal in the time domain, which shows the amplitude (volume) of the sound changing over time. The waveform of an audio signal can be observed and analyzed by devices such as an oscilloscope, audio editing software or a digital storage oscilloscope.

[0050] Amplitude is an important parameter that describes the characteristics of a waveform. It indicates the maximum deviation of a waveform at a certain moment. In audio processing, amplitude usually refers to the strength of a sound signal, which can be determined by calculating the peak value or RMS value of the audio signal.

[0051] Time Alignment, in the field of audio processing, usually refers to the time adjustment or correction of audio signals to improve audio playback or meet specific processing requirements. The purpose of time compensation is to ensure that audio signals of different channels are aligned in time so that the correct sense of space and auditory effects can be produced during playback.

[0052] Waveform similarity refers to the degree of similarity between two waveform signals in shape, features or attributes. It is a method used to compare and evaluate the degree of similarity between two waveform signals. It helps people understand and analyze the relationship between signals by quantifying the similarity between the two waveform signals in shape, features or attributes. When two waveform signals have similar waveform features at the same time point or position, the similarity between them is high; conversely, if the waveform difference is large, the similarity is low. There are many methods for calculating waveform similarity, and the commonly used ones include: mean square error method, correlation coefficient method, absolute value difference method, Hamming distance, cosine similarity, etc.

[0053] As an example, when a vehicle breaks down or changes mode, the alarm system can alert and raise the alarm of abnormal information about the vehicle. However, current vehicle alarm systems usually do not have their own fault detection capabilities. When there is an abnormality in the output link of the alarm system and the abnormal information cannot be effectively diagnosed and confirmed, the alarm system may not be able to respond normally to issue correct prompts when fault information appears, which may easily lead to driving accidents.

[0054] In this regard, in an embodiment of the present application, when an alarm signal is received from a vehicle, the alarm system is controlled to output an alarm audio corresponding to the alarm signal, and the ambient audio in the vehicle is collected through the vehicle microphone, and the actual audio collected is compared with the pre-stored alarm audio in the memory. By calculating the similarity of the audio waveforms, the matching similarity between the actual audio and the pre-stored alarm audio is confirmed. If the matching similarity between the actual audio and the pre-stored alarm audio is greater than the matching threshold, it is confirmed that the working state of the alarm system is normal output, that is, there is no fault in the output link of the alarm system. If the matching similarity between the actual audio and the pre-stored alarm audio is less than or equal to the matching threshold, it indicates that the actual audio in the vehicle collected does not contain the alarm audio or the alarm audio output in the actual audio is wrong. It can be confirmed that the working state of the alarm system is abnormal output, that is, there is a fault in the output link of the alarm system. At this time, by calling the buzzer in the dashboard to sound a buzzer to alarm the fault in the alarm system, the fault of the alarm system can be accurately diagnosed in time and a corresponding prompt can be issued to avoid failure to respond when a vehicle fault occurs, resulting in a driving accident, thereby effectively improving the safety of vehicle driving.

[0055] Reference Figure 1 , shows a flow chart of the steps of a detection method of a vehicle alarm system provided by an embodiment of the present application, which may specifically include the following steps:

[0056] S101, in response to an alarm signal of a vehicle, collecting in-vehicle audio data to obtain a first audio signal.

[0057] When the vehicle detects an abnormal situation and sends out an alarm signal, the audio collection program can be started to collect real-time audio data in the vehicle, so as to capture the alarm audio that may be sent by the vehicle alarm system. For example, for various faults occurring in the vehicle, the types of alarm signals sent by the vehicle are also different from each other. For example, for door openings, insufficient tire pressure, engine failure, etc., the type of alarm signal corresponding to each fault information is also different. In order to distinguish the fault conditions sent by the vehicle, the alarm system will send out corresponding alarm audio for different types of alarm signals. When the alarm signal sent by the vehicle is received, the first alarm audio corresponding to the alarm signal is confirmed, and the speaker is controlled to output the first alarm audio for warning. In order to detect whether the working status of the alarm system is normal, the real-time audio data in the vehicle can be collected through the vehicle's microphone, and the first audio data can be obtained to capture the audio data sent by the alarm system in response to the alarm signal.

[0058] S102: extracting a second audio signal from pre-stored alarm audio according to the alarm signal.

[0059] In order to compare with the first audio signal collected in real time, it is necessary to extract the audio signal corresponding to the current type of alarm signal from the pre-stored alarm audio. These pre-stored alarm audios can be the alarm sounds that should be issued by the vehicle alarm system in response to the alarm information issued by different vehicle fault information. According to the type of alarm signal received (such as door not closed, insufficient tire pressure, engine failure, etc.), the system retrieves the corresponding audio file from several pre-stored alarm audios and uses it as the second audio signal.

[0060] In one example, various standard alarm audios can be pre-stored in the vehicle's memory when the vehicle leaves the factory. Preferably, the alarm audios can be pre-stored in the vehicle's FLASH memory. Specifically, several alarm audios can be selected from the vehicle manufacturer, third-party suppliers or standard audio libraries, and storage space can be created in the vehicle's memory. The alarm audios can be classified according to the type or code of the alarm signal, and several alarm audios can be pre-stored in the vehicle's memory. The alarm audios can be named and encoded for quick identification and retrieval when needed.

[0061] Based on the classified storage method of alarm audio, the vehicle's memory also pre-stores the signal correspondence between each alarm audio and the alarm signal. These signal correspondences usually exist in the form of a table, a mapping table or a database table, and different alarm signals or codes are associated with the corresponding alarm audio (usually the name or path of the audio file). When an alarm signal is received from a vehicle, the signal correspondence in the memory can be obtained. According to the signal correspondence between the alarm signal and the alarm audio, the signal correspondence is traversed to find the alarm audio corresponding to the alarm signal, and the corresponding alarm audio is used as the second audio signal to compare and verify the actual audio data in the vehicle.

[0062] S103, calculating the matching similarity between the first audio signal and the second audio signal, and if the matching similarity is greater than a first matching threshold, confirming that the working state of the vehicle alarm system is normal output.

[0063] According to the first audio signal collected and the second audio signal extracted from the memory, the working state of the vehicle alarm system can be confirmed by calculating the matching similarity between the first audio signal and the second audio signal. The similarity of the audio signal can be confirmed using audio signal processing technology, such as correlation coefficient, mean square error, dynamic time warping and other methods, and the calculated matching similarity is compared with the preset first matching threshold. If the matching similarity is greater than the preset first matching threshold, it is confirmed that the working state of the vehicle alarm system is normal output. If the matching similarity is less than or equal to the preset first matching threshold, it is confirmed that the working state of the vehicle alarm system is abnormal output circuit, indicating that there is a fault in the vehicle alarm system, and the buzzer in the vehicle dashboard can be controlled to emit an alarm sound to remind the driver that there is an abnormality in the alarm system.

[0064] Among them, the preset first matching threshold refers to the critical value used to determine whether the similarity between two audio signals reaches the preset standard when matching audio signals. Specifically, the threshold is used to determine whether the matching degree between the first audio signal (the actual collected alarm audio) and the second audio signal (the pre-stored alarm audio) reaches the "normal" or "qualified" level considered by the system. The setting of the first matching threshold may depend on system requirements, test environment, audio features, and algorithm selection. Since the system accuracy requirements, the noise level of the test environment, the audio feature performance, and the scoring criteria of different algorithms will all affect the setting of the first matching threshold, the value of the first matching threshold can be adjusted according to actual needs. As a preferred value, the first matching threshold is set to 80% in this application. It should be noted that this application does not limit this.

[0065] The detection method of the vehicle alarm system disclosed in the embodiment of the present application obtains a first audio signal by collecting audio data in the vehicle in response to the alarm signal of the vehicle; extracts a second audio signal from the pre-stored alarm audio according to the alarm signal; calculates the matching similarity between the first audio signal and the second audio signal, and if the matching similarity is greater than the first matching threshold, it is confirmed that the working state of the vehicle alarm system is normal output. The present application outputs alarm audio in response to the alarm signal, collects the actual audio in the vehicle, obtains the audio waveform similarity by comparing the actual audio in the vehicle with the pre-stored alarm audio, and confirms the matching degree between the actual audio and the pre-stored audio, thereby quickly verifying the output link of the alarm system, filling the current technical gap in the detection of the alarm system, and can accurately detect abnormal faults of the alarm system, avoiding the failure to issue an alarm in time when the vehicle fails, resulting in greater safety hazards, and improving the safety of user driving.

[0066] In one example, referring to Figure 2 , shows a system block diagram of a detection system in a detection method of a vehicle-mounted alarm system provided by an embodiment of the present application. When the vehicle leaves the factory, a number of alarm audios can be pre-stored in a storage unit in a cockpit domain controller through standard settings, and a corresponding relationship between the alarm signal and the alarm audio is established to facilitate the search for the alarm audio. When the vehicle detects an abnormal situation and sends an alarm signal, the main control unit in the cockpit domain controller controls the speaker to output the alarm audio corresponding to the alarm signal according to the alarm signal. At the same time, the actual audio data in the car is collected through a microphone to obtain a first audio signal. The main control unit extracts the corresponding alarm audio from the storage unit according to the alarm signal as a second audio signal, and the first audio signal is sent to the main control unit. A similarity measurement is performed with the second audio signal to obtain a matching similarity. When the matching similarity of the audio signal is greater than the first matching threshold, it can be confirmed that the working state of the vehicle alarm system is normal. When the matching similarity of the audio signal is less than or equal to the first matching threshold, it can be confirmed that the working state of the vehicle alarm system is abnormal, such as an output link abnormality, and the alarm audio cannot be output normally. In order to remind the vehicle alarm system that there is a fault, the buzzer in the vehicle instrument cluster is called through the cockpit domain controller to control the buzzer to emit a buzzer warning sound to prompt the abnormal situation in the vehicle alarm system, thereby avoiding failure to respond to the alarm signal when there is an abnormality in the vehicle alarm system, and failure to warn the vehicle fault in time, causing driving safety hazards.

[0067] In one example, referring to Figure 3 , shows a flowchart of the steps of calculating audio matching similarity in a detection method for a vehicle alarm system provided in an embodiment of the present application, step S104 may include the following specific steps:

[0068] 301, extracting a first waveform of a first audio signal and a second waveform of a second audio signal;

[0069] 302 , preprocess the first waveform to obtain a processed first waveform aligned with the second waveform.

[0070] The embodiment of the present application compares the collected first audio signal with the extracted second audio signal, obtains the matching similarity between the first audio signal and the second audio signal through the steps of waveform extraction, preprocessing, similarity calculation and matching similarity acquisition, and confirms whether the similarity between the first audio signal and the second audio signal meets the preset standard based on the matching similarity, so as to judge whether there is any abnormality in the working state of the vehicle alarm system.

[0071] In a specific implementation, for the first audio signal and the second audio signal, audio processing software or libraries (such as Python's librosa, SciPy, etc.) are used to extract corresponding waveform data. This will generate two waveform data sets, namely, a first waveform corresponding to the first audio signal and a second waveform corresponding to the second audio signal. Exemplarily, the waveform extraction process can be expressed by the following formula:

[0072] The first waveform X of the first audio signal is extracted by X=X1(t), and the second waveform Y of the second audio signal is extracted by Y=X2(t), wherein the parameter t represents the time length corresponding to the waveform extraction as t seconds.

[0073] Since the first audio signal collects actual environmental data through a microphone, it may contain noise such as human voice and environmental sound, while the second audio signal is extracted from a storage unit, and what is obtained is standard audio. At the same time, the collection time cannot guarantee that the environmental data within a complete cycle is collected. The first audio signal and the second audio signal may not be completely aligned in waveform. The first waveform is preprocessed to adjust the shape or position of the first waveform. The waveform preprocessing may include time stretching (to match different playback speeds), time offset (to correct time delays), noise suppression (to remove background noise) and other processing techniques. These techniques can be used alone or in combination. The processed first waveform should be as consistent as possible with the second waveform in shape and position to facilitate accurate similarity comparison.

[0074] Exemplarily, the preprocessing of the first waveform in the embodiment of the present application may include amplitude adjustment and time compensation, which is specifically implemented by the following steps:

[0075] Obtaining a preset amplitude interval, and proportionally adjusting the amplitude of the first waveform according to the preset amplitude interval to obtain an adjusted first waveform;

[0076] The timestamp information of the second waveform is obtained, and time compensation is performed on the adjusted first waveform according to the timestamp information to obtain the processed first waveform aligned with the second waveform.

[0077] In an embodiment of the present application, the alarm audio pre-stored in the storage unit has the same storage format. Based on the setting of the standard audio, the pre-stored alarm audio has a unified amplitude range to avoid the situation where the sound is fluctuating when the alarm audio is output. According to the upper and lower limits of the amplitude range corresponding to the pre-stored alarm audio, the amplitude range for the first audio signal can be pre-set, and the amplitude of the first waveform can be proportionally adjusted so that its amplitude range is consistent with the second waveform. Preferably, in an embodiment of the present application, the maximum fluctuation value of the audio amplitude can be set to +1V, or the minimum fluctuation value can be set to -1V. At the same time, in order to ensure that the first waveform and the second waveform are aligned in time, the timestamp information of the second waveform can be extracted from the second audio signal. Specifically, the timestamp information can be extracted from the metadata or time series of the second waveform. The timestamp information is usually expressed as a time series or a time point. According to the timestamp information of the second waveform, a time alignment technology, such as dynamic time warping (DTW) or a simple time shift operation, is used to align the first waveform after adjusting the amplitude to the second waveform, ensuring that the two waveforms are aligned on the time axis, so as to perform accurate similarity calculation. Exemplarily, the preprocessing process of the first waveform can be expressed by the following formula:

[0078] The first waveform is level-adjusted and aligned through X=A*X1(t), and the amplitude of the first waveform is adjusted to be consistent with the second waveform. The first waveform is time-compensated through X=A*X1(tB) to align with the second waveform, wherein B represents the time difference between the first waveform and the second waveform. Through amplitude adjustment, the continuous and regular environmental noise in the actual audio signal acquired by the microphone can be removed.

[0079] 303, performing similarity calculation based on the processed first waveform and the second waveform to obtain a first similarity;

[0080] 304: Obtain a matching similarity between the first audio signal and the second audio signal based on the first similarity.

[0081] By comparing the similarity between the processed first waveform and the second waveform, the matching degree between the two audio signals is quantified, wherein the similarity calculation can adopt a variety of methods, such as cross-correlation, dynamic time warping (Dynamic Time Warping, DTW), feature matching (such as Mel frequency cepstral coefficient MFCC matching), etc. Based on the selected method, the similarity between the two waveforms is calculated to obtain the first similarity. Preferably, in the embodiment of the present application, the Euclidean distance algorithm can be used to calculate the similarity between the processed first waveform and the second waveform, which can be calculated by the following formula:

[0082]

[0083] Wherein, D represents the first similarity between the first waveform and the second waveform, X(t) represents the processed first waveform, Y(t) represents the second waveform, and t is the sampling time of the waveform.

[0084] After obtaining the similarity between the first waveform and the second waveform according to the formula, the calculated first similarity is converted into a matching similarity value that is easier to understand and use. For example, the first similarity can be converted into a matching similarity that characterizes the degree of matching between the first audio signal and the second audio signal by the following formula:

[0085] Z=(2*F*t1-D) / (2*F*t1), where Z is the matching similarity indicating the matching degree between the first audio signal and the second audio signal, F represents the sampling rate of the microphone, and t1 represents the playing time of the alarm audio.

[0086] After converting and obtaining the matching similarity between the first audio signal and the second audio signal, the matching similarity is compared with the first matching threshold. If the matching similarity is greater than the first matching threshold, it can be confirmed that the working state of the vehicle alarm system is normal. If the matching similarity is less than or equal to the first matching threshold, it can be confirmed that the working state of the vehicle alarm system is abnormal. By setting different first matching thresholds, non-continuous noises in the actual audio signal, such as human voices, can be filtered out to a certain extent.

[0087] The embodiment of the present application outputs alarm audio in response to an alarm signal, retrieves the actual audio in the car, obtains the audio waveform similarity by pre-processing the actual audio in the car and the pre-stored alarm audio and comparing the waveforms, confirms the matching degree between the actual audio and the pre-stored audio, and thus quickly verifies the output link of the alarm system, filling the current technical gap in alarm system detection, and can accurately detect abnormal faults in the alarm system, avoiding the failure to issue an alarm in time when a vehicle fails, resulting in greater safety hazards, thereby improving the safety of user driving.

[0088] It should be noted that, for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present application are not limited by the described order of actions, because according to the embodiments of the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present application.

[0089] The present application also provides a detection device for a vehicle alarm system, referring to Figure 4 , shows a structural block diagram of a detection device for a vehicle alarm system provided in an embodiment of the present application, which specifically includes the following modules:

[0090] The first audio collection module 401 is used to collect in-vehicle audio data in response to the alarm signal of the vehicle to obtain a first audio signal;

[0091] The second audio extraction module 402 is used to extract a second audio signal from the pre-stored alarm audio according to the alarm signal;

[0092] The system state detection module 403 is used to calculate the matching similarity between the first audio signal and the second audio signal. If the matching similarity is greater than a first matching threshold, it is confirmed that the working state of the vehicle alarm system is normal output.

[0093] Optionally, the first audio collection module 401 further includes:

[0094] A first alarm audio acquisition module, used for acquiring a first alarm audio corresponding to the alarm signal in response to an alarm signal of the vehicle;

[0095] The first audio collection submodule is used to output a first alarm audio and collect in-vehicle audio data through a microphone to obtain a first audio signal.

[0096] Optionally, the system status detection module 403 further includes:

[0097] A waveform extraction module, used to extract a first waveform of the first audio signal and a second waveform of the second audio signal;

[0098] A first preprocessing module, used for preprocessing the first waveform to obtain a processed first waveform aligned with the second waveform;

[0099] A similarity calculation module, used to perform similarity calculation based on the processed first waveform and the second waveform to obtain a first similarity;

[0100] The matching similarity calculation module is used to obtain the matching similarity between the first audio signal and the second audio signal based on the first similarity.

[0101] Optionally, the first preprocessing module further includes:

[0102] An amplitude adjustment module, used to obtain a preset amplitude interval, and proportionally adjust the amplitude of the first waveform according to the preset amplitude interval to obtain an adjusted first waveform;

[0103] The time compensation module is used to obtain the timestamp information of the second waveform, perform time compensation on the adjusted first waveform according to the timestamp information, and obtain the processed first waveform aligned with the second waveform.

[0104] Optionally, the device further comprises:

[0105] An alarm audio acquisition module is used to acquire several alarm audios;

[0106] The alarm audio pre-storage module is used to pre-store a number of alarm audios in the vehicle's memory.

[0107] Optionally, the alarm audio is pre-stored in a memory of the vehicle, and the second audio extraction module 402 further includes:

[0108] A corresponding relationship acquisition module, used to acquire the signal corresponding relationship pre-stored in the memory;

[0109] The second audio search module is used to search the memory for a second audio signal corresponding to the alarm signal according to the signal correspondence relationship.

[0110] Optionally, the device further comprises:

[0111] A system abnormality confirmation module, used to confirm that the working state of the vehicle alarm system is an output circuit abnormality if the matching similarity is less than or equal to a first matching threshold;

[0112] The abnormality handling module is used to control the buzzer of the vehicle to sound an alarm if the working state is that the output circuit is abnormal.

[0113] The detection device of the vehicle alarm system provided in the embodiment of the present application, in response to the alarm signal of the vehicle, collects the audio data in the vehicle to obtain the first audio signal through the first audio acquisition module; extracts the second audio signal from the pre-stored alarm audio according to the alarm signal through the second audio extraction module; calculates the matching similarity between the first audio signal and the second audio signal through the system status detection module, and if the matching similarity is greater than the first matching threshold, it is confirmed that the working state of the vehicle alarm system is normal output. The detection device of the vehicle alarm system is used to output the alarm audio in response to the alarm signal, and collect the actual audio in the vehicle. By comparing the actual audio in the vehicle with the pre-stored alarm audio, the audio waveform similarity is obtained, and the matching degree of the actual audio and the pre-stored audio is confirmed, so as to quickly verify the output link of the alarm system, fill the current technical gap in the detection of the alarm system, accurately detect the abnormal fault of the alarm system, avoid the failure to issue an alarm in time when the vehicle fails, resulting in greater safety hazards, and improve the driving safety of users.

[0114] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0115] In addition, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned vehicle alarm system detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0116] Based on the same inventive concept, the present application also provides a vehicle, which may specifically include the detection device of the vehicle-mounted alarm system disclosed in the embodiment of the present application.

[0117] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0118] Finally, 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 terminal 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 terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0119] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0120] The above is a detailed introduction to the detection method, device, medium and vehicle of a vehicle-mounted alarm system provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A detection method for a vehicle alarm system, It is characterized in that The method comprises: In response to an alarm signal of the vehicle, collecting in-vehicle audio data to obtain a first audio signal; According to the alarm signal, extracting a second audio signal from the pre-stored alarm audio; The matching similarity between the first audio signal and the second audio signal is calculated, and if the matching similarity is greater than a first matching threshold, it is confirmed that the working state of the vehicle alarm system is normal output.

2. The method according to claim 1, It is characterized in that The step of collecting in-vehicle audio data in response to an alarm signal of the vehicle to obtain a first audio signal includes: In response to an alarm signal of the vehicle, obtaining a first alarm audio corresponding to the alarm signal; The first alarm audio is output, and the in-vehicle audio data is collected through a microphone to obtain a first audio signal.

3. The method according to claim 1, It is characterized in that The calculating the matching similarity between the first audio signal and the second audio signal includes: extracting a first waveform of the first audio signal and a second waveform of the second audio signal; Preprocessing the first waveform to obtain a processed first waveform aligned with the second waveform; Performing similarity calculation based on the processed first waveform and the second waveform to obtain a first similarity; A matching similarity between the first audio signal and the second audio signal is obtained based on the first similarity.

4. The method according to claim 3, It is characterized in that Preprocessing the first waveform to obtain a processed first waveform aligned with the second waveform includes: Obtaining a preset amplitude interval, and proportionally adjusting the amplitude of the first waveform according to the preset amplitude interval to obtain an adjusted first waveform; The timestamp information of the second waveform is acquired, and time compensation is performed on the adjusted first waveform according to the timestamp information to obtain a processed first waveform aligned with the second waveform.

5. The method according to claim 1, It is characterized in that Before collecting the in-vehicle audio data in response to the alarm signal of the vehicle to obtain the first audio signal, the method further includes: Get some alarm audios; The plurality of warning audios are pre-stored in a memory of the vehicle.

6. The method according to claim 1, It is characterized in that The alarm audio is pre-stored in a memory of the vehicle, and extracting a second audio signal from the pre-stored alarm audio according to the alarm signal comprises: Acquiring a signal correspondence relationship pre-stored in the memory; According to the signal correspondence, the second audio signal corresponding to the alarm signal is searched in the memory.

7. The method according to claim 1, It is characterized in that After calculating the matching similarity between the first audio signal and the second audio signal, the method further includes: If the matching similarity is less than or equal to a first matching threshold, confirming that the working state of the vehicle alarm system is an output circuit abnormality; If the working state is that the output circuit is abnormal, the buzzer of the vehicle is controlled to emit an alarm sound.

8. A detection device for a vehicle alarm system, It is characterized in that The device comprises: A first audio acquisition module, used for collecting in-vehicle audio data in response to an alarm signal of the vehicle to obtain a first audio signal; A second audio extraction module, used to extract a second audio signal from the pre-stored alarm audio according to the alarm signal; The system status detection module is used to calculate the matching similarity between the first audio signal and the second audio signal, and if the matching similarity is greater than a first matching threshold, confirm that the working status of the vehicle alarm system is normal output.

9. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, causes the processors to execute the detection method for the vehicle alarm system according to any one of claims 1 to 7.

10. A vehicle, It is characterized in that include: The detection device of the vehicle-mounted alarm system as claimed in claim 8.

Citation Information

Cited By

  • Engine fault intelligent identification method and system based on test run sound

    CN121185629A