Method and device for determining weather of scene where vehicle end is located, equipment and storage medium

By combining rain sound signals, rainfall signals, humidity and wind speed, the misjudgment problem of light rain sensors under the influence of low rainfall or background light is solved, and the accurate determination of the weather and rainfall on the vehicle end is achieved.

CN118884569APending Publication Date: 2024-11-01CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing light rain sensors are prone to background light to miscalculate the amount of rain, and when there is less rain, it is impossible to detect rainwater, and the weather on rainy days cannot be determined.

Method used

By detecting the combination of rain sound signal and rainfall signal, combining humidity value and wind speed, the rain sound signal is used to match the preset rain sound audio, and the rainfall amount is determined based on the rainfall signal, rainwater frequency and wind speed, improving the accuracy of weather confirmation.

Benefits of technology

Accurately determine the weather in the scene where the vehicle end is located to avoid misjudgment, especially when the rainfall is low or the rainfall detection range is limited, the accuracy of determining the amount of rainfall is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118884569A_ABST
    Figure CN118884569A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of vehicles, and discloses a method, device and equipment for determining weather of a scene where a vehicle end is located and a storage medium, and the method comprises the steps: detecting whether a rain sound signal and a rainfall signal are recognized or not; under the condition that the rain sound signal is recognized, but the rainfall signal is not recognized, scene weather is determined according to the size relation between the collected humidity value and a preset humidity value; and under the condition that the rain sound signal and the rainfall signal are identified, the scene weather is determined to be rainy weather, and the rainfall in the rainy weather is determined according to the rainfall signal, the rainwater frequency and the wind speed. According to the invention, the weather of the scene where the vehicle end is located is not judged only according to a single light signal detected by a light and rain sensor, but the rain sound signal and the rainfall signal are combined to accurately determine the weather of the scene. In addition, different parameters can be combined to accurately determine the rainfall in rainy days, so that the confirmation accuracy is improved.
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 method, device, equipment and storage medium for determining the weather of a scene in which a vehicle is located. Background Art

[0002] At present, light and rain sensors are usually used to detect the light intensity of the environment at the vehicle end and the amount of rain on the front windshield. Among them, the light and rain sensor determines the amount of rain by receiving reflected infrared rays. Specifically, when there are raindrops on the outer surface of the windshield, the infrared rays reflected on the windshield are partially scattered, that is, the reflected light becomes less. The greater the rain, the less light is reflected back. Then, by comparing the light and rain with the windshield under dry conditions, it is possible to determine the rainy weather and the amount of rain.

[0003] It is worth noting that the optical rain sensor is easily affected by background light and misjudges the amount of rainfall. In addition, when there is less rain, the optical rain sensor cannot detect rain due to its limited detection range, and thus cannot determine whether it is a rainy day. Summary of the invention

[0004] In view of the above problems, the present application provides a method, device, equipment and storage medium for determining the weather of the scene in which the vehicle is located, which are used to accurately determine the weather of the scene in which the vehicle is located, and can accurately determine the amount of rainfall in rainy weather.

[0005] According to one aspect of the present application, a method for determining the scene weather in which a vehicle is located is provided, and the determination method includes: detecting whether a rain sound signal and a rainfall signal are identified; when the rain sound signal is identified but the rainfall signal is not identified, determining the scene weather according to the relationship between the collected humidity value and a preset humidity value; when the rain sound signal and the rainfall signal are identified, determining that the scene weather is rainy weather, and determining the amount of rainfall in the rainy weather according to the rainfall signal, rain frequency and wind speed.

[0006] In an optional manner, the determination method also includes: traversing each preset rain sound audio, and matching the collected initial audio with the traversed preset rain sound audio; if the match is successful, determining that the initial audio is the rain sound signal, and stopping the operation of traversing the preset rain sound audio.

[0007] In an optional manner, the matching operation of the collected initial audio with the traversed preset rain sound audio further includes: dividing the collected initial audio into multiple initial audio segments to obtain multiple initial audio segments; performing feature extraction on the multiple initial audio segments, and calculating feature coefficients corresponding to each type of extracted feature according to a corresponding preset metric function; matching the feature coefficients corresponding to each type of feature with preset feature coefficients corresponding to each type of feature corresponding to the traversed preset rain sound audio, and determining the matching result between the initial audio and the traversed preset rain sound audio according to the matching results corresponding to each feature coefficient.

[0008] In an optional manner, the extracted type features include pitch features; the step of calculating the feature coefficients corresponding to each extracted type feature according to a corresponding preset measurement function further includes: calculating the fundamental frequency values ​​corresponding to each initial audio segment according to the pitch measurement function, and performing a standard deviation operation on the fundamental frequency values ​​corresponding to each initial audio segment, so as to use the calculated standard deviation as the feature coefficient corresponding to the pitch feature corresponding to each initial audio segment.

