CN113590868A - Sound threshold updating method and device, computer equipment and storage medium - Google Patents

Sound threshold updating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN113590868A
CN113590868A CN202110656943.XA CN202110656943A CN113590868A CN 113590868 A CN113590868 A CN 113590868A CN 202110656943 A CN202110656943 A CN 202110656943A CN 113590868 A CN113590868 A CN 113590868A
Authority
CN
China
Prior art keywords
sound
sound data
detected
target
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110656943.XA
Other languages
Chinese (zh)
Inventor
梁兆杰
李艳
田杰
李军暖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN202110656943.XA priority Critical patent/CN113590868A/en
Publication of CN113590868A publication Critical patent/CN113590868A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/61Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L17/00Speaker identification or verification techniques
    • G10L17/26Recognition of special voice characteristics, e.g. for use in lie detectors; Recognition of animal voices
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/90Pitch determination of speech signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Acoustics & Sound (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)

Abstract

The application relates to a method and a device for updating a sound threshold value, a computer device and a storage medium. The method comprises the following steps: acquiring sound data of an electric signal corresponding to a sound signal for characterizing the device to be tested from a target storage space, determining a plurality of electrical signal characteristic values from the sound data, and determining a target characteristic value for characterizing data characteristics of the plurality of electrical signal characteristic values from the plurality of electrical signal characteristic values, further determining a second sound threshold value according to the target characteristic value so as to update the current first sound threshold value of the equipment to be detected to the second sound threshold value, the automatic updating of the sound threshold used for judging whether the sound data of the equipment to be detected is abnormal is further realized, the sound threshold is determined completely according to the sound data acquired in the operation process of the equipment to be detected without depending on the subjective judgment of an operator, the determined sound threshold is more matched with the current operation condition and/or the surrounding environment of the equipment, and the reliability and the precision of the determined sound threshold are improved.

Description