[0009] In an optional manner, dividing the collected initial audio into multiple initial audio segments to obtain multiple initial audio segments further includes: intercepting the collected initial audio based on a preset length to obtain multiple intercepted initial audios; and smoothing the multiple intercepted initial audios to obtain multiple initial audio segments.

[0010] In an optional manner, the scene weather is determined based on the relationship between the collected humidity value and the preset humidity value, further including: if the collected humidity value is greater than the preset humidity value, the scene weather is determined to be light rain weather; if the humidity value is less than or equal to the preset humidity value, the scene weather is determined to be windy and sandy weather.

[0011] In an optional manner, the determination method further includes: when the rain sound signal is not identified and the humidity value is greater than the preset humidity value, determining that the scene weather is foggy weather.

[0012] According to another aspect of the present application, a device for determining the scene weather in which a vehicle is located is provided, and the determination device includes: a detection module, which is used to detect whether a rain sound signal and a rainfall signal are identified; a first determination module, which is used to determine the scene weather according to the relationship between the collected humidity value and the preset humidity value if the rain sound signal is identified but the rainfall signal is not identified; a second determination module, which is used to determine that the scene weather is rainy weather if the rain sound signal and the rainfall signal are identified, and determine the amount of rainfall in the rainy weather according to the rainfall signal, rain frequency and wind speed.

[0013] According to one aspect of the present application, an electronic device is provided, including: a controller; and a memory for storing one or more programs, wherein when the one or more programs are executed by the controller, the above-mentioned determination method is executed.

[0014] According to one aspect of the present application, a computer-readable storage medium is also provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned determination method.

[0015] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned determination method.

[0016] This application does not judge the scene weather of the vehicle based on a single light signal detected by the light rain sensor, but combines the rain sound signal and the rainfall signal to accurately determine the scene weather. When the rain sound signal is identified but the rainfall signal is not identified, the humidity value is introduced to further accurately determine the scene weather; when the rain sound signal and the rainfall signal are identified, the scene weather is determined to be rainy weather, and according to the rainfall signal, rain frequency and wind speed, combined with different parameters, the rainfall amount in rainy weather is accurately determined, thereby improving the confirmation accuracy.

[0017] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0019] Figure 1 It is a flowchart of a method for determining the weather of a scene in which a vehicle is located, shown as an exemplary embodiment of the present application.

[0020] Figure 2 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for determining the weather of a scene in which a vehicle is located.

[0021] Figure 3 is based on Figure 2 The exemplary embodiment shown is a flow chart of another method for determining the weather of a scene in which a vehicle is located.

[0022] Figure 4 It is a structural diagram of the application system of the method for determining the weather in the scene where the vehicle is located in this application.

[0023] Figure 5 yes Figure 4 The connection relationship between related units in the application system is shown.

[0024] Figure 6 It is a schematic diagram of the operation flow of a rain sound recognition system shown in an exemplary embodiment of the present application.

[0025] Figure 7 It is a structural diagram of a device for determining the weather of a scene in which a vehicle is located, shown as an exemplary embodiment of the present application.

[0026] Figure 8 It is a structural diagram of a computer system of an electronic device shown in an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0027] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0028] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0029] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0030] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0031] The light intensity and rainfall amount detected by the existing vehicle-side optical rain sensor have certain errors, and are easily affected by background light and misjudge the rainfall amount. In addition, the detection range of the optical rain sensor is small. In scenes with little rain, the optical rain sensor cannot detect rain due to its limited detection range, and thus cannot determine whether it is a rainy day.

[0032] To this end, one aspect of the present application provides a method for determining the weather of the scene in which the vehicle is located. Figure 1 , Figure 1 This is a flow chart of a method for determining the weather of a scene in which a vehicle is located, shown in an exemplary embodiment of the present application. The determination method at least includes S110 to S130, which are described in detail as follows:

[0033] S110: Detect whether a rain sound signal and a rainfall amount signal are recognized.

[0034] The rain sound signal is a signal indicating that there is the sound of rain in the scene where the vehicle is located; the rainfall signal is a signal indicating that there is accumulated rain in the scene where the vehicle is located.

[0035] Compared with the existing method for determining the scene weather of the vehicle, this embodiment introduces a rain sound signal to more accurately determine the rainy weather and avoid misjudgment of the scene weather. The rain sound signal is a sound signal collected by a sound collection device installed outside the vehicle. The present application does not limit the specific location of the sound collection device, which can be placed near the existing light rain sensor. In the preferred embodiment, in order to ensure the real-time synchronous collection of the rain sound signal and the rainfall signal, as well as the reference of the collected samples, the sound collection device is set in the light rain sensor to increase its sound collection function, which can ensure the synchronous collection of the rain sound signal and the rainfall signal. At the same time, because the collection positions of the two signals are the same, it is ensured that the collected parameters have a high reference.

[0036] In some embodiments, it is first detected whether a rain sound signal is recognized, and then it is detected whether a rainfall signal is recognized; if a rain sound signal is recognized, there is no need to detect whether a rainfall signal is recognized, because in a rainy scene, raindrops falling on the sound of the car will definitely produce a rain sound signal. If the rain sound signal is not recognized, it can be directly determined that the current scene of the vehicle is not a rainy day, and there is no need to detect whether a rainfall signal is recognized, so as to reduce unnecessary detection steps, speed up the determination process of the scene weather, and improve the determination efficiency.

[0037] If the rain signal is not recognized, there is no need to detect whether the rain signal is recognized, and detect whether the humidity value of the scene where the vehicle is located is greater than the preset humidity value; if greater, it is determined that the weather in the scene where the vehicle is located is foggy.

[0038] S120: When a rain sound signal is identified but a rainfall signal is not identified, the scene weather is determined according to a relationship between the collected humidity value and a preset humidity value.

[0039] If only the rain sound signal is recognized, it cannot guarantee that the scene weather where the vehicle is located is rainy, and further judgment needs to be made in combination with the rainfall signal. If the rain sound signal is recognized but the rainfall signal is not recognized, it is also necessary to collect the humidity value in the scene weather where the vehicle is located and compare it with the preset humidity value to accurately determine the scene weather.

[0040] Among them, if the collected humidity value is greater than the preset humidity value, it is determined that the scene weather is light rain weather; if the humidity value is less than or equal to the preset humidity value, it is determined that the scene weather is windy and sandy weather.

[0041] S130: When the rain sound signal and the rainfall signal are identified, the scene weather is determined to be rainy weather, and the rainfall amount in the rainy weather is determined according to the rainfall signal, the frequency of rain and the wind speed.

[0042] When the rain sound signal and the rainfall signal are identified, it can be directly determined that the weather in the scene where the vehicle is located is rainy, and then the rainfall amount can be determined based on the rainfall signal, rain frequency and wind speed.

[0043] Exemplarily, the rainfall signal, rain frequency and wind speed are respectively brought into Table 1 for matching, and the preset rainfall amount obtained by matching is used as the rainfall amount in the rainy weather where the vehicle is located.

[0044] Table 1: Preset rainfall size correspondence table

[0045] Preset rain signal Preset Rain Frequency Preset wind speed Preset rainfall amount 1 A V1 a 2 B V2 b 3 C V3 c … … … …

[0046] This embodiment does not judge the scene weather of the vehicle end based on a single light signal detected by the light rain sensor, but combines the rain sound signal and the rainfall signal to accurately determine the scene weather. In the case where the rain sound signal is identified but the rainfall signal is not identified, the humidity value is introduced to further accurately determine the scene weather; in the case where the rain sound signal and the rainfall signal are identified, the scene weather is determined to be rainy weather, and according to the rainfall signal, the frequency of rain and the wind speed, combined with different parameters, the rainfall amount in the rainy weather is accurately determined, thereby improving the confirmation accuracy.

[0047] In another exemplary embodiment of the present application, how to determine the rain sound signal is described in detail. Figure 2 , Figure 2 is based on Figure 1 The exemplary embodiment shown is a flow chart of another method for determining the weather of the scene in which the vehicle is located. The determination method is as follows Figure 1 Based on the S110 to S130 shown, S210 to S220 are also included, which are described in detail as follows:

[0048] S210: traverse each preset rain sound audio, and match the collected initial audio with the traversed preset rain sound audio.

[0049] In some scenarios, the audio signal corresponding to the initial audio collected is small, and a signal amplification operation may be performed on it. That is, the initial audio in this application may be audio after signal amplification to ensure that the parameter values ​​therein are clearer.

[0050] Among them, the preset rain sound audio is the audio stored in the database, which can be updated by manually or automatically recording new rain sound audio, and then the updated preset rain sound audio is used for matching operations to ensure the latest parameters for matching operations to optimize the matching results.

[0051] This embodiment adopts a method of traversing various preset rain sound audios to ensure that the corresponding preset rain sound audios are matched one by one without omission.

[0052] S220: If the match is successful, it is determined that the initial audio is a rain sound signal, and the operation of traversing the preset rain sound audio is stopped.

[0053] A successful match does not mean that the initial audio and the preset rain sound audio traversed are 100% matched. In some embodiments, a preset matching percentage is used to determine whether the two are successfully matched. For example, the preset matching percentage is 70%. If the matching rate between the initial audio and the preset rain sound audio traversed reaches 70%, it indicates a successful match; if it is less than 70%, it indicates a failed match.

[0054] This embodiment provides a process for determining a rain sound signal, and determines whether the initial audio is a rain sound signal through simple traversal and matching operations, so as to ensure the accuracy of the determination result.

[0055] In another exemplary embodiment of the present application, how to match the collected initial audio with the traversed preset rain sound audio is described in detail. Figure 3 , Figure 3 is based on Figure 2 The exemplary embodiment shown is a flow chart of another method for determining the weather of the scene in which the vehicle is located. The determination method is as follows Figure 2 The S210 shown further includes S310 to S330, which are described in detail as follows:

[0056] S310: Divide the collected initial audio into a plurality of initial audio segments to obtain a plurality of initial audio segments.

[0057] For more detailed matching, the present embodiment divides the initial audio into segments, so as to perform subsequent processing on each of the initial audio segments one by one.

[0058] Exemplarily, the collected initial audio is intercepted based on a preset length to obtain a plurality of intercepted initial audios; and the plurality of intercepted initial audios are smoothed to obtain a plurality of initial audio segments. The interception process of the preset length can ensure that the length of each intercepted initial audio is consistent. For example, the initial audio can be processed in a two-dimensional plane, and the initial audio in the two-dimensional plane can be intercepted using a preset window (the length is the preset length), and the intercepted initial audio segments in each window can be smoothed to obtain a plurality of initial audio segments. Because the plurality of initial audio segments are smoothed segments, in the process of extracting features from them, the same feature extraction standard can be used to make the extracted features more standardized.

[0059] The following function can be used to smoothly divide the initial audio to obtain multiple initial audio segments:

[0060]

[0061] Wherein, w represents the preset window, l represents the length of the initial audio selected by the preset window (preset length), and n1 is the number of initial audio segments.

[0062] S320: extracting features from the multiple initial audio clips, and calculating feature coefficients corresponding to each type of extracted features according to a corresponding preset metric function.

[0063] The characteristic coefficient can be an Arabic numeral to simply represent the size, height, strength, etc. of the corresponding characteristic.

[0064] This embodiment can start from different levels, that is, from different features, and comprehensively process each initial audio segment accordingly, so as to facilitate the subsequent refined matching operation. This embodiment can extract multiple types of features for multiple initial audio segments, including but not limited to pitch features, loudness features, duration features, pause features, etc. That is, the above features corresponding to each initial audio segment can be extracted, and the feature coefficients corresponding to each type of feature of each initial audio segment can be calculated according to the corresponding preset metric function.

[0065] S330: Perform a matching operation on the characteristic coefficients corresponding to each type of feature and the preset characteristic coefficients corresponding to each type of feature corresponding to the traversed preset rain sound audio, so as to determine the matching result between the initial audio and the traversed preset rain sound audio according to the matching results corresponding to each characteristic coefficient.

[0066] Each preset rain sound audio corresponds to a preset feature coefficient corresponding to each type of feature, as shown in Table 2. Each preset rain sound audio is divided into 6 preset audio segments, and each preset audio segment corresponds to a pitch feature, a loudness feature, a duration feature, a pause feature, and corresponding feature coefficients.

[0067] Exemplarily, the matching result (success / failure) corresponding to each characteristic coefficient is multiplied by the corresponding weight coefficient, and the sum of all products is obtained by sum operation, and the sum value is compared with the preset sum value to determine whether the initial audio matches the traversed preset rain sound audio successfully. For example. If the sum value is greater than the preset sum value, it is determined that the initial audio matches the traversed preset rain sound audio successfully; if the sum value is less than or equal to the preset sum value, it is determined that the initial audio matches the traversed preset rain sound audio unsuccessfully.

[0068] Table 2: Characteristic coefficients corresponding to different types of features of the preset rain sound signal

[0069]

[0070] This embodiment provides a matching method, which performs feature extraction after dividing the collected initial audio, and calculates the feature coefficients corresponding to each type of feature of each initial audio segment. Among them, different types of features can characterize the features of each initial audio segment from different dimensions. The matching operation is not performed based on a single feature, but the influence of different features on the matching result is considered in multiple dimensions to improve the accuracy of the matching result.

[0071] In another exemplary embodiment of the present application, how to calculate the feature coefficients corresponding to each type of extracted features according to the corresponding preset metric function is described in detail, that is, the above S320 further includes S321; wherein the extracted type features include tone features, which are described in detail as follows:

[0072] S321: The fundamental frequency values ​​corresponding to the initial audio segments are calculated according to the pitch measurement function, and the standard deviation operation is performed on the fundamental frequency values ​​corresponding to the initial audio segments, so as to use the calculated standard deviation as the characteristic coefficient corresponding to the pitch feature corresponding to the initial audio segments.

[0073] In a preferred embodiment, in order to extract more accurate feature coefficients, each initial audio segment may be smoothed again, so that n2 (the present application does not limit the size relationship between n1 and n2, and the two may be the same or different) subdivided audio segments are obtained from each initial audio segment, and the fundamental frequency value corresponding to each initial audio segment is calculated according to the n2 subdivided audio segments corresponding to each initial audio segment and the pitch measurement function shown below:

[0074]

[0075] Where L is the length of the audio stream corresponding to the subdivided audio segment, expressed in the number of samples; t is the lag time, that is, the fixed time interval between each sampling point; x(i) is the value of the sampling point i, and x(i+t) is the value corresponding to the sampling point delayed by t; γ x (t) represents the familiarity between the entire audio stream and the audio stream after delay (t) starting from sampling point i.

[0076] It is worth noting that γ x When (t) is the largest, t at this time is used as the fundamental frequency period of the audio stream to determine that the fundamental frequency of the audio stream is 1 / t. Similarly, the fundamental frequency of the audio stream corresponding to each subdivided audio segment is calculated. The audio fundamental frequency curve S can be drawn from multiple fundamental frequency values. n , and the fundamental frequency array P(t) can be determined by multiple fundamental frequency values, and the audio pitch curve S can be calculated by the following formula n The standard deviation of:

[0077]

[0078] Among them, Δp(s n ) represents the audio pitch curve S n The standard deviation of ; T represents the number of elements in the base frequency array P(t); μ represents the average value of all elements in the base frequency array P(t).

[0079] Type features also include loudness features, duration features, and pause features. The calculation process of the feature coefficients corresponding to these three features is described in detail below:

[0080] (1) Calculation process of loudness feature corresponding to characteristic coefficient

[0081] The intensity value corresponding to each initial audio segment is calculated according to the loudness measurement function to construct an intensity curve; the division length is determined according to the fundamental frequency value, and the intensity curve is divided based on the division length to obtain multiple intensity feature intervals; after the middle value of each intensity feature interval is convolved, all the convolution values ​​are averaged to use the calculated average value as the characteristic coefficient corresponding to the loudness feature.

[0082] In a preferred embodiment, in order to extract more accurate characteristic coefficients, each initial audio segment may be smoothly segmented again as described above, that is, the intensity value is calculated for each re-divided audio segment. Specifically, a sampling window with a length of v is used to re-segment n1 initial audio segments so that each initial audio segment corresponds to n2 re-divided audio segments, and the intensity corresponding to each re-divided audio segment is calculated, thereby calculating the characteristic coefficient corresponding to the loudness feature corresponding to each initial audio segment.

[0083] Specifically, the strength of each subdivided audio segment is calculated according to the following formula:

[0084]

[0085] Among them, ε(k) represents the intensity curve; x(n) 2 Represents the square value of the corresponding value of each sampling point; n2 represents the number of sampling points; ν represents the length of the sampling window, which is 1.5 times the average value of all elements in the above-mentioned base frequency array P(t). For each initial audio segment, calculate the values ​​of multiple sampling points in each n2 segment obtained by re-dividing it, perform convolution processing on it, and then calculate the intensity value corresponding to the calculated value. After obtaining the intensity values ​​of all n2 segments, calculate the average value of these segments, and use the average value as the characteristic coefficient corresponding to the loudness feature corresponding to the initial audio segment.

[0086] (2) Calculation process of characteristic coefficients corresponding to duration and pause duration characteristics

[0087] Traverse the sampling points in each initial audio clip, and determine whether it is a sound sampling point through a preset threshold; if so, determine it as a sound sampling point, obtain the subsequent sound duration of the sampling point, and calculate the standard deviation corresponding to the sound duration, so as to calculate the standard deviation of all the sound durations.

[0088] If not, it is determined as a silent sampling point, the subsequent silent duration of the sampling point is obtained, and the standard deviation corresponding to the silent duration is calculated, thereby calculating the standard deviation of all the silent durations. This embodiment specifically introduces the calculation method of the feature coefficients corresponding to different types of features, and uses different preset metric functions to calculate the feature coefficients corresponding to features of different dimensions to ensure the accuracy of the feature coefficients.

[0089] In another exemplary embodiment of the present application, an exemplary application system of the above-mentioned multiple determination methods is described. Figure 4 , Figure 4 It is a structural diagram of the application system of the method for determining the weather in the scene where the vehicle is located in this application.

[0090] The system includes a data acquisition unit 1, a rain sound amplifier 2, a power supply unit 3, a data processing unit 4, a control unit 5 and a data storage unit 6. The data processing unit 4 is electrically connected to the data acquisition unit 1, the control unit 5, the power supply unit 3 and the data storage unit 6 respectively. The data acquisition unit 1 is installed on the rain sound amplifier 2. The data acquisition unit 1 is used to collect environmental data, the rain sound amplifier 2 is used to amplify the sound source signal, the power supply unit 3 is used to power the system, the data processing unit 4 is used to process and analyze data, the control unit 5 is used to execute control actions, and the data storage unit 6 is used to store data. The data acquisition unit 1 includes a light rainfall acquisition module 11, a rain sound acquisition module 12, and a humidity acquisition module 13. Block 13 and wind speed collection module 14, use the light rainfall collection module 11 to collect rainfall information, use the rain sound collection module 12 to collect sound information, use the humidity collection module 13 to collect humidity information, and use the wind speed collection module 14 to collect wind speed information; the light rainfall collection module 11 includes an infrared emitting submodule 111 and an infrared receiving line submodule 112, and the infrared receiving line submodule 112 is electrically connected to the data processing unit 4, and uses the infrared emitting submodule 111 to emit infrared rays, and uses the infrared receiving line submodule 112 to receive reflected infrared rays; the rain sound collection module 12 is installed in the rain sound amplifier 2, and the rain sound amplifier 2 adopts a drum structure design, which is a hardware amplification, similar to the sound gathering effect. Other environmental sounds may include vehicle vibration, windshield vibration, and airflow vibration, and the laws of vehicle vibration, windshield vibration, airflow vibration and rain sound vibration are different. These interference factors can be eliminated through data enhancement or other means when performing rain sound recognition modeling.The rain sound amplifier 2 amplifies the sound to facilitate the rain sound collection module 12 to collect sound information; the data processing unit 4 includes a signal amplification module 41, a signal preprocessing module 42, a signal identification module 43 and a judgment module 44, and the signal amplification module 41 establishes data connections with the data collection unit 1 and the signal preprocessing module 42 respectively, the signal identification module 43 establishes data connections with the signal preprocessing module 42 and the judgment module 44 respectively, and the judgment module 44 establishes data connections with the control unit 5 and the data storage unit 6. The signal amplification module 41 is used to amplify the signal, the signal preprocessing module 42 is used for signal preprocessing, the signal identification module 43 is used to identify the signal, and the judgment module 44 is used to make a weather judgment based on the comprehensive identification results; the control unit 5 includes a wake-up module 51, a wiper control module 52 and a light control module 53, and the wake-up module 51 establishes an electrical connection with the infrared emitting submodule 111, the wake-up module 51 is used to wake up the infrared emitting submodule 111, the wiper control module 52 is used to control the wiper drive motor, and the light control module 53 is used to control the light status; the data storage unit 6 includes a rain sound database 61, a light rainfall database 62, a judgment logic database 63, a control logic database 64 and a system database 65, the data storage unit 6 uses the rain sound database 61 to store rain sound data, uses the light rainfall database 62 to store light rainfall data, uses the judgment logic database 63 to store judgment logic, uses the control logic database 64 to store control logic, and uses the system database 65 to store system data. Figure 5 yes Figure 4 The connection relationship between related units in the application system is shown.

[0091] Specifically, the rain sound collection module 12 collects sound signals, the humidity collection module 13 collects humidity signals, and the wind speed collection module 14 collects wind speed signals. The data collection unit 1 transmits the collected signals to the data processing unit 4. After amplification by the signal amplification module 41 and preprocessing by the signal preprocessing module 42, the signal recognition module 43 recognizes the sound signal. If the frequency of the sound signal is recognized as a rain sound signal, the signal recognition module 43 wakes up the light rainfall collection module 11 through the wake-up module 51. The light rainfall collection module 11 collects signals to the data processing unit 4. If the signal recognition module 43 fails to recognize the rainfall signal and the humidity signal exceeds the threshold, the judgment module 44 determines that it is light rain at this time. If the humidity signal does not exceed the threshold, the judgment module 44 determines that it is windy and sandy at this time. If the signal recognition module 43 recognizes the rainfall signal, the judgment module 44 determines that it is windy and sandy at this time according to the rain frequency and wind speed, combined with the rainfall signal The signal is used to judge the rainfall amount; if the signal recognition module 43 does not recognize the rain sound signal, but the humidity signal exceeds the threshold, the judgment module 44 judges that it is foggy weather; the control unit 5 controls the car lights using the light control module 53 and controls the wiper drive motor 52 to perform corresponding actions according to the preset control logic based on the judgment result; wherein, the light rainfall acquisition module 11 uses the infrared transmitting submodule 111 to transmit infrared rays, and the infrared receiving submodule 112 receives the reflected infrared rays to collect rainfall signals, the rain sound amplifier 2 adopts a drum structure to amplify the sound signal, the power supply unit 3 is used to power the system, the rain sound database 61 in the data storage unit 6 is used to store rain sound data, the light rainfall database 62 is used to store light rainfall data, the judgment logic database 63 is used to store judgment logic, the control logic database 64 is used to store control logic, and the system database 65 is used to store system data.

[0092] The initialization of the rain sound database 61 is to input a large number of known rain sound sources into the training module. After the sound source is manually confirmed, the new rain sound source can be stored in the rain sound database 61. Figure 6 As shown, Figure 6 1 is a schematic diagram of the operation flow of a rain sound recognition system according to an exemplary embodiment of the present application. The training module can store the rain sound source obtained through training into the rain sound database to update the rain sound database, so that the recognition module can timely use the rain sound source in the updated rain sound database to perform audio comparison to ensure the accuracy of the comparison result.

[0093] Another aspect of the present application also provides a device for determining the weather of the scene in which the vehicle is located, such as Figure 7 As shown, Figure 7It is a structural diagram of a device for determining the scene weather of the vehicle end shown in an exemplary embodiment of the present application. The determination device 700 includes: a detection module 710, which is used to detect whether a rain sound signal and a rainfall signal are identified; a first determination module 730, which is used to determine the scene weather according to the size relationship between the collected humidity value and the preset humidity value when a rain sound signal is identified but a rainfall signal is not identified; a second determination module 750, which is used to determine that the scene weather is rainy weather when a rain sound signal and a rainfall signal are identified, and determine the amount of rainfall in the rainy weather according to the rainfall signal, rain frequency and wind speed.

[0094] In another exemplary embodiment of the present application, the determination device 700 also includes: a traversal module, which is used to traverse each preset rain sound audio and match the collected initial audio with the traversed preset rain sound audio; a matching success module, which is used to determine that the initial audio is a rain sound signal if the match is successful, and stop traversing the preset rain sound audio.

[0095] In another exemplary embodiment of the present application, the traversal module further includes: a division unit, used to divide the collected initial audio into multiple initial audio segments to obtain multiple initial audio segments; a feature extraction unit, used to extract features from the multiple initial audio segments, and calculate the feature coefficients corresponding to each type of extracted features according to the corresponding preset metric function; a matching determination unit, used to match the feature coefficients corresponding to each type of feature with the preset feature coefficients corresponding to each type of feature corresponding to the traversed preset rain sound audio, and determine the matching result between the initial audio and the traversed preset rain sound audio according to the matching results corresponding to each feature coefficient.

[0096] In another exemplary embodiment of the present application, the extracted type features include pitch features; the feature extraction unit further includes: a construction section for calculating the fundamental frequency values ​​corresponding to each initial audio segment according to the pitch measurement function, and performing a standard deviation operation on the fundamental frequency values ​​corresponding to each initial audio segment, so as to use the calculated standard deviation as a feature coefficient corresponding to the pitch features corresponding to each initial audio segment.

[0097] In another exemplary embodiment of the present application, the division unit further includes: a capture section, which is used to capture the collected initial audio based on a preset length to obtain multiple captured initial audios; and a smoothing processing section, which is used to smooth the multiple captured initial audios to obtain multiple initial audio segments.

[0098] In another exemplary embodiment of the present application, the first determination module 730 further includes: a first determination subunit, used to determine that the scene weather is light rain weather if the collected humidity value is greater than a preset humidity value; a second determination subunit, used to determine that the scene weather is windy and sandy weather if the humidity value is less than or equal to the preset humidity value.

[0099] In another exemplary embodiment of the present application, the determination device 700 further includes: a third determination module, configured to determine that the scene weather is foggy weather when no rain sound signal is identified and the humidity value is greater than a preset humidity value.

[0100] This application does not judge the scene weather of the vehicle based on a single light signal detected by the light rain sensor, but combines the rain sound signal and the rainfall signal to accurately determine the scene weather. When the rain sound signal is identified but the rainfall signal is not identified, the humidity value is introduced to further accurately determine the scene weather; when the rain sound signal and the rainfall signal are identified, the scene weather is determined to be rainy weather, and according to the rainfall signal, rain frequency and wind speed, combined with different parameters, the rainfall amount in rainy weather is accurately determined, thereby improving the confirmation accuracy.

[0101] It should be noted that the determination device provided in the above embodiment and the determination method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here.

[0102] Another aspect of the present application provides an electronic device, including: a controller; and a memory for storing one or more programs, which, when executed by the controller, executes the above-mentioned determination method.

[0103] See also Figure 8 , Figure 8 1 is a schematic diagram of the structure of a computer system of an electronic device shown in an exemplary embodiment of the present application, which shows a schematic diagram of the structure of a computer system of an electronic device suitable for implementing an embodiment of the present application.

[0104] It should be noted that Figure 8 The computer system 800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0105] like Figure 8As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage part 808 to the random access memory (RAM) 803, such as executing the method in the above embodiment. In the RAM 803, various programs and data required for system operation are also stored. The CPU 801, ROM 802 and RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0106] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.

[0107] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 809, and / or installed from a removable medium 811. When the computer program is executed by a central processing unit (CPU) 801, various functions defined in the system of the present application are executed.

[0108] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0109] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing 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 than the order marked in the accompanying drawings. For example, two boxes represented in succession 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 or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0110] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0111] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above determination method is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.

[0112] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the determination method provided in each of the above embodiments.

[0113] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0114] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0115] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A method for determining the weather of a scene in which a vehicle is located, characterized in that: The determination method comprises: Detect whether rain sound signal and rainfall signal are recognized; When the rain sound signal is identified but the rainfall signal is not identified, the scene weather is determined according to the magnitude relationship between the collected humidity value and the preset humidity value; When the rain sound signal and the rainfall signal are identified, the scene weather is determined to be rainy weather, and the rainfall amount in the rainy weather is determined based on the rainfall signal, rain frequency and wind speed.

2. The determination method according to claim 1, characterized in that: The determination method further comprises: Traverse each preset rain sound audio, and match the collected initial audio with the traversed preset rain sound audio; If the match is successful, the initial audio is determined to be the rain sound signal, and the operation of traversing the preset rain sound audio is stopped.

3. The determination method according to claim 2, characterized in that: The matching operation of the collected initial audio with the traversed preset rain sound audio further includes: Dividing the collected initial audio into a plurality of initial audio segments to obtain a plurality of initial audio segments; Extracting features from the multiple initial audio clips, and calculating feature coefficients corresponding to each type of feature extracted according to a corresponding preset metric function; According to the characteristic coefficients corresponding to each type of feature, a matching operation is performed with the preset characteristic coefficients corresponding to each type of feature corresponding to the traversed preset rain sound audio, and according to the matching results corresponding to each characteristic coefficient, the matching result between the initial audio and the traversed preset rain sound audio is determined.

4. The determination method according to claim 3, characterized in that: The extracted type features include pitch features; The step of calculating the feature coefficients corresponding to the extracted features of each type according to the corresponding preset metric function further includes: The fundamental frequency values ​​corresponding to the respective initial audio segments are calculated according to the pitch measurement function, and the standard deviation operation is performed on the fundamental frequency values ​​corresponding to the respective initial audio segments, so that the calculated standard deviation is used as the characteristic coefficient corresponding to the pitch feature corresponding to the respective initial audio segments.

5. The determination method according to claim 3, characterized in that: The step of dividing the collected initial audio into a plurality of initial audio segments to obtain a plurality of initial audio segments further comprises: The collected initial audio is intercepted and processed based on a preset length to obtain a plurality of intercepted initial audios; The multiple intercepted initial audios are smoothed to obtain multiple initial audio segments.

6. The determination method according to any one of claims 1 to 5, characterized in that: The step of determining the scene weather according to the magnitude relationship between the collected humidity value and the preset humidity value further includes: If the collected humidity value is greater than the preset humidity value, it is determined that the scene weather is light rain; If the humidity value is less than or equal to the preset humidity value, it is determined that the scene weather is sandstorm weather.

7. The determination method according to any one of claims 1 to 5, characterized in that: The determination method further comprises: When the rain sound signal is not identified and the humidity value is greater than the preset humidity value, it is determined that the scene weather is foggy.

8. A device for determining the weather of a scene in which a vehicle is located, characterized in that: The determining device comprises: A detection module, used to detect whether a rain sound signal and a rainfall signal are recognized; A first determination module is used to determine the scene weather according to the magnitude relationship between the collected humidity value and the preset humidity value when the rain sound signal is identified but the rainfall signal is not identified; The second determination module is used to determine that the scene weather is rainy weather when the rain sound signal and the rainfall signal are identified, and determine the amount of rainfall in the rainy weather according to the rainfall signal, rain frequency and wind speed.

9. An electronic device, characterized in that: include: Controller; A memory for storing one or more programs, which, when executed by a controller, enables the controller to implement the determination method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the determination method according to any one of claims 1 to 7.