Sound threshold updating method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for updating a sound threshold, a computer device, and a storage medium.
Background
According to the long-term accumulated experience of enterprises, the sound generated when the equipment runs can reflect the faults such as fine cracks and the like of the equipment, so that the fault detection and early warning method based on the running sound of the mechanical equipment is increasingly applied to monitoring of important equipment.
In the traditional technology, sound data of equipment operation is acquired through front-end acquisition equipment, and is uploaded to a server at regular time or based on abnormal sound data higher than a preset sound threshold value, and the server further analyzes and judges the abnormal condition of the equipment.
However, as the service time of the device is prolonged, the sound data of the operation of the device will change, and the ambient noise around the device will also change, so the sound threshold for determining the abnormal sound data will need to be updated continuously. In the traditional technology, an operator updates the sound threshold according to own experience, the updating mode depends on subjective judgment of the operator, and the reliability and precision are poor, so that the accuracy of equipment detection is influenced.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device and a storage medium for updating a sound threshold.
A method for updating a sound threshold, comprising:
acquiring sound data of equipment to be detected from a target storage space; the target storage space is used for storing sound data, and the sound data is used for representing an electric signal corresponding to a sound signal of the device to be detected;
determining a plurality of electric signal characteristic values according to the sound data, determining a target characteristic value according to the electric signal characteristic values, and updating a current first sound threshold of the equipment to be detected into a second sound threshold according to the target characteristic value; the target characteristic value is used for representing data characteristics of the plurality of electric signal characteristic values, the second sound threshold value is determined according to the target characteristic value, and the sound threshold value is used for judging whether sound data of the device to be detected are abnormal or not.
In one embodiment, the method further includes:
determining whether the sound data is abnormal or not according to the magnitude relation between the target characteristic value and the current first sound threshold;
and if so, determining whether the equipment to be detected is abnormal or not according to the sound data.
In one embodiment, the method further includes:
when the sound data of the equipment to be detected are obtained from the target storage space again, determining a plurality of new electric signal characteristic values according to the obtained sound data again, and determining a new target characteristic value according to the plurality of new electric signal characteristic values;
judging whether the acquired sound data is abnormal or not according to the new target characteristic value and the second sound threshold value;
and if so, determining whether the equipment to be detected is abnormal according to the acquired sound data again.
In one embodiment, determining the target characteristic value from the plurality of electrical signal characteristic values comprises:
and obtaining the average value of the characteristic values of the plurality of electric signals to obtain a target characteristic value.
In one embodiment, the trigger condition for acquiring the sound data of the device to be detected from the target storage space comprises:
and acquiring the sound data of the device to be detected from the target storage space under the condition that the target storage space is completely written.
In one embodiment, updating the current first sound threshold of the device to be detected to the second sound threshold according to the target feature value includes:
acquiring an average value of target characteristic values corresponding to a plurality of groups of sound data with continuous acquisition time to obtain a second sound threshold value; the target storage space completes one-time writing and correspondingly stores a group of sound data;
and updating the current first sound threshold of the equipment to be detected to be the second sound threshold.
In one embodiment, determining a plurality of electrical signal characteristic values from the sound data comprises:
and extracting the voltage amplitude of the electric signal from the sound data to obtain a plurality of electric signal characteristic values.
An apparatus for updating a sound threshold, comprising:
the data acquisition module is used for acquiring the sound data of the equipment to be detected from the target storage space; the target storage space is used for storing sound data, and the sound data is used for representing an electric signal corresponding to a sound signal of the device to be detected;
the threshold updating module is used for determining a plurality of electric signal characteristic values according to the sound data, determining a target characteristic value according to the electric signal characteristic values, and updating a current first sound threshold of the equipment to be detected into a second sound threshold according to the target characteristic value; the target characteristic value is used for representing data characteristics of the plurality of electric signal characteristic values, the second sound threshold value is determined according to the target characteristic value, and the sound threshold value is used for judging whether sound data of the device to be detected are abnormal or not.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring sound data of equipment to be detected from a target storage space; the target storage space is used for storing sound data, and the sound data is used for representing an electric signal corresponding to a sound signal of the device to be detected;
determining a plurality of electric signal characteristic values according to the sound data, determining a target characteristic value according to the electric signal characteristic values, and updating a current first sound threshold of the equipment to be detected into a second sound threshold according to the target characteristic value; the target characteristic value is used for representing data characteristics of the plurality of electric signal characteristic values, the second sound threshold value is determined according to the target characteristic value, and the sound threshold value is used for judging whether sound data of the device to be detected are abnormal or not.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring sound data of equipment to be detected from a target storage space; the target storage space is used for storing sound data, and the sound data is used for representing an electric signal corresponding to a sound signal of the device to be detected;
determining a plurality of electric signal characteristic values according to the sound data, determining a target characteristic value according to the electric signal characteristic values, and updating a current first sound threshold of the equipment to be detected into a second sound threshold according to the target characteristic value; the target characteristic value is used for representing data characteristics of the plurality of electric signal characteristic values, the second sound threshold value is determined according to the target characteristic value, and the sound threshold value is used for judging whether sound data of the device to be detected are abnormal or not.
The method, the device, the computer equipment and the storage medium for updating the sound threshold value are characterized in that sound data of an electric signal corresponding to a sound signal for representing equipment to be detected are obtained from a target storage space, a plurality of electric signal characteristic values are determined according to the sound data, a target characteristic value is determined according to the plurality of electric signal characteristic values, and a current first sound threshold value of the equipment to be detected is updated to be a second sound threshold value according to the target characteristic value; the target characteristic value is used for representing data characteristics of the plurality of electric signal characteristic values, the second sound threshold value is determined according to the target characteristic value, and the sound threshold value is used for judging whether sound data of the device to be detected are abnormal or not. The automatic updating of the sound threshold used for judging whether the sound data of the equipment to be detected is abnormal is further realized, the sound threshold is determined completely according to the sound data acquired in the operation process of the equipment to be detected without depending on subjective judgment of operators, the determined sound threshold is more matched with the current operation condition and/or the surrounding environment of the equipment, the reliability and the precision of the determined sound threshold are improved, the sound threshold is used for detecting whether the sound data of the equipment to be detected is abnormal, and the accuracy of equipment detection by subsequently utilizing the abnormal sound data is improved.
Drawings
FIG. 1 is a diagram showing an internal structure of a computer device according to an embodiment
FIG. 2 is a flow diagram illustrating a method for updating a threshold of sound in one embodiment;
FIG. 3 is a flowchart illustrating a method for updating a sound threshold according to another embodiment;
FIG. 4 is a diagram illustrating an exemplary embodiment of a method for updating a threshold value of a sound;
FIG. 5 is a flowchart illustrating a method for updating a sound threshold according to another embodiment;
FIG. 6 is a flowchart illustrating a method for updating a sound threshold according to another embodiment;
FIG. 7 is a flowchart illustrating a method for updating a sound threshold according to another embodiment;
FIG. 8 is a process diagram of a method for updating a sound threshold in one embodiment;
fig. 9 is a block diagram showing a configuration of an apparatus for updating a sound threshold in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for updating the sound threshold value can be applied to the computer equipment shown in fig. 1. The computer device may be a terminal comprising a processor, a memory, a communication interface, a display screen and an input means connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of updating a sound threshold. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The computer equipment acquires sound signals in the operation process of the equipment to be detected, converts the acquired sound signals into electric signals to acquire sound data of the equipment to be detected, and stores the acquired sound data into a target storage space. It should be noted that the sound data herein is used to represent the electrical signal corresponding to the sound signal of the device to be tested, and the sound threshold is a critical parameter value for determining whether the sound data is abnormal, and is used to determine whether the sound data of the device to be tested is abnormal. When the sound threshold value is updated, the computer equipment acquires sound data of the equipment to be detected from a target storage space, determines a plurality of electric signal characteristic values according to the sound data, determines a target characteristic value representing the data characteristic of the equipment to be detected according to the plurality of electric signal characteristic values, and updates a current first sound threshold value of the equipment to be detected into a second sound threshold value according to the target characteristic value; the target characteristic value is used for representing data characteristics of the plurality of electric signal characteristic values, the second sound threshold value is determined according to the target characteristic value, and the sound threshold value is used for judging whether sound data of the device to be detected are abnormal or not.
In one embodiment, as shown in fig. 2, a method for updating a sound threshold is provided, which is described by taking the method as an example applied to the computer device in fig. 1, and includes the following steps:
s210, sound data of the device to be detected are obtained from the target storage space.
Wherein the target storage space is used for storing sound data. Optionally, the target storage space is an MCU (micro control Unit) of the computer device, the MCU is limited by its own memory size, and can only buffer the sound data for a certain time (several seconds or ten and several seconds) each time, and then the new sound data will overwrite the previously buffered sound data. The sound data are used for representing electric signals corresponding to sound signals of the equipment to be detected, and the sound signals of the equipment to be detected comprise sound signals generated by self operation and sound signals generated by the surrounding environment.
Optionally, the computer device collects a sound signal of the device to be detected in the operation process, converts the collected sound signal into an electric signal to obtain sound data of the device to be detected, and stores the obtained sound data into the MCU of the computer device. And when the sound threshold value is updated, the computer equipment acquires the stored sound data of the equipment to be detected from the MCU.
Optionally, the computer device may obtain the stored sound data of the device to be detected from the MCU in the case of receiving the update instruction, or may periodically obtain the stored sound data of the device to be detected from the MCU. In this embodiment, the trigger condition for acquiring the sound data of the device to be detected from the target storage space is not specifically limited.
S220, determining a plurality of electric signal characteristic values according to the sound data, determining a target characteristic value according to the electric signal characteristic values, and updating a current first sound threshold of the equipment to be detected to be a second sound threshold according to the target characteristic value.
The target characteristic value is used for representing data characteristics of the plurality of electric signal characteristic values, the second sound threshold value is determined according to the target characteristic value, and the sound threshold value is used for judging whether sound data of the device to be detected are abnormal or not. The current first sound threshold of the device to be detected is a preset initial sound threshold, or a sound threshold determined by sound data of the device to be detected, which is obtained by the computer device from the target storage space in the previous time.
Alternatively, the characteristic value of the electrical signal may be a characteristic parameter of the electrical signal, such as a voltage amplitude, a voltage peak, and the like. The target characteristic value may be one of a plurality of electrical signal characteristic values, such as a maximum value, a minimum value, a median value or a multiple number, or may be a value determined by a plurality of electrical signal characteristic values, such as an average value of the plurality of electrical signal characteristic values.
Optionally, the computer device extracts a characteristic parameter of the electrical signal, such as a voltage peak value, from the stored sound data as the electrical signal characteristic value, and obtains a multiple number of significant bits in the multiple voltage peak values as the target characteristic value, so as to use the target characteristic value as a second sound threshold value, and update a current first sound threshold value of the device to be detected as the second sound threshold value.
In this embodiment, the computer device obtains the sound data of the electrical signal corresponding to the sound signal for characterizing the device to be tested from the target storage space, determines a plurality of electrical signal feature values according to the sound data, determines the target feature value of the data characteristic for characterizing the plurality of electrical signal feature values according to the plurality of electrical signal feature values, further determines the second sound threshold value according to the target feature value, so as to update the current first sound threshold value of the device to be tested to the second sound threshold value, further implements automatic update of the sound threshold value for determining whether the sound data of the device to be tested is abnormal, does not depend on subjective judgment of an operator, determines the sound threshold value completely according to the sound data obtained during the operation of the device to be tested, and the determined sound threshold value is more matched with the current operation condition and/or the surrounding environment of the device, thereby improving reliability and accuracy of the determined sound threshold value, whether the sound data of the equipment to be detected are abnormal is detected by using the sound threshold, so that the accuracy of equipment detection by using the abnormal sound data subsequently is improved.
In one embodiment, the method further includes determining whether the acquired sound data is abnormal by using the current first sound threshold, as shown in fig. 3, and the method further includes:
s310, determining whether the sound data are abnormal or not according to the magnitude relation between the target characteristic value and the current first sound threshold.
Specifically, the computer device compares the magnitude relationship of the target feature value with the current first sound threshold value to determine whether the sound data for which the target feature value is obtained is abnormal. If the target characteristic value is larger than the current first sound threshold value, determining that the sound data of the target characteristic value is abnormal; and if the target characteristic value is not larger than the current first sound threshold value, determining that the sound data of the target characteristic value is normal.
And S320, if the equipment is abnormal, determining whether the equipment to be detected is abnormal or not according to the sound data.
Optionally, if it is determined that the sound data with the target characteristic value is abnormal, it indicates that there is a possibility of abnormality of the device to be tested, and the computer device further performs abnormality analysis on the sound data with the target characteristic value, such as extracting other electrical signal characteristic values of the sound data, for example, the computer device further extracts electrical signal frequencies in the sound data to determine whether the device to be tested is abnormal.
Optionally, the method for updating the sound threshold may also be applied to a detection system as shown in fig. 4, where the detection system includes a front-end acquisition device 402 and a server 404, and the front-end acquisition device 402 and the server 404 are in communication via a network.
Specifically, the front-end collecting device 402 is configured to execute the contents of S210 to S230, and further determine whether the sound data is abnormal according to a magnitude relationship between the target feature value and the current first sound threshold. If the device is abnormal, the front-end acquisition device 402 sends the sound data to the server 404, the server 404 further determines whether the device to be detected is abnormal according to the sound data, and sends an abnormal alarm to prompt a user when the device to be detected is determined to be abnormal.
In this embodiment, the computer device determines whether the sound data is abnormal according to the magnitude relationship between the target characteristic value and the current first sound threshold, and determines whether the device to be detected is abnormal according to the sound data under the condition that the sound data is abnormal, so as to determine whether the abnormal sound of the device to be detected causes the abnormal operation of the device to be detected, thereby implementing the detection of the operation state of the device to be detected.
In one embodiment, after the sound threshold is updated, it may further be determined whether the device to be detected is abnormal according to the updated sound threshold, as shown in fig. 5, where the method further includes:
and S510, when the sound data of the device to be detected is obtained from the target storage space again, determining a plurality of new electric signal characteristic values according to the obtained sound data again, and determining a new target characteristic value according to the plurality of new electric signal characteristic values.
Optionally, after the computer device updates the current first sound threshold of the device to be detected to the second sound threshold, the computer device acquires the stored sound data (electrical signals) of the device to be detected from the MCU again, and extracts a plurality of new electrical signal characteristic values therefrom to determine a new target characteristic value.
And S520, judging whether the acquired sound data is abnormal or not according to the new target characteristic value and the second sound threshold value.
Specifically, the computer device compares the magnitude relationship between the new target feature value and the second sound threshold value to determine whether the sound data acquired again is abnormal. If the new target characteristic value is larger than the second sound threshold value, determining that the sound data acquired again is abnormal; and if the new target characteristic value is not larger than the second sound threshold value, determining that the sound data acquired again is normal.
And S530, if the detected equipment is abnormal, determining whether the detected equipment is abnormal or not according to the sound data.
Optionally, if it is determined that the obtained sound data is abnormal, it indicates that the equipment to be detected is abnormal, and the computer device further performs abnormality analysis on the obtained sound data to determine whether the equipment to be detected is abnormal.
In this embodiment, when the computer device acquires the sound data from the target storage space again, the computer device determines a plurality of new electrical signal feature values according to the acquired sound data again, determines a new target feature value according to the plurality of electrical signal feature values, and determines whether the acquired sound data is abnormal according to the new target feature value and the second sound threshold. And if so, determining whether the equipment to be detected is abnormal according to the acquired sound data again. The device to be detected is influenced by the service duration and/or the surrounding environment, the obtained sound data of the device to be detected continuously changes, the sound threshold is updated in real time according to the changed sound data, the obtained sound threshold is more suitable for the changed sound data, whether the subsequently obtained sound data are abnormal or not is judged more accurately, and whether the device to be detected is abnormal or not is further determined according to the abnormal sound data, so that the detection accuracy of the device is improved.
To further improve the reliability and accuracy of the determined sound threshold, in an optional embodiment, the determining the target characteristic value according to the plurality of electrical signal characteristic values in the above S220 includes:
and obtaining the average value of the characteristic values of the plurality of electric signals to obtain a target characteristic value.
Specifically, the computer device acquires an average value of a plurality of electric signal characteristic values as the above-described target characteristic value to reflect the overall characteristics of the plurality of characteristic values by the average value.
In an optional embodiment, the triggering condition for acquiring the sound data of the device to be detected from the target storage space in S220 includes:
and acquiring the sound data of the device to be detected from the target storage space under the condition that the target storage space is completely written.
Specifically, when the target storage space is completely written, i.e., full, the computer device obtains the sound data of the device to be tested from the target storage space.
In an optional embodiment, as shown in fig. 6, the updating the current first sound threshold of the device to be detected to the second sound threshold according to the target feature value in the step S220 includes:
s610, obtaining an average value of target characteristic values corresponding to a plurality of groups of sound data with continuous collection time to obtain a second sound threshold value.
The target storage space completes one-time writing and correspondingly stores a group of sound data;
and S620, updating the current first sound threshold of the equipment to be detected to be a second sound threshold.
Specifically, as mentioned above, the MCU is limited by the size of its own memory, and can only buffer the audio data for a period of time (several seconds or ten and several seconds) each time, and then the new audio data will overwrite the previously buffered audio data, that is, after the MCU completes writing, that is, it is full, the subsequently obtained audio data will overwrite and buffer on the MCU. And after the computer equipment completes one-time writing of a group of correspondingly stored sound data in the target storage space, determining a target characteristic value corresponding to the group of sound data to obtain an average value of the target characteristic values corresponding to a plurality of groups of sound data with continuous acquisition time, wherein the average value is used as a second sound threshold value, and the current first sound threshold value of the equipment to be detected is updated to the second sound threshold value. So as to avoid the judgment result from being misjudged or missed judged due to the frequent change of the sound threshold.
In an optional embodiment, the determining the plurality of electrical signal characteristic values according to the sound data in S220 includes:
and extracting the voltage amplitude of the electric signal from the sound data to obtain a plurality of electric signal characteristic values.
The computer equipment can determine whether the sound signal is abnormal or not according to the loudness of the sound signal collected in the running process of the equipment to be detected. Since the sound data is an electrical signal converted from the sound signal, the voltage amplitude of the electrical signal may reflect the loudness of the sound signal, and therefore, in this embodiment, the computer device obtains the voltage amplitude of the electrical signal in the sound data, and may obtain a plurality of electrical signal characteristic values, so as to determine a new sound threshold (i.e., a second sound threshold) according to the electrical signal characteristic values reflecting the loudness of the sound signal.
In a specific embodiment, as shown in fig. 7, the method for updating the sound threshold is applied to the detection system shown in fig. 4, and the method includes:
and S710, the front-end acquisition equipment acquires the sound data of the equipment to be detected from the MCU under the condition that the MCU completes writing.
S720, the front-end acquisition equipment acquires the mean value of the voltage amplitude of the electric signal corresponding to the sound data, and correspondingly obtains a plurality of mean values under the condition that the target storage space completes writing for many times.
S730, the front-end acquisition equipment acquires the average value of the average values to obtain a second sound threshold value, and updates the current first sound threshold value to the second sound threshold value.
S740, the front-end acquisition equipment determines whether the sound data written by the MCU every time is abnormal or not by adopting the current first sound threshold, if so, the sound data is sent to the server, and the server determines whether the equipment to be detected is abnormal or not according to the sound data.
Specifically, as shown in fig. 8, each of the buffers 1 to n stores therein sound data that is written when the MCU completes writing (i.e., when the MCU is full), and each time the MCU completes writing, the front-end acquisition device obtains an average value of the voltage amplitudes of the electrical signals corresponding to the written sound data, compares the obtained average value with a current first sound threshold, and determines that the sound data of the obtained average value is abnormal if the average value is greater than the current first sound threshold, so as to send the abnormal sound data to the server, and the server further determines whether the device to be tested is abnormal according to the abnormal sound data. As shown in fig. 8, the corresponding mean values 1 to n can be obtained by caching 1 to n, and the front-end acquisition device obtains the mean value of the mean values 1 to n again to serve as the second sound threshold, i.e., the new threshold, and updates the current first sound threshold to the second sound threshold, i.e., the new first sound threshold.
And obtaining the mean value of the corresponding electric signal voltage amplitude values of the sound data on the new group of buffers 1-n again, comparing the obtained mean value with the current first sound threshold value (namely, the second sound threshold value) to determine whether the sound data on the new group of buffers 1-n are abnormal or not, sending the abnormal sound data to a server, and determining whether the equipment to be detected is abnormal or not by the server according to the abnormal sound data. Similarly, the new group of buffers 1 to n can obtain the corresponding mean values 1 to n, the front-end acquisition device obtains the mean values of the mean values 1 to n again to serve as new threshold values, and updates the current first sound threshold value (i.e., the second sound threshold value) to the new threshold value, so as to realize the automatic updating of the sound threshold values in a circulating manner.
In this embodiment, the detection system implements automatic update of the sound threshold by the above method, does not depend on subjective judgment of an operator, is completely determined according to the sound data acquired during the operation of the device to be detected, and updates the sound threshold in real time according to the changed sound data, so that the obtained sound threshold is more suitable for the changed sound data, thereby improving reliability and precision of the determined sound threshold, more accurately judging whether the subsequently acquired sound data is abnormal, and further determining whether the device to be detected is abnormal according to the abnormal sound data, so as to improve accuracy of device detection.
It should be understood that although the various steps in the flow charts of fig. 2-8 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-8 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
In one embodiment, as shown in fig. 9, there is provided an apparatus for updating a sound threshold, including: a data acquisition module 901, a threshold determination module 902, and a threshold update module 903, wherein:
the data acquisition module 901 is used for acquiring the sound data of the device to be detected from the target storage space; the target storage space is used for storing sound data, and the sound data is used for representing an electric signal corresponding to a sound signal of the device to be detected;
the threshold updating module 902 is configured to determine a plurality of electrical signal feature values according to the sound data, determine a target feature value according to the plurality of electrical signal feature values, and update a current first sound threshold of the device to be detected to a second sound threshold according to the target feature value; the target characteristic value is used for representing data characteristics of the plurality of electric signal characteristic values, the second sound threshold value is determined according to the target characteristic value, and the sound threshold value is used for judging whether sound data of the device to be detected are abnormal or not.
In one embodiment, the apparatus further includes: an abnormality judgment module;
the abnormality judgment module is used for determining whether the sound data is abnormal or not according to the magnitude relation between the target characteristic value and the current first sound threshold; and if so, determining whether the equipment to be detected is abnormal or not according to the sound data.
In one embodiment, the abnormality determining module is further configured to:
when the sound data of the equipment to be detected are obtained from the target storage space again, determining a plurality of new electric signal characteristic values according to the obtained sound data again, and determining a new target characteristic value according to the plurality of new electric signal characteristic values; judging whether the acquired sound data is abnormal or not according to the new target characteristic value and the second sound threshold value; and if so, determining whether the equipment to be detected is abnormal according to the acquired sound data again.
In one embodiment, the threshold updating module 902 is specifically configured to:
and obtaining the average value of the characteristic values of the plurality of electric signals to obtain a target characteristic value.
In one embodiment, the threshold updating module 902 is specifically configured to:
and acquiring the sound data of the device to be detected from the target storage space under the condition that the target storage space is completely written.
In one embodiment, the threshold updating module 902 is specifically configured to:
acquiring an average value of target characteristic values corresponding to a plurality of groups of sound data with continuous acquisition time to obtain a second sound threshold value; the target storage space completes one-time writing and correspondingly stores a group of sound data; and updating the current first sound threshold of the equipment to be detected to be the second sound threshold.
In one embodiment, the threshold updating module 902 is specifically configured to:
and extracting the voltage amplitude of the electric signal from the sound data to obtain a plurality of electric signal characteristic values.
For the specific definition of the updating means of the sound threshold, reference may be made to the above definition of the updating method of the sound threshold, which is not described herein again. The modules in the device for updating the sound threshold may be implemented wholly or partially by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring sound data of equipment to be detected from a target storage space; the target storage space is used for storing sound data, and the sound data is used for representing an electric signal corresponding to a sound signal of the device to be detected; determining a plurality of electric signal characteristic values according to the sound data, determining a target characteristic value according to the electric signal characteristic values, and updating a current first sound threshold of the equipment to be detected into a second sound threshold according to the target characteristic value; the target characteristic value is used for representing data characteristics of the plurality of electric signal characteristic values, the second sound threshold value is determined according to the target characteristic value, and the sound threshold value is used for judging whether sound data of the device to be detected are abnormal or not.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining whether the sound data is abnormal or not according to the magnitude relation between the target characteristic value and the current first sound threshold; and if so, determining whether the equipment to be detected is abnormal or not according to the sound data.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the sound data of the equipment to be detected are obtained from the target storage space again, determining a plurality of new electric signal characteristic values according to the obtained sound data again, and determining a new target characteristic value according to the plurality of new electric signal characteristic values; judging whether the acquired sound data is abnormal or not according to the new target characteristic value and the second sound threshold value; and if so, determining whether the equipment to be detected is abnormal according to the acquired sound data again.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and obtaining the average value of the characteristic values of the plurality of electric signals to obtain a target characteristic value.
In one embodiment, the processor, when executing the computer program, further performs the steps of: :
and acquiring the sound data of the device to be detected from the target storage space under the condition that the target storage space is completely written.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring an average value of target characteristic values corresponding to a plurality of groups of sound data with continuous acquisition time to obtain a second sound threshold value; the target storage space completes one-time writing and correspondingly stores a group of sound data;
and updating the current first sound threshold of the equipment to be detected to be the second sound threshold.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and extracting the voltage amplitude of the electric signal from the sound data to obtain a plurality of electric signal characteristic values.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring sound data of equipment to be detected from a target storage space; the target storage space is used for storing sound data, and the sound data is used for representing an electric signal corresponding to a sound signal of the device to be detected; determining a plurality of electric signal characteristic values according to the sound data, determining a target characteristic value according to the electric signal characteristic values, and updating a current first sound threshold of the equipment to be detected into a second sound threshold according to the target characteristic value; the target characteristic value is used for representing data characteristics of the plurality of electric signal characteristic values, the second sound threshold value is determined according to the target characteristic value, and the sound threshold value is used for judging whether sound data of the device to be detected are abnormal or not.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining whether the sound data is abnormal or not according to the magnitude relation between the target characteristic value and the current first sound threshold; and if so, determining whether the equipment to be detected is abnormal or not according to the sound data.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the sound data of the equipment to be detected are obtained from the target storage space again, determining a plurality of new electric signal characteristic values according to the obtained sound data again, and determining a new target characteristic value according to the plurality of new electric signal characteristic values; judging whether the acquired sound data is abnormal or not according to the new target characteristic value and the second sound threshold value; and if so, determining whether the equipment to be detected is abnormal according to the acquired sound data again.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and obtaining the average value of the characteristic values of the plurality of electric signals to obtain a target characteristic value.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and acquiring the sound data of the device to be detected from the target storage space under the condition that the target storage space is completely written.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring an average value of target characteristic values corresponding to a plurality of groups of sound data with continuous acquisition time to obtain a second sound threshold value; the target storage space completes one-time writing and correspondingly stores a group of sound data;
and updating the current first sound threshold of the equipment to be detected to be the second sound threshold.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and extracting the voltage amplitude of the electric signal from the sound data to obtain a plurality of electric signal characteristic values.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for updating a sound threshold, the method comprising:
acquiring sound data of equipment to be detected from a target storage space; the target storage space is used for storing sound data, and the sound data is used for representing an electric signal corresponding to a sound signal of the device to be detected;
determining a plurality of electric signal characteristic values according to the sound data, determining a target characteristic value according to the electric signal characteristic values, and updating a current first sound threshold value of the equipment to be detected to be a second sound threshold value according to the target characteristic value; the target characteristic values are used for representing data characteristics of the plurality of electric signal characteristic values, the second sound threshold value is determined according to the target characteristic values, and the sound threshold value is used for judging whether sound data of the device to be detected are abnormal or not.
2. The method of claim 1, further comprising:
determining whether the sound data is abnormal or not according to the magnitude relation between the target characteristic value and the current first sound threshold;
and if so, determining whether the equipment to be detected is abnormal according to the sound data.
3. The method of claim 1, further comprising:
when the sound data of the equipment to be detected are obtained from the target storage space again, determining a plurality of new electric signal characteristic values according to the obtained sound data again, and determining a new target characteristic value according to the plurality of new electric signal characteristic values;
judging whether the sound data acquired again is abnormal or not according to the new target characteristic value and the second sound threshold value;
and if so, determining whether the equipment to be detected is abnormal according to the sound data acquired again.
4. The method of claim 1, wherein determining a target characteristic value from the plurality of electrical signal characteristic values comprises:
and obtaining the average value of the plurality of electric signal characteristic values to obtain the target characteristic value.
5. The method according to claim 1, characterized in that the triggering condition for acquiring the sound data of the device to be tested from the target storage space comprises:
and acquiring the sound data of the device to be detected from the target storage space under the condition that the target storage space is written.
6. The method according to claim 5, wherein the updating the current first sound threshold of the device to be detected to the second sound threshold according to the target feature value comprises:
acquiring an average value of target characteristic values corresponding to a plurality of groups of sound data with continuous acquisition time to obtain a second sound threshold; the target storage space completes one-time writing and correspondingly stores a group of sound data;
and updating the current first sound threshold of the equipment to be detected to the second sound threshold.
7. The method of any one of claims 1 to 6, wherein determining a plurality of electrical signal characteristic values from the sound data comprises:
and extracting the voltage amplitude of the electric signal from the sound data to obtain a plurality of electric signal characteristic values.
8. An apparatus for updating a sound threshold, the apparatus comprising:
the data acquisition module is used for acquiring the sound data of the equipment to be detected from the target storage space; the target storage space is used for storing sound data, and the sound data is used for representing an electric signal corresponding to a sound signal of the device to be detected;
the threshold updating module is used for determining a plurality of electric signal characteristic values according to the sound data, determining a target characteristic value according to the electric signal characteristic values, and updating a current first sound threshold of the equipment to be detected into a second sound threshold according to the target characteristic value; the target characteristic values are used for representing data characteristics of the plurality of electric signal characteristic values, the second sound threshold value is determined according to the target characteristic values, and the sound threshold value is used for judging whether sound data of the device to be detected are abnormal or not.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110656943.XA 2021-06-11 2021-06-11 Sound threshold updating method and device, computer equipment and storage medium Pending CN113590868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110656943.XA CN113590868A (en) 2021-06-11 2021-06-11 Sound threshold updating method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110656943.XA CN113590868A (en) 2021-06-11 2021-06-11 Sound threshold updating method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113590868A true CN113590868A (en) 2021-11-02

Family

ID=78243786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110656943.XA Pending CN113590868A (en) 2021-06-11 2021-06-11 Sound threshold updating method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113590868A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103901782A (en) * 2012-12-25 2014-07-02 联想(北京)有限公司 Sound control method, electronic device and sound control apparatus
CN109599121A (en) * 2019-01-04 2019-04-09 平安科技(深圳)有限公司 Drunk driving detection method, device, equipment and storage medium based on Application on Voiceprint Recognition
CN110536193A (en) * 2019-07-24 2019-12-03 华为技术有限公司 A kind of processing method and processing device of audio signal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103901782A (en) * 2012-12-25 2014-07-02 联想(北京)有限公司 Sound control method, electronic device and sound control apparatus
CN109599121A (en) * 2019-01-04 2019-04-09 平安科技(深圳)有限公司 Drunk driving detection method, device, equipment and storage medium based on Application on Voiceprint Recognition
CN110536193A (en) * 2019-07-24 2019-12-03 华为技术有限公司 A kind of processing method and processing device of audio signal

Similar Documents

Publication Publication Date Title
CN105376335B (en) Collected data uploading method and device
CN108446222B (en) Application testing method, device and equipment
US9554292B2 (en) Methods and systems for performance monitoring for mobile applications
RU2636007C2 (en) Device and method of dynamic measurement of environmental quality indicator
CN107222331B (en) method and device for monitoring performance of distributed application system, storage medium and equipment
CN107688530A (en) Method for testing software and device
CN109547910B (en) Electronic equipment acoustic assembly performance testing method, device, equipment and storage medium
CN101999101B (en) The defining method of system cloud gray model prediction
CN110213258B (en) Abnormity monitoring method and device for vehicle CAN bus and computer equipment
US20170017295A1 (en) User device power consumption monitoring and analysis
CN109669798B (en) Crash analysis method, crash analysis device, electronic equipment and storage medium
CN110209559B (en) Non-invasive monitoring method, control equipment and storage medium
CN111257672A (en) Line loss point inspection method and device, computer equipment and storage medium
CN113670434A (en) Transformer substation equipment sound abnormality identification method and device and computer equipment
CN114255784A (en) Substation equipment fault diagnosis method based on voiceprint recognition and related device
CN111698128A (en) Internet of things network quality detection method and device, computer equipment and storage medium
KR102202126B1 (en) Method and apparatus for determining abnormal of equipment by using current sensor and vibration sensor pattern information
CN113590868A (en) Sound threshold updating method and device, computer equipment and storage medium
CN115951824A (en) Sampling data processing method, device and nonvolatile storage medium
CN113284600A (en) Fault prediction method, device, computer equipment and storage medium
CN113836013A (en) Embedded point testing method and device, computer equipment and computer readable storage medium
KR102275571B1 (en) Method for providing smart device based fault diagnosis service using sound and vibration
CN113295972B (en) Insulation defect detection method, system, device, computer equipment and storage medium
CN116628564B (en) Model training method and system for detecting generator state
CN113409816B (en) Audio-frequency clamping-on detection method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination