Time sequence signal detection method and device, electronic equipment and computer program product
Through wavelet basis function model decomposition and machine learning model detection, the problem of inaccurate signal detection in traditional security equipment is solved, and the detection accuracy and anti-interference ability are improved.
Patent Information
- Application Number
- CN202410869498.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Traditional security equipment has discontinuous signal transmission, hysteresis and glitches in signal detection, resulting in inaccurate alarm prediction, and traditional models cannot effectively describe the dynamics and complexity of timing signals, resulting in false positives and missed reports.
The target wavelet basis function model is used to decompose the time sequence signal to be detected, and the wavelet coefficients and signal feature sets are obtained, including time-frequency characteristics and energy characteristics, and the signal detection model trained by machine learning is used for detection.
It improves the accuracy of timing signal detection, reduces the false alarm rate, enhances the resistance to external environment interference, and achieves more accurate alarm type recognition.
Smart Images

Figure CN118885891A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of signal detection, and in particular to a method, device, electronic equipment and computer program product for detecting a timing signal. Background Art
[0002] With social development and technological progress, safety equipment systems have gradually become popular in various buildings, but combined with the actual situation, there are still many shortcomings.
[0003] First, traditional security equipment, including smoke, infrared and gas sensors, are NB-Iot devices that are connected to the Internet of Things. They transmit data periodically during use, and have problems such as discontinuous signal transmission, hysteresis, and signal glitches, which lead to inaccurate alarm predictions.
[0004] Second, the working driving mechanism of traditional electrical device identification models is rigid and cannot adapt well to various types of signal patterns. Feature engineering is mainly based on expert experience rules or the monotony of feature extraction perspective, which cannot give a comprehensive description of the signal and cannot adapt to the dynamics and complexity of the signal.
[0005] Third, interference from external environmental factors, such as non-open flames or excessive smoke, can lead to false alarms or missed alarms in alarm predictions.
[0006] Existing security equipment detection methods include traditional models such as time series models and neural network models. However, the time series statistical features constructed by the time series model fail to solve the time lag problem, and the limitations of the neural network model and other models in designing business data features or feature extraction perspectives based on expert rules make it impossible to fully describe the characteristics of the signal. Therefore, the rigid working driving mechanism of the traditional model restricts the current security equipment detection technology.
[0007] Currently, no effective solution has been proposed for the above-mentioned problem of inaccurate detection of timing signals. Summary of the invention
[0008] The embodiments of the present invention provide a method, an apparatus, an electronic device and a computer program product for detecting a timing signal, so as to at least solve the technical problem of inaccurate detection of a timing signal.
[0009] According to one aspect of an embodiment of the present invention, a method for detecting a time series signal is provided, comprising: acquiring a time series signal to be detected of a device to be detected; determining wavelet coefficients corresponding to the time series signal to be detected in multiple sub-bands using a target wavelet basis function model, wherein the target wavelet basis function model is used to decompose the time series signal to be detected into sub-bands of different frequencies, and use the wavelet coefficients to represent signal features in each sub-band; determining a signal feature set of the time series signal to be detected according to the multiple wavelet coefficients of the time series signal to be detected, wherein the signal feature set at least includes: signal time-frequency features and signal energy features corresponding to each wavelet coefficient; detecting the signal feature set using a signal detection model to obtain a signal detection result, wherein the signal detection result is used to indicate the alarm type of the time series signal to be detected, and the signal detection model is trained by machine learning using multiple sets of data, and each set of data in the multiple sets of data includes: a signal feature set of a sample time series signal and a pre-calibrated alarm type label, and the alarm type label is used to represent the alarm type of the sample time series signal.
[0010] Optionally, using a target wavelet basis function model, determining the wavelet coefficients corresponding to the time series signal to be detected in multiple sub-bands includes: identifying the distribution of frequencies to be detected of the time series signal to be detected, wherein the distribution of frequencies to be detected is used to represent the distribution of the signal frequency at each moment to be detected in the time series signal to be detected within a time period to be detected, wherein the time period to be detected is a time period covered by the time series signal to be detected, and there are multiple moments to be detected with the same time interval in the time period to be detected; determining a target signal pattern corresponding to the frequency distribution of frequencies to be detected among multiple preset signal patterns recorded in a preset signal pattern set, wherein the preset signal pattern set is used to record the preset signal patterns corresponding to multiple preset detection frequencies, respectively. Mode; determine the target signal decomposition combination corresponding to the target signal mode among multiple preset signal decomposition combinations recorded by the preset wavelet basis function model set, wherein the preset wavelet basis function model set is used to record the preset signal decomposition combinations corresponding to multiple preset signal modes, each of the preset signal decomposition combinations includes: a preset wavelet basis function model and a preset decomposition level corresponding to the preset wavelet basis function model, and the target signal decomposition combination includes: the target wavelet basis function model and the target decomposition level corresponding to the target wavelet basis function model; use the target wavelet basis function model to perform multi-level decomposition of the time series signal to be detected according to the target decomposition level to obtain the wavelet coefficients corresponding to the multiple sub-frequency bands.
[0011] Optionally, the target wavelet basis function model is used to perform multi-level decomposition of the time series signal to be detected according to the target decomposition level to obtain the wavelet coefficients corresponding to the multiple sub-bands respectively, including: using the target wavelet basis function model to perform a tower-like decomposition of the time series signal to be detected step by step to obtain sub-band information of each sub-band, wherein the total decomposition level of the tower decomposition is the target decomposition level, each decomposition level corresponds to one sub-band, and each sub-band information includes: a high-pass filter signal and a low-pass filter signal, the low-pass filter signal is used for decomposition at the next decomposition level; determine the wavelet coefficients corresponding to the low-pass filter signal obtained at each decomposition level and the high-pass filter signal obtained at the first decomposition level.
[0012] Optionally, the target decomposition level includes at least: the first decomposition level, the second hierarchical level and the third decomposition level, and the target wavelet basis function model is used to perform a tower-like decomposition of the time series signal to be detected step by step to obtain the sub-band information of each sub-band, including: using the target wavelet basis function model to decompose the time series signal to be detected to obtain the first frequency band information corresponding to the first decomposition level, wherein the first frequency band information includes: a first high-pass filtered signal and a first low-pass filtered signal; using the target wavelet basis function model to decompose the first low-pass filtered signal to obtain the second frequency band information corresponding to the second decomposition level, wherein the second frequency band information includes: a second high-pass filtered signal and a second low-pass filtered signal; using the target wavelet basis function model to decompose the second low-pass filtered signal to obtain the third frequency band information corresponding to the third decomposition level, wherein the third frequency band information includes: a third high-pass filtered signal and a third low-pass filtered signal.
[0013] Optionally, determining the signal feature set of the time series signal to be detected based on the multiple wavelet coefficients of the time series signal to be detected includes: using a preset time-frequency feature model to perform frequency analysis on the wavelet coefficients to obtain the signal time-frequency features; using a preset energy feature model to perform power spectral density analysis on the frequency information and the amplitude information in each of the wavelet coefficients to obtain the signal energy features; determining the signal feature set based on the signal time-frequency features and the signal energy features respectively corresponding to the multiple wavelet coefficients.
[0014] Optionally, before using the signal detection model to detect the signal feature set to obtain the signal detection result, the method also includes: obtaining multiple sample timing signals and the alarm type label of each sample timing signal; identifying the sample frequency distribution of each sample timing signal, wherein the sample frequency distribution is used to represent the distribution of the signal frequency of each sample moment in the sample timing signal within a sample time period, and the sample time period is the time period covered by the sample timing signal, and there are multiple sample moments with the same time interval in the sample time period; determining the sample signal pattern corresponding to each sample frequency distribution in the multiple preset signal patterns recorded in the preset signal pattern set, wherein the preset signal pattern set is used to record the preset signal patterns corresponding to multiple sample frequency distributions respectively; using the multiple sample timing signals with the same sample signal pattern and the alarm type label corresponding to each sample timing signal to train the signal detection model.
[0015] Optionally, using multiple sample timing signals with the same sample signal pattern and the alarm type label corresponding to each sample timing signal, training the signal detection model includes: determining a target hyperparameter combination corresponding to a target signal pattern among multiple preset hyperparameter combinations in a preset hyperparameter set, wherein the preset hyperparameter set is used to record the preset hyperparameter combinations corresponding to multiple sample signal patterns, and the preset hyperparameter combination includes: multiple preset parameters for controlling the training process of the signal detection model, the target signal pattern is the sample signal pattern to which the multiple sample timing signals used to train the signal detection model belong; inputting the target hyperparameter combination corresponding to the target signal pattern into a preset detection model to obtain a target detection model, wherein the preset detection model is an initial detection model of the signal detection model set in advance; training the target detection model using multiple sample timing signals of the target signal pattern and the alarm type label corresponding to each sample timing signal to obtain the signal detection model.
[0016] According to another aspect of an embodiment of the present invention, a detection device for a time series signal is also provided, comprising: an acquisition module, used to acquire a time series signal to be detected of a device to be detected; a first determination module, used to determine the wavelet coefficients corresponding to the time series signal to be detected in multiple sub-bands using a target wavelet basis function model, wherein the target wavelet basis function model is used to decompose the time series signal to be detected into sub-bands of different frequencies, and use the wavelet coefficients to represent the signal characteristics in each of the sub-bands; a second determination module, used to determine the time series signal to be detected based on the multiple wavelet coefficients of the time series signal to be detected A signal feature set of a signal to be detected, wherein the signal feature set at least includes: signal time-frequency features and signal energy features corresponding to each of the wavelet coefficients; a detection module, used to use a signal detection model to detect the signal feature set to obtain a signal detection result, wherein the signal detection result is used to indicate the alarm type of the time series signal to be detected, and the signal detection model is trained by machine learning using multiple groups of data, and each group of the multiple groups of data includes: a signal feature set of a sample time series signal and a pre-calibrated alarm type label, and the alarm type label is used to indicate the alarm type of the sample time series signal.
[0017] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-mentioned timing signal detection method through the computer program.
[0018] According to another aspect of an embodiment of the present invention, a computer program product is provided, including computer instructions, which implement the steps of the above-mentioned timing signal detection method when executed by a processor.
[0019] In an embodiment of the present invention, by performing wavelet basis decomposition on the time series signal to be detected, wavelet coefficients of multiple sub-bands, as well as the signal time-frequency characteristics and signal energy characteristics of each wavelet coefficient can be obtained, so that the internal complex dynamics of the time series signal to be detected can be accurately captured, and then detection can be performed based on the signal time-frequency characteristics and signal energy characteristics of the time series signal to be detected, which can make the detection result more accurate, achieve the technical effect of improving the accuracy of detecting the time series signal, and thus solve the technical problem of inaccurate detection of the time series signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0021] Figure 1 is a flow chart of a method for detecting a timing signal according to an embodiment of the present invention;
[0022] Figure 2 is a schematic diagram of a method for a security device intelligent detection model based on adaptive wavelet transform according to an embodiment of the present invention;
[0023] Figure 3 is a schematic diagram of a wavelet multi-level decomposition according to an embodiment of the present invention;
[0024] Figure 4 is a schematic diagram of a detection device for a timing signal according to an embodiment of the present invention;
[0025] Figure 5 It is a structural block diagram of a computer terminal according to an embodiment of the present invention. DETAILED DESCRIPTION
[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following explanations:
[0029] Wavelet transform technology: "Wavelet" is a small waveform. "Small" means it has attenuation; "wave" means it has volatility, and its amplitude has a positive and negative oscillation form. Compared with Fourier transform, wavelet transform is a localized analysis of time and frequency. It gradually refines the signal at multiple scales through scaling and translation operations, and finally achieves time subdivision at high frequencies and frequency subdivision at low frequencies, so as to focus on any details of the signal, solving the difficult problem of Fourier transform.
[0030] DWT (Discrete Wavelet Transform): Discrete wavelet transform is a type of wavelet transform technology that uses discrete values for scaling and translation operations, which helps reduce computer resource consumption and computational complexity.
[0031] SVM (Support Vector Machine): Map feature vectors to sample points in space, find a plane that can classify samples, and maximize the distance between the two sample points closest to the plane in the two categories of samples, so as to maximize the classification performance and improve the generalization of the model. In practical applications, sample points may not be perfectly classified using a straight line, that is, linearly inseparable, and SVM can use corresponding technical processing to enable samples to be classified using a straight line.
[0032] Kernel PCA (Kernel Principal Component Analysis): For the matrix in the input space, first use a nonlinear mapping to map all samples in X to a high-dimensional or even infinite-dimensional space (called feature space) to make it linearly separable, and then perform PCA dimensionality reduction in this high-dimensional space.
[0033] According to an embodiment of the present invention, an embodiment of a method for detecting a timing signal is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] Figure 1 is a flow chart of a method for detecting a timing signal according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0035] Step S102, obtaining a timing signal to be detected of the device to be detected;
[0036] Step S104, using the target wavelet basis function model, determining the wavelet coefficients corresponding to the time series signal to be detected in multiple sub-bands, wherein the target wavelet basis function model is used to decompose the time series signal to be detected into sub-bands of different frequencies, and use the wavelet coefficients to represent the signal characteristics in each sub-band;
[0037] Step S106, determining a signal feature set of the time series signal to be detected according to a plurality of wavelet coefficients of the time series signal to be detected, wherein the signal feature set at least includes: a signal time-frequency feature and a signal energy feature corresponding to each wavelet coefficient;
[0038] Step S108: Use the signal detection model to detect the signal feature set to obtain a signal detection result, wherein the signal detection result is used to indicate the alarm type of the timing signal to be detected. The signal detection model is trained through machine learning using multiple sets of data, and each set of data in the multiple sets of data includes: a signal feature set of a sample timing signal and a pre-calibrated alarm type label, and the alarm type label is used to indicate the alarm type of the sample timing signal.
[0039] In an embodiment of the present invention, by performing wavelet basis decomposition on the time series signal to be detected, wavelet coefficients of multiple sub-bands, as well as the signal time-frequency characteristics and signal energy characteristics of each wavelet coefficient can be obtained, so that the internal complex dynamics of the time series signal to be detected can be accurately captured, and then detection can be performed based on the signal time-frequency characteristics and signal energy characteristics of the time series signal to be detected, which can make the detection result more accurate, achieve the technical effect of improving the accuracy of detecting the time series signal, and thus solve the technical problem of inaccurate detection of the time series signal.
[0040] In the above step S102, the device to be detected may be a safety device, such as a smoke sensor, an infrared device, and a gas device.
[0041] In the above step S102, the timing signal to be detected can be field data collected at the same time interval, and the field data includes: multiple signal data collected at preset time intervals, the moment of collecting each signal data is the moment to be detected, the coverage period of the timing signal to be detected is the period to be detected, and the moments to be detected corresponding to the multiple signal data are equally spaced within the period to be detected.
[0042] In the above step S102, when the device to be detected is a smoke sensing device, the timing signal to be detected may represent the temperature, humidity, concentration or remaining power of the smoke sensing device.
[0043] In the above step S102, when the device to be detected is an infrared device, the timing signal to be detected may indicate the triggering times, the armed state or the remaining power of the infrared device.
[0044] In the above step S102, when the device to be detected is a gas device, the timing signal to be detected may represent the gas concentration, humidity, temperature or remaining power of the gas device.
[0045] In the above step S104, the target wavelet basis function model can use the wavelet basis function model to perform signal processing on the time series signal to be detected.
[0046] It should be noted that the wavelet basis function model is a mathematical function used for wavelet transform; wavelet transform is a signal processing technology that can decompose the signal into components of different frequencies. The wavelet basis function model is a set of selected functions that can be used to analyze the characteristics of the signal in different frequencies and times. Common wavelet basis function models include Haar wavelet, Daubechies wavelet, Morlet wavelet, etc. These wavelet basis function models have different advantages in different applications and can be used to process different types of signals and data.
[0047] In the above step S104, when the target wavelet basis function model is used to perform wavelet transform on the time series signal to be detected, the time series signal to be detected can be decomposed into multiple sub-bands corresponding to different frequencies, and the wavelet coefficients are used to represent the signal characteristics of the time series signal to be detected in the corresponding sub-bands.
[0048] In the above step S106, a wavelet transform is performed on the time series signal to be detected to obtain multiple wavelet coefficients. Each wavelet coefficient is analyzed to obtain multiple signal time-frequency features and signal energy features of each wavelet coefficient. Then, based on the multiple wavelet coefficients corresponding to the time series signal to be detected and the multiple signal time-frequency features and signal energy features corresponding to each wavelet coefficient, a signal feature set of the time series signal to be detected can be obtained.
[0049] In the above step S106, the signal feature set includes at least one of the following: energy distribution characteristics, time stability, frequency domain response characteristics, instantaneous dynamics, harmonic characteristics, nonlinearity, time-frequency locality, periodicity, randomness, sparsity, phase consistency, signal complexity and propagation characteristics.
[0050] As an optional embodiment, after determining the signal time-frequency features and signal energy features corresponding to each wavelet coefficient in the time series signal to be detected, the Sklearn.KernelPCA function in the kernel principal component analysis (kernel PCA) can be used to convert a large number of signal time-frequency features and signal energy features in the time series signal to be detected into a limited number of comprehensive indicators using the radial basis kernel function (RBF). The comprehensive indicators can respectively describe the intrinsic characteristics and external manifestations of the time series signal to be detected. These comprehensive indicators not only retain the key information in the original features, but also simplify the data structure and reduce the complexity of model construction, providing a more efficient and information-rich data representation method for subsequent signal analysis and pattern recognition.
[0051] It should be noted that kernel principal component analysis (Kernel PCA) is a nonlinear dimensionality reduction technique that uses kernel functions to map data into a high-dimensional space and then performs principal component analysis in the high-dimensional space. Unlike traditional linear PCA, Kernel PCA can process data sets with nonlinear relationships and extract nonlinear structures from the data. Common kernel functions used by Kernel PCA include Gaussian kernel functions and polynomial kernel functions. By using kernel functions, Kernel PCA can better capture the intrinsic structure of the data, thereby better achieving data dimensionality reduction and feature extraction.
[0052] It should be noted that the radial basis kernel function (RBF) is a commonly used kernel function used in support vector machines (SVM) and other machine learning algorithms.
[0053] In the above step S108, by detecting the timing signal to be detected of the device to be detected, it can be determined whether an alarm is needed and the type of alarm to be given according to the signal detection result.
[0054] For example, the same device to be detected may have multiple working modes. Different working modes indicate different types or levels of alarms, and generate corresponding timing signals to be detected for each working mode. Then, by detecting the timing signals to be detected of the device to be detected, the working mode of the device to be detected can be reversely determined, as well as whether an alarm is required in this working mode. If an alarm is required, the type of alarm can be further determined.
[0055] As an optional embodiment, using the target wavelet basis function model, determining the wavelet coefficients corresponding to the time series signal to be detected in multiple sub-bands includes: identifying the distribution of the frequency to be detected of the time series signal to be detected, wherein the distribution of the frequency to be detected is used to represent the distribution of the signal frequency of each time moment to be detected in the time series signal to be detected within the time period to be detected, the time period to be detected is the time period covered by the time series signal to be detected, and there are multiple time moments to be detected with the same time interval in the time period to be detected; determining the target signal pattern corresponding to the frequency distribution of the frequency to be detected in multiple preset signal patterns recorded in the preset signal pattern set, wherein the preset signal pattern set is used to record the distribution of the signal frequency of each preset detection frequency at each time moment to be detected in the time series signal to be detected. a preset signal mode corresponding to the target signal mode; among the multiple preset signal decomposition combinations recorded by the preset wavelet basis function model set, determining the target signal decomposition combination corresponding to the target signal mode, wherein the preset wavelet basis function model set is used to record the preset signal decomposition combinations corresponding to the multiple preset signal modes, each preset signal decomposition combination includes: a preset wavelet basis function model and a preset decomposition level corresponding to the preset wavelet basis function model, and the target signal decomposition combination includes: a target wavelet basis function model and a target decomposition level corresponding to the target wavelet basis function model; using the target wavelet basis function model to perform multi-level decomposition on the time series signal to be detected according to the target decomposition level, to obtain wavelet coefficients corresponding to the multiple sub-frequency bands.
[0056] In the above-mentioned embodiments of the present invention, there are multiple wavelet basis function models, and each wavelet basis function model has different advantages in different applications. In order to make the wavelet transform result more accurately reflect the signal characteristics of the time series signal to be detected, the target signal pattern corresponding to the time series signal to be detected can be determined according to the distribution of the signal frequency in the time series signal to be detected, and the most suitable target wavelet basis function model is selected according to the target signal pattern to perform wavelet transform on the time series signal to be detected, so that the wavelet coefficients obtained after the wavelet transform can more accurately reflect the signal characteristics of the time series signal to be detected, and then the detection based on the signal characteristics can make the detection result more accurate.
[0057] Optionally, different preset wavelet basis function models have respective corresponding preset decomposition levels, and each preset wavelet basis function model is decomposed according to the corresponding preset decomposition level to obtain an optimal decomposition result.
[0058] It should be noted that performing wavelet transform on a signal using a preset wavelet basis function model is equivalent to decomposing the signal into multiple sub-bands, and the signal in each sub-band can be represented by a wavelet coefficient.
[0059] For example, when the time series signal to be detected shows high-frequency fluctuations, that is, the frequency components of the time series signal to be detected are mainly concentrated above 500 Hz, then due to the fourth-order vanishing moment of "db4", it is particularly suitable for capturing details and mutations in the signal and effectively separating high-frequency fluctuations and noise. Therefore, the target wavelet function model can select "db4" of the Daubechies family of wavelet basis functions that is more suitable for capturing high-frequency details and a higher target decomposition level (such as 5 layers).
[0060] For example, when the frequency components of the time series signal to be detected are mainly concentrated in the low frequency or smooth signal of 50-100Hz, the target wavelet function model can select "coif3" in the wavelet basis function Coiflets family and fewer target decomposition levels (such as 3 layers). The symmetrical structure of the wavelet basis function is helpful for the symmetry analysis of the signal, and the long support improves the signal smoothing processing capability, optimizes the noise suppression effect, and is suitable for baseline trend analysis.
[0061] As an optional embodiment, the target wavelet basis function model is used to perform multi-level decomposition of the time series signal to be detected according to the target decomposition level to obtain wavelet coefficients corresponding to multiple sub-bands, including: using the target wavelet basis function model to perform a step-by-step tower decomposition of the time series signal to be detected to obtain sub-band information of each sub-band, wherein the total decomposition level of the tower decomposition is the target decomposition level, each decomposition level corresponds to a sub-band, and each sub-band information includes: a high-pass filter signal and a low-pass filter signal, the low-pass filter signal is used for decomposition at the next decomposition level; determining the wavelet coefficients corresponding to the low-pass filter signal obtained at each decomposition level and the high-pass filter signal obtained at the first decomposition level.
[0062] In the above-mentioned embodiment of the present invention, the target wavelet basis function model can perform a step-by-step tower decomposition of the time series signal to be detected, and each decomposition is used as a decomposition level. Each decomposition level can obtain sub-band information corresponding to a sub-band, and the sub-band information represents the high-frequency details of the time series signal to be detected in the sub-band through a high-pass filter signal, and represents the low-frequency details of the time series signal to be detected in the sub-band through a low-pass filter signal. Then, the low-pass filter signal obtained at each decomposition level is decomposed until the target decomposition level is reached, and high-pass filter signals and low-pass filter signals of multiple decomposition levels can be obtained. Then, the high-pass filter signal of the first decomposition level and the low-pass filter signal of each decomposition level are represented by wavelet coefficients, and multiple wavelet coefficients of the time series signal to be detected can be obtained, thereby realizing the wavelet transform of the time series signal to be detected.
[0063] As an optional embodiment, the target decomposition level includes at least: a first decomposition level, a second decomposition level and a third decomposition level, and the target wavelet basis function model is used to perform a tower-like decomposition of the time series signal to be detected step by step to obtain the sub-band information of each sub-band, including: using the target wavelet basis function model to decompose the time series signal to be detected to obtain the first frequency band information corresponding to the first decomposition level, wherein the first frequency band information includes: a first high-pass filter signal and a first low-pass filter signal; using the target wavelet basis function model to decompose the first low-pass filter signal to obtain the second frequency band information corresponding to the second decomposition level, wherein the second frequency band information includes: a second high-pass filter signal and a second low-pass filter signal; using the target wavelet basis function model to decompose the second low-pass filter signal to obtain the third frequency band information corresponding to the third decomposition level, wherein the third frequency band information includes: a third high-pass filter signal and a third low-pass filter signal.
[0064] In the above-mentioned embodiment of the present invention, the timing signal to be detected is decomposed to obtain the first high-pass filter signal and the first low-pass filter signal of the first decomposition level, and then the low-pass filter signal of each decomposition level is decomposed to obtain the high-pass filter signal and the low-pass filter signal of each decomposition level step by step, thereby realizing the tower decomposition of the timing signal to be detected.
[0065] Optionally, when the target decomposition level includes at least: a first decomposition level, a second hierarchical level and a third decomposition level, the multiple wavelet coefficients of the time series signal to be detected include: wavelet coefficients corresponding to the high-pass filter signal of the first decomposition level, wavelet coefficients corresponding to the low-pass filter signal of the first decomposition level, wavelet coefficients corresponding to the low-pass filter signal of the second decomposition level, and wavelet coefficients corresponding to the low-pass filter signal of the third decomposition level.
[0066] As an optional embodiment, determining the signal feature set of the time series signal to be detected based on multiple wavelet coefficients of the time series signal to be detected includes: using a preset time-frequency feature model to perform frequency analysis on the wavelet coefficients to obtain signal time-frequency features; using a preset energy feature model to perform power spectral density analysis on the frequency information and amplitude information in each wavelet coefficient to obtain signal energy features; and determining the signal feature set based on the signal time-frequency features and signal energy features corresponding to the multiple wavelet coefficients.
[0067] It should be noted that wavelet coefficients are a set of numbers obtained through wavelet transform, which are used to represent the characteristics of the original signal at different frequencies and time scales.
[0068] Optionally, the wavelet coefficients include at least: frequency information and amplitude information of the time series signal to be detected in a corresponding sub-frequency band.
[0069] The above-mentioned embodiment of the present invention can obtain the signal time-frequency characteristics and signal energy characteristics of each wavelet coefficient by analyzing the frequency information in the wavelet coefficients, and then according to the signal time-frequency characteristics and signal energy characteristics of each wavelet coefficient in the time series signal to be detected, it is possible to obtain multiple signal characteristics that can more accurately represent the time series signal to be detected, generate a signal feature set, and then more accurately detect the time series signal to be detected according to the signal characteristics in the signal feature set.
[0070] Optionally, the signal time-frequency characteristics include at least: autoregressive coefficient, average derivative value, Shannon entropy value, root mean square value and zero-crossing rate. There can be multiple preset time-frequency feature models, and each preset time-frequency feature model can determine the corresponding signal time-frequency characteristics.
[0071] It should be noted that the wavelet coefficients have corresponding sub-bands. The wavelet coefficients can use frequency values and amplitude values to represent the frequency and amplitude of the signal at each moment in the sub-band. The signal can use time series data to represent the frequency and amplitude values at each moment in the sub-band.
[0072] Optionally, the preset time-frequency feature model may be an autoregressive model, and the autoregressive model may be a p-order autoregressive model: (AR(p))× t =Φ1X t-1 +Φ2X t-2 +....+Φ p X t-p +∈ t , where X t is the frequency value of the signal at time t in the wavelet coefficient, Φ1Φ2Φ p are the model coefficients, ∈ t is a random error term. The autoregressive model can be used to calculate the autoregressive coefficient (AR coefficient) corresponding to the wavelet coefficient. The autoregressive coefficient (AR coefficient) is used to indicate the influence of the frequency value of the previous adjacent time in the sub-band corresponding to the wavelet coefficient on the frequency value of the current time. The autoregressive coefficient (AR coefficient) is estimated by the least squares method (OLS), so that minimize.
[0073] Optionally, the preset time-frequency feature model may be an average derivative model: Among them, N is the total number of signals corresponding to the wavelet coefficients, x i is the frequency value representing the i-th signal in the wavelet coefficient. The average derivative model obtains the average derivative value corresponding to the wavelet coefficient by taking the first-order derivative of the signal difference and averaging it. The average derivative value is used to represent the smoothness of the signal.
[0074] Optionally, the preset time-frequency feature model may be a Shannon entropy calculation model: Among them, p(x i ) is the probability of occurrence of the frequency value representing the i-th signal in the wavelet coefficient, and n is the total number of different signals corresponding to the wavelet coefficient. The Shannon entropy value corresponding to the wavelet coefficient can be obtained by using the Shannon entropy calculation model, which represents the complexity and diversity of the signal.
[0075] Optionally, the preset time-frequency feature model may be a root mean square model: Among them, N is the total number of signals corresponding to the wavelet coefficients, x i is the amplitude value of the i-th signal in the wavelet coefficient. The RMS model calculates the square of the average value of the square amplitude of the signal to obtain the RMS value corresponding to the wavelet coefficient, which represents the average power of the signal.
[0076] Optionally, the preset time-frequency feature model may be a zero-crossing rate model: Among them, T is the total number of signals corresponding to the wavelet coefficients, x i is the frequency value representing the i-th signal in the wavelet coefficient, and Ι is the indicator function. The zero-crossing rate model can be used to calculate the zero-crossing rate corresponding to the wavelet coefficient. The zero-crossing rate is the number of times the signal crosses y=0, indicating the positive and negative change rate of the signal.
[0077] Optionally, the preset time-frequency feature model may be an average zero-crossing rate model: Among them, T is the total number of signals corresponding to the wavelet coefficients, x i is the frequency value representing the i-th signal in the wavelet coefficient, is the average frequency value of the signal, and Ι is the indicator function. The average zero-crossing rate model can be used to calculate the average zero-crossing rate corresponding to the wavelet coefficient. The average zero-crossing rate is the number of times the signal passes through y=mean(y), which represents the rate of change of the signal.
[0078] Optionally, the signal energy characteristics include at least: peak power frequency, power bandwidth, spectral entropy, spectral flux, spectral flatness and spectral centroid. The preset energy characteristic model is used to evaluate the power spectral density (PSD) of the time series signal to be detected in each sub-band. There can be multiple preset energy characteristic models, and each preset energy characteristic model can determine the corresponding signal energy characteristic.
[0079] In the above-mentioned embodiments of the present invention, by analyzing the signal energy distribution, the power spectral density (PSD) can be used to evaluate the energy contribution of each sub-band, thereby effectively identifying the abnormal energy pattern of the safety device failure.
[0080] Optionally, the preset energy characteristic model may be a peak power frequency model: f peak = argmax(P(f)), where P(f) = |X(f)| 2, f is the frequency value, and the argmax operation is used to find the value of frequency f that maximizes P(f). The peak power frequency model can be used to calculate the peak power frequency corresponding to the wavelet coefficient. The peak power frequency is the frequency of the highest point in the PSD curve, representing the frequency with the strongest signal energy.
[0081] Optionally, the preset energy characteristic model may be a power bandwidth model: f band =max(f)-min(f), where max(f) and min(f) are the lowest and highest frequencies that satisfy the threshold value of cumulative power to a certain percentage of total power. The power bandwidth model determines the power bandwidth corresponding to the wavelet coefficient by calculating the frequency interval exceeding a certain power threshold. The power bandwidth is used to represent the frequency range where the signal power is concentrated.
[0082] Optionally, the preset energy characteristic model may be a spectrum calculation model: Among them, P'(f) is the normalized PSD value. The spectrum calculation model can be used to calculate the spectral entropy corresponding to the wavelet coefficient. The spectral entropy is used to measure the average information content of the PSD distribution and the randomness of the signal energy distribution in the frequency domain.
[0083] Optionally, the preset energy characteristic model may be a spectral flux model: Spectral_Flux=∑ f (|X2(f)|-|X1(f)|) 2 ·Ι(|X2(f)|>|X1(f)|). The spectral flux model can be used to calculate the spectral flux corresponding to the wavelet coefficients. The spectral flux is based on the power spectral density (PSD) difference between adjacent frames and is mainly used to measure the rate of change of the signal's spectrum over time. After extending it to the time-frequency domain, the rate of change of the signal's time-frequency spectrum over time and frequency can be measured simultaneously.
[0084] Optionally, the preset energy characteristic model may be a spectrum flatness model: Where N is the total number of frequency points. The closer the value of spectral flatness is to 1, the flatter the PSD distribution is. The spectrum calculation model can be used to calculate the spectral flatness corresponding to the wavelet coefficients. The spectral flatness is used to measure the flatness of the PSD distribution and the uniformity of the energy distribution of the signal in the frequency domain.
[0085] Optionally, the preset energy feature model may be a spectral centroid model: The spectrum calculation model can be used to calculate the spectral centroid corresponding to the wavelet coefficients. The spectral centroid represents the "center of gravity" of the PSD distribution and gives the average frequency of the power distribution.
[0086] As an optional embodiment, before using the signal detection model to detect the signal feature set and obtain the signal detection result, the method also includes: obtaining multiple sample timing signals and an alarm type label for each sample timing signal; identifying the sample frequency distribution of each sample timing signal, wherein the sample frequency distribution is used to represent the distribution of the signal frequency of each sample moment in the sample timing signal within the sample time period, and the sample time period is the time period covered by the sample timing signal, and there are multiple sample moments with the same time interval in the sample time period; determining the sample signal pattern corresponding to each sample frequency distribution in the multiple preset signal patterns recorded in the preset signal pattern set, wherein the preset signal pattern set is used to record the preset signal patterns corresponding to the multiple sample frequency distributions respectively; using multiple sample timing signals with the same sample signal pattern and the alarm type label corresponding to each sample timing signal to train the signal detection model.
[0087] In the above-mentioned embodiment of the present invention, the signal detection model is trained using multiple groups of training data, and each group of training data includes: a sample timing signal and an alarm type label corresponding to the sample timing signal. In order to improve the training efficiency of the signal detection model, before training the signal detection model, multiple sample timing signals can be classified according to the sample frequency distribution of each sample timing signal to obtain multiple different sample signal patterns and multiple sample timing signals corresponding to each sample signal pattern. Then, the signal detection model is trained using sample timing signals of the same sample signal pattern and the alarm type labels corresponding to each sample timing signal, which can improve the training efficiency.
[0088] As an optional embodiment, using multiple sample timing signals with the same sample signal pattern and an alarm type label corresponding to each sample timing signal, the training signal detection model includes: determining a target hyperparameter combination corresponding to a target signal pattern among multiple preset hyperparameter combinations in a preset hyperparameter set, wherein the preset hyperparameter set is used to record preset hyperparameter combinations corresponding to multiple sample signal patterns, respectively, and the preset hyperparameter combination includes: multiple preset parameters for controlling the training process of the signal detection model, the target signal pattern is a sample signal pattern to which multiple sample timing signals used to train the signal detection model belong; inputting the target hyperparameter combination corresponding to the target signal pattern into the preset detection model to obtain a target detection model, wherein the preset detection model is an initial detection model of a preset signal detection model; training the target detection model using multiple sample timing signals of the target signal pattern and an alarm type label corresponding to each sample timing signal to obtain a signal detection model.
[0089] In the above-mentioned embodiment of the present invention, the preset hyperparameter combination is a plurality of preset parameters for controlling the training process of the signal detection model. In the process of training the signal detection model, each sample signal pattern has an optimal preset parameter combination. Therefore, before training the signal detection model, the target signal pattern to which the sample timing signal used in the training belongs can be determined first, and then the optimal target parameter combination for the target signal pattern can be determined. Then, the target parameter combination can be input into the preset detection model to control the model training process, so that a signal detection model capable of accurately performing signal detection can be trained.
[0090] The present invention also provides an optional embodiment, which provides a method for a security device intelligent detection model based on adaptive wavelet transform. In order to transform the original signal from the time domain space to the time-frequency space, the wavelet transform technology realizes the conversion of the signal space by performing an inner product operation between the original signal and the wavelet basis function model. This process not only changes the representation form of the signal, but also effectively provides the local characteristics of the signal at different times and frequencies, so it is particularly suitable for capturing mutations and transient characteristics in the signal.
[0091] The technical solution provided in this application pre-processes the original data (such as time series signals) through the adaptive wavelet discrete transform technology framework, enhances the extraction through feature engineering, then uses kernel principal component analysis to reduce the dimension, and dual-drives the hyperparameter set for tuning, and finally uses a support vector machine classifier for decision-making; to a certain extent, it solves the problem of security equipment detection accuracy, and by optimizing, correcting, and testing the security equipment detection model, it is possible to determine the authenticity of business alarms, reduce the probability of missed alarms and false alarms, and improve the ability to resist interference from the external environment, making the alarm types identified by the security equipment detection model more accurate.
[0092] Existing security equipment detection technologies use time regression series or neural network algorithms, use time series statistical features or manually design data features based on experience, which cannot effectively solve the problem of NB-Iot device data transmission lag, and artificial feature engineering is highly subjective and uncontrollable.
[0093] This application provides a method for a security device intelligent detection model based on adaptive wavelet transform, which transforms the time series classification problem of security device detection into a signal domain processing problem, adopts an adaptive wavelet discrete transform dynamic selection framework, and dynamically adjusts the wavelet parameters based on the energy distribution and entropy characteristics of the signal based on the Bayesian optimization algorithm. In this way, the optimal wavelet decomposition layer number and wavelet basis function can be selected according to the characteristics of the security device operation signal.
[0094] Optionally, in order to capture the complex dynamics within the signal, after the security device signal is decomposed at multiple scales, power spectral density analysis is introduced to obtain the precise characteristics of the signal in the frequency domain. This not only provides the frequency domain characteristics of each wavelet subband, but also reveals the energy distribution of the signal. The kernel principal component analysis further captures the nonlinear structure of the signal in the high-dimensional space. Combined with the support vector machine classifier (SVM) to train the target label, it can solve the time lag problem of sensor transmission data, reduce manual subjective judgment, distinguish the authenticity of business alarms, enhance the anti-interference ability of the external environment, reduce the probability of false alarms and missed alarms of business alarms, and improve the accuracy and reliability of security equipment alarms.
[0095] Figure 2 is a schematic diagram of a method for a security device intelligent detection model based on adaptive wavelet transform according to an embodiment of the present invention, such as Figure 2 As shown, including:
[0096] Step S201, preprocess the time series data of the security device (such as the time series signal to be detected). In addition to removing outliers and normalizing, the data needs to be filled by seconds. For example, if there is a data interruption in the data reporting process of the security device on the aggregation platform, it can be filled by seconds, and the filling method can adopt the forward filling mode. Since the time series granularity of each field may be different, the time series data of different lengths are filled by the df.fillna filling function, and finally unified into a fixed-length sequence wide table, thereby forming a complete data sequence for model input, which takes into account the continuity of the data sequence and comprehensively considers the characteristics of time series changes.
[0097] Step S202, initialize the decomposition layer number and wavelet basis function parameter combination, use the Bayesian optimization (BO) algorithm to guide the parameter combination search process, and establish a Gaussian probability model between classifier performance evaluation and parameter combination. Specifically, the wavelet dynamic selection framework selects a Gaussian model at the initial point to model the hyperparameter space, that is, initializes the Gaussian model.
[0098] Step S203, selecting an expected improvement (EI) acquisition function, and determining the exploration position in the parameter space through the EI acquisition function.
[0099] Step S204 , after initializing the wavelet level and wavelet basis function, the discrete wavelet transform (DWT) technology is used to decompose the signal of the security device into different sub-band information, each sub-band represents the characteristics of the original signal in different frequency ranges.
[0100] Step S205, through the Sklearn.KernelPCA function in kernel PCA, the radial basis kernel function (RBF) is used to convert the multiple indicators into a signal feature set of about 15 comprehensive indicators, which respectively describe the intrinsic characteristics and external performance of the signal, including energy distribution characteristics, time stability, frequency domain response characteristics, instantaneous dynamics, harmonic characteristics, nonlinearity, time-frequency locality, periodicity, randomness, sparsity, phase consistency, signal complexity, propagation characteristics, etc. These comprehensive indicators not only retain the key information in the original features, but also simplify the data structure, reduce the complexity of model construction, and provide a more efficient and information-rich data representation method for subsequent signal analysis and pattern recognition.
[0101] Step 206, the signal feature set is combined with the alarm type label preset by the manufacturer (gas leak alarm, infrared alarm and smoke alarm), and is split into training set, validation set and test set in a 6:2:2 ratio through the sample segmentation function Sklearn.train_test_split in data processing, and is input into the Sklean.SVM function in the support vector machine classifier (SVM) to train the safety device sensor data.
[0102] Step 207, optimize the support vector machine hyperparameters through grid search, initialize a set of hyperparameter sets {penalty coefficient C, kernel function type, kernel function parameters, slack variable, C, degree of polynomial kernel, γ of RBF, coef0, etc.}, use the selected hyperparameter combination to train the SVM (support vector machine) model, and evaluate the model performance through cross-validation.
[0103] Step 208, each time the model performance cross-validation accuracy of the selected hyperparameter combination training SVM is returned, and the newly obtained performance data is updated to the Gaussian model until a preset number of iterations is met.
[0104] Step 209: If the difference in classifier accuracy before and after adjustment is greater than 1%, the new parameters are accepted. This cycle repeats, and after the Bayesian optimization process is completed, a set of parameters that performs best on the validation set is selected as the optimal hyperparameters, that is, the optimal hyperparameter combination suitable for different high-pass and low-pass fluctuation signal modes is obtained.
[0105] Step 210, in actual application, according to different signal modes of safety equipment, self-select appropriate hyperparameter combination, and use safety equipment detection model to perform type alarm on sensor signal test data, such as whether it is a gas leak alarm, infrared alarm or smoke alarm.
[0106] Step 211, restart the model training and validation mode every 30 days, collect new signal data and labels, and gradually tune the dynamic selection framework of wavelet discrete transform to maintain the accuracy of the model, ensuring that the model can adapt to changes in the environment and signals and maintain long-term high performance.
[0107] As an optional example, discrete wavelet transform (DWT) technology is used to decompose the signal of the security device into different sub-band information, each sub-band represents the characteristics of the original signal in a different frequency range, mainly including the following processes:
[0108] Step S2041, after using Pywt.wavedec to define the initialization parameters, the wavelet basis function and the decomposition level, the safety device time series data is subjected to wavelet multi-level decomposition (ie, wavelet transform).
[0109] Figure 3 is a schematic diagram of a wavelet multi-level decomposition according to an embodiment of the present invention, such as Figure 3 As shown, the original signal data starts from the high-pass and low-pass filter signal HP1 and the low-pass filter signal LP1 generated by the first-level decomposition, and the low-pass filter signal of the previous level is further decomposed in a tower-like manner to generate different sub-band information LP1, LP2, LP3, LP4, ..., LPN, HP1, and is represented by the corresponding wavelet coefficients f1,1, f1,2,....f(...).
[0110] Step S2042, different states of the same device are reflected in different modes in the signal field. When the signal shows high-frequency fluctuations, the frequency components are mainly concentrated above 500Hz. The system selects "db4" of the Daubechies family of wavelet basis functions that are more suitable for capturing high-frequency details and a higher decomposition level (5 layers). Due to its fourth-order vanishing moment, db4 is particularly suitable for capturing details and mutations in the signal and effectively separating high-frequency fluctuations and noise. When the frequency components of the signal are mainly concentrated in the low frequency of 50-100Hz or smooth signals, the system selects "coif3" of the Coiflets family of wavelet basis functions and fewer decomposition levels (3 layers). The symmetrical structure of this wavelet basis function helps the symmetry analysis of the signal, and the long support improves the signal smoothing processing capability, optimizes the noise suppression effect, and is suitable for baseline trend analysis.
[0111] Step S2043, based on the N-level wavelet coefficient list returned by each signal, further analyze the time-frequency characteristics and energy distribution of the signal for each wavelet coefficient, that is, each sub-band information, and provide a comprehensive feature enhancement extraction strategy, which can not only obtain the dynamic changes and periodic behaviors of the signal in time and frequency, but also describe in detail the energy size of the signal in each frequency band. The two complement each other's information to make the signal analysis more comprehensive and to understand the nature of the signal from different angles.
[0112] Step S2044: Calculate the signal time-frequency characteristics of each sub-band.
[0113] Optionally, the signal time-frequency feature includes an autoregressive model coefficient, which indicates the influence of the value of a previous time point in the time series on the current value. The calculation formula is: for a p-order autoregressive model (AR(p))X t =Φ1X t-1 +Φ2X t-2 +....+Φ p X t-p +∈ t , where X t is the wavelet coefficient value, Φ1Φ2Φ p are the model coefficients, ∈ t is a random error term. The AR coefficient is estimated by the least squares method (OLS), so that minimize.
[0114] Optionally, the signal time-frequency feature includes an average derivative value, that is, the average of the first-order derivative of the signal difference, which represents the smoothness of the signal. The calculation formula is: Where N is the total number of samples of the signal, x i is the value of the i-th wavelet coefficient.
[0115] Optionally, the signal time-frequency feature includes a Shannon entropy value, which indicates the complexity and diversity of the signal. The calculation formula is: Among them, p(x i ) is the probability of the ith value of the signal occurring, and n is the total number of distinct values in the signal.
[0116] Optionally, the signal time-frequency feature includes a root mean square value, that is, the square of the average value of the square amplitude value, which represents the average power of the signal; the calculation formula is: Where N is the total number of samples of the signal, x i is the value of the i-th wavelet coefficient.
[0117] Optionally, the signal time-frequency characteristics include a zero-crossing rate, that is, the number of times the signal crosses y=0, indicating the positive and negative change rate of the signal; the calculation formula is: Where T is the total number of samples of the signal, x i is the i-th wavelet coefficient value, and Ι is the indicator function.
[0118] Optionally, the signal time-frequency characteristics include an average zero-crossing rate, that is, the number of times the signal crosses y=mean(y), indicating the rate of change of the signal, etc. The calculation formula is: Where T is the total number of samples of the signal, x i is the value of the ith wavelet coefficient, is the average value of the signal and Ι is the indicator function.
[0119] Step S2044, introducing signal energy distribution analysis, the power spectrum density allows the energy contribution of each frequency band to be evaluated so as to effectively identify the abnormal energy mode of the safety device failure, calculate the power spectrum density (PSD) feature, and obtain the signal energy feature.
[0120] Optionally, the signal energy characteristics include: peak power frequency, that is, the frequency of the highest point in the PSD curve, representing the frequency with the strongest signal energy; the calculation formula is: f peak = argmax(P(f)), where P(f) = |X(f)| 2 , f is the frequency, and the argmax operation is used to find the value of frequency f that maximizes P(f).
[0121] Optionally, the signal energy characteristics include: power bandwidth: the frequency range in which the signal power is concentrated, which can be determined by calculating the frequency interval exceeding a certain power threshold; the calculation formula is: f band =max(f)-min(f), where max(f) and min(f) are the lowest and highest frequencies respectively that satisfy the requirement that the accumulated power reaches a certain percentage threshold of the total power.
[0122] Optionally, the signal energy features include: Spectral entropy: used to measure the average information content of PSD distribution and measure the randomness of signal energy distribution in the frequency domain. The calculation formula is: Where P′(f) is the normalized PSD value.
[0123] Optionally, the signal energy features include: Spectral flux: based on the power spectral density (PSD) difference between adjacent frames. It is mainly used to measure the rate of change of the signal's spectrum over time. After expanding it to the time-frequency domain, it can simultaneously measure the rate of change of the signal's time-frequency spectrum over time and frequency. The calculation formula is: Spectral_Flux = ∑ f (|X2(f)|-|X1(f)|) 2 ·Ι(|X2(f)|>|X1(f)|).
[0124] Optionally, the signal energy characteristics include: Spectral flatness: measures the flatness of the PSD distribution and measures the uniformity of the signal energy distribution in the frequency domain. The calculation formula is: Where N is the total number of frequency points. The closer the value of spectral flatness is to 1, the flatter the PSD distribution is.
[0125] Optionally, signal energy features include: Spectral centroid: the "center of gravity" of the PSD distribution, giving the average frequency of the power distribution, etc. The calculation formula is:
[0126] The technical solution provided in this application designs a wavelet discrete transform dynamic selection framework for different operating states of security equipment. The system adaptively selects appropriate wavelet coefficients according to the different characteristics of the signal mode; and in the process of wavelet transform, a feedback mechanism based on signal quality assessment is introduced to find the optimal parameter combination under different signal modes.
[0127] In the above-mentioned embodiment of the present application, the time series data classification problem in the security device is converted into a signal field processing problem for judgment. Based on the Bayesian optimization (BO) algorithm, the Gaussian probability model of the objective function and the EI expected acquisition function of the hyperparameter search are constructed to complete the iterative update of the wavelet discrete transform dynamic selection framework, and the decomposition level is dynamically adjusted according to the energy distribution and entropy characteristics of the signal. In this way, it can be ensured that the optimal wavelet basis function is selected for analysis according to the characteristics of the security device operation signal. The frequency characteristics of each sub-band are found through discrete wavelet transform technology (DTW), power spectral density analysis is introduced under multi-scale decomposition, and the nonlinear structure of the signal high-dimensional space is captured through kernel principal component analysis (Kernel PCA), combined with support vector machine classifier (SVM) machine learning decision, to obtain the final alarm type.
[0128] According to an embodiment of the present invention, an embodiment of a timing signal detection device is also provided. It should be noted that the timing signal detection device can be used to execute the timing signal detection method in the embodiment of the present invention, and the timing signal detection method in the embodiment of the present invention can be executed in the timing signal detection device.
[0129] Figure 4 is a schematic diagram of a timing signal detection device according to an embodiment of the present invention, such as Figure 4 As shown, the device may include: an acquisition module 42, which is used to acquire a time series signal to be detected of a device to be detected; a first determination module 44, which is used to determine the wavelet coefficients corresponding to the time series signal to be detected in multiple sub-bands using a target wavelet basis function model, wherein the target wavelet basis function model is used to decompose the time series signal to be detected into sub-bands of different frequencies, and use the wavelet coefficients to represent the signal characteristics in each sub-band; a second determination module 46, which is used to determine a signal feature set of the time series signal to be detected based on multiple wavelet coefficients of the time series signal to be detected, wherein the signal feature set at least includes: a signal time-frequency feature and a signal energy feature corresponding to each wavelet coefficient; a detection module 48, which is used to detect the signal feature set using a signal detection model to obtain a signal detection result, wherein the signal detection result is used to indicate the alarm type of the time series signal to be detected, and the signal detection model is trained by machine learning using multiple sets of data, and each set of data in the multiple sets of data includes: a signal feature set of a sample time series signal and a pre-calibrated alarm type label, and the alarm type label is used to represent the alarm type of the sample time series signal.
[0130] It should be noted that the acquisition module 42 in this embodiment can be used to execute step S102 in the embodiment of the present application, the first determination module 44 in this embodiment can be used to execute step S104 in the embodiment of the present application, the second determination module 46 in this embodiment can be used to execute step S106 in the embodiment of the present application, and the detection module 48 in this embodiment can be used to execute step S108 in the embodiment of the present application. The examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments.
[0131] In an embodiment of the present invention, by performing wavelet basis decomposition on the time series signal to be detected, wavelet coefficients of multiple sub-bands, as well as the signal time-frequency characteristics and signal energy characteristics of each wavelet coefficient can be obtained, so that the internal complex dynamics of the time series signal to be detected can be accurately captured, and then detection can be performed based on the signal time-frequency characteristics and signal energy characteristics of the time series signal to be detected, which can make the detection result more accurate, achieve the technical effect of improving the accuracy of detecting the time series signal, and thus solve the technical problem of inaccurate detection of the time series signal.
[0132] As an optional embodiment, the first determination module includes: an identification unit, used to identify the distribution of frequencies to be detected of the timing signal to be detected, wherein the distribution of frequencies to be detected is used to represent the distribution of the signal frequency of each moment to be detected in the timing signal to be detected within the time period to be detected, and the time period to be detected is the time period covered by the timing signal to be detected, and there are multiple moments to be detected with the same time interval in the time period to be detected; a first determination unit, used to determine the target signal pattern corresponding to the distribution of frequencies to be detected from multiple preset signal patterns recorded in a preset signal pattern set, wherein the preset signal pattern set is used to record preset signal patterns corresponding to multiple preset detection frequencies respectively; a second determination unit , used to determine the target signal decomposition combination corresponding to the target signal pattern among multiple preset signal decomposition combinations recorded by the preset wavelet basis function model set, wherein the preset wavelet basis function model set is used to record the preset signal decomposition combinations corresponding to multiple preset signal patterns, each preset signal decomposition combination includes: a preset wavelet basis function model and a preset decomposition level corresponding to the preset wavelet basis function model, and the target signal decomposition combination includes: a target wavelet basis function model and a target decomposition level corresponding to the target wavelet basis function model; a first decomposition unit is used to use the target wavelet basis function model to perform multi-level decomposition on the time series signal to be detected according to the target decomposition level to obtain wavelet coefficients corresponding to multiple sub-bands.
[0133] As an optional embodiment, the first decomposition unit includes: a second decomposition unit, which is used to use the target wavelet basis function model to perform a step-by-step tower decomposition on the time series signal to be detected to obtain sub-band information of each sub-band, wherein the total decomposition level of the tower decomposition is the target decomposition level, each decomposition level corresponds to a sub-band, and each sub-band information includes: a high-pass filter signal and a low-pass filter signal, and the low-pass filter signal is used for decomposition at the next decomposition level; a third determination unit, which is used to determine the wavelet coefficients corresponding to the low-pass filter signal obtained at each decomposition level and the high-pass filter signal obtained at the first decomposition level.
[0134] As an optional embodiment, the target decomposition level includes at least: a first decomposition level, a second grading level and a third decomposition level, and the second decomposition unit includes: a first decomposition subunit, which is used to decompose the time series signal to be detected using the target wavelet basis function model to obtain the first frequency band information corresponding to the first decomposition level, wherein the first frequency band information includes: a first high-pass filter signal and a first low-pass filter signal; a second decomposition subunit, which is used to decompose the first low-pass filter signal using the target wavelet basis function model to obtain the second frequency band information corresponding to the second decomposition level, wherein the second frequency band information includes: a second high-pass filter signal and a second low-pass filter signal; a third decomposition subunit, which is used to decompose the second low-pass filter signal using the target wavelet basis function model to obtain the third frequency band information corresponding to the third decomposition level, wherein the third frequency band information includes: a third high-pass filter signal and a third low-pass filter signal.
[0135] As an optional embodiment, the second determination module includes: a first analysis unit, used to perform frequency analysis on the wavelet coefficients using a preset time-frequency feature model to obtain signal time-frequency features; a second analysis unit, used to perform power spectral density analysis on the frequency information and amplitude information in each wavelet coefficient using a preset energy feature model to obtain signal energy features; a fourth determination unit, used to determine the signal feature set based on the signal time-frequency features and signal energy features corresponding to multiple wavelet coefficients.
[0136] As an optional embodiment, the wavelet coefficients at least include: frequency information and amplitude information of the time series signal to be detected in the corresponding sub-frequency band, and the second determination module includes: a first analysis unit, used to use a preset time-frequency feature model to analyze the frequency information and amplitude information in the wavelet coefficients to obtain signal time-frequency features; a second analysis unit, used to use a preset energy feature model to analyze the frequency information and amplitude information in each wavelet coefficient to obtain signal energy features; a fourth determination unit, used to determine the signal feature set according to the signal time-frequency features and signal energy features corresponding to multiple wavelet coefficients.
[0137] As an optional embodiment, the device also includes: an acquisition submodule, which is used to detect the signal feature set using the signal detection model, and obtain multiple sample timing signals and an alarm type label for each sample timing signal before obtaining the signal detection result; an identification submodule, which is used to identify the sample frequency distribution of each sample timing signal, wherein the sample frequency distribution is used to represent the distribution of the signal frequency of each sample moment in the sample timing signal within the sample time period, and the sample time period is the time period covered by the sample timing signal, and there are multiple sample moments with the same time interval in the sample time period; a first determination submodule, which is used to determine the sample signal pattern corresponding to each sample frequency distribution in the multiple preset signal patterns recorded in the preset signal pattern set, wherein the preset signal pattern set is used to record the preset signal patterns corresponding to the multiple sample frequency distributions; a first training submodule, which is used to train the signal detection model using multiple sample timing signals with the same sample signal pattern and the alarm type label corresponding to each sample timing signal.
[0138] As an optional embodiment, the first training submodule includes: a second determination submodule, used to determine the target hyperparameter combination corresponding to the target signal pattern from multiple preset hyperparameter combinations in a preset hyperparameter set, wherein the preset hyperparameter set is used to record the preset hyperparameter combinations corresponding to multiple sample signal patterns, and the preset hyperparameter combination includes: multiple preset parameters for controlling the training process of the signal detection model, the target signal pattern is a sample signal pattern to which multiple sample timing signals used to train the signal detection model belong; a third determination submodule, used to input the target hyperparameter combination corresponding to the target signal pattern into a preset detection model to obtain a target detection model, wherein the preset detection model is an initial detection model of a preset signal detection model; a second training submodule, used to train the target detection model using multiple sample timing signals of the target signal pattern and an alarm type label corresponding to each sample timing signal to obtain a signal detection model.
[0139] An embodiment of the present invention may provide an electronic device, which is a computer terminal, and the computer terminal may be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced by a terminal device such as a mobile terminal.
[0140] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
[0141] In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the detection method of the time series signal: obtaining the time series signal to be detected of the device to be detected; using the target wavelet basis function model, determining the wavelet coefficients corresponding to the time series signal to be detected in multiple sub-bands, wherein the target wavelet basis function model is used to decompose the time series signal to be detected into sub-bands of different frequencies, and use the wavelet coefficients to represent the signal characteristics in each sub-band; according to the multiple wavelet coefficients of the time series signal to be detected, determining the signal feature set of the time series signal to be detected, wherein the signal feature set at least includes: the signal time-frequency feature and the signal energy feature corresponding to each wavelet coefficient; using the signal detection model to detect the signal feature set to obtain a signal detection result, wherein the signal detection result is used to indicate the alarm type of the time series signal to be detected, and the signal detection model is trained by machine learning using multiple groups of data, and each group of the multiple groups of data includes: the signal feature set of the sample time series signal and a pre-calibrated alarm type label, and the alarm type label is used to indicate the alarm type of the sample time series signal.
[0142] Figure 5 is a structural block diagram of a computer terminal according to an embodiment of the present invention. Figure 5 As shown, the computer terminal 50 may include: one or more (only one is shown in the figure) processors 52 , and a memory 54 .
[0143] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the detection method and device of the timing signal in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned detection method of the timing signal. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the terminal 50 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0144] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: obtain the time series signal to be detected of the device to be detected; use the target wavelet basis function model to determine the wavelet coefficients corresponding to the time series signal to be detected in multiple sub-bands, wherein the target wavelet basis function model is used to decompose the time series signal to be detected into sub-bands of different frequencies, and use the wavelet coefficients to represent the signal characteristics in each sub-band; according to the multiple wavelet coefficients of the time series signal to be detected, determine the signal feature set of the time series signal to be detected, wherein the signal feature set at least includes: the signal time-frequency feature and the signal energy feature corresponding to each wavelet coefficient; use the signal detection model to detect the signal feature set to obtain the signal detection result, wherein the signal detection result is used to indicate the alarm type of the time series signal to be detected, and the signal detection model is trained by machine learning using multiple groups of data, and each group of the multiple groups of data includes: the signal feature set of the sample time series signal and a pre-calibrated alarm type label, and the alarm type label is used to indicate the alarm type of the sample time series signal.
[0145] Optionally, the processor may also execute the following steps of program code: identifying the distribution of frequencies to be detected of the timing signal to be detected, wherein the distribution of frequencies to be detected is used to indicate the distribution of the signal frequency at each moment to be detected in the timing signal to be detected within the time period to be detected, the time period to be detected being the time period covered by the timing signal to be detected, and there being multiple moments to be detected with the same time interval in the time period to be detected; determining a target signal pattern corresponding to the distribution of frequencies to be detected among multiple preset signal patterns recorded in the preset signal pattern set, wherein the preset signal pattern set is used to record preset signal patterns corresponding to multiple preset detection frequencies respectively; in the preset Among the multiple preset signal decomposition combinations recorded by the wavelet basis function model set, a target signal decomposition combination corresponding to the target signal pattern is determined, wherein the preset wavelet basis function model set is used to record the preset signal decomposition combinations corresponding to the multiple preset signal patterns, each preset signal decomposition combination includes: a preset wavelet basis function model and a preset decomposition level corresponding to the preset wavelet basis function model, and the target signal decomposition combination includes: a target wavelet basis function model and a target decomposition level corresponding to the target wavelet basis function model; the target wavelet basis function model is used to perform multi-level decomposition of the time series signal to be detected according to the target decomposition level to obtain wavelet coefficients corresponding to multiple sub-frequency bands.
[0146] Optionally, the processor may also execute the program code of the following steps: using the target wavelet basis function model to perform a step-by-step tower decomposition of the time series signal to be detected to obtain sub-band information of each sub-band, wherein the total decomposition level of the tower decomposition is the target decomposition level, each decomposition level corresponds to a sub-band, and each sub-band information includes: a high-pass filter signal and a low-pass filter signal, the low-pass filter signal is used for decomposition at the next decomposition level; determining the wavelet coefficients corresponding to the low-pass filter signal obtained at each decomposition level and the high-pass filter signal obtained at the first decomposition level.
[0147] Optionally, the target decomposition level includes at least: a first decomposition level, a second decomposition level and a third decomposition level, and the processor may also execute the following steps of program code: using the target wavelet basis function model to decompose the time series signal to be detected to obtain the first frequency band information corresponding to the first decomposition level, wherein the first frequency band information includes: a first high-pass filter signal and a first low-pass filter signal; using the target wavelet basis function model to decompose the first low-pass filter signal to obtain the second frequency band information corresponding to the second decomposition level, wherein the second frequency band information includes: a second high-pass filter signal and a second low-pass filter signal; using the target wavelet basis function model to decompose the second low-pass filter signal to obtain the third frequency band information corresponding to the third decomposition level, wherein the third frequency band information includes: a third high-pass filter signal and a third low-pass filter signal.
[0148] Optionally, the processor may also execute the following program code steps: using a preset time-frequency feature model to perform frequency analysis on the wavelet coefficients to obtain signal time-frequency features; using a preset energy feature model to perform power spectral density analysis on the frequency information and amplitude information in each wavelet coefficient to obtain signal energy features; and determining a signal feature set based on the signal time-frequency features and signal energy features corresponding to multiple wavelet coefficients.
[0149] Optionally, the processor may also execute program code for the following steps: obtaining multiple sample timing signals and an alarm type label for each sample timing signal; identifying the sample frequency distribution of each sample timing signal, wherein the sample frequency distribution is used to represent the distribution of the signal frequency at each sample moment in the sample timing signal within a sample period, and the sample period is the period covered by the sample timing signal, and there are multiple sample moments with the same time interval in the sample period; determining the sample signal pattern corresponding to each sample frequency distribution in the multiple preset signal patterns recorded in the preset signal pattern set, wherein the preset signal pattern set is used to record the preset signal patterns corresponding to the multiple sample frequency distributions respectively; and training the signal detection model using multiple sample timing signals with the same sample signal pattern and the alarm type label corresponding to each sample timing signal.
[0150] Optionally, the processor may also execute the program code of the following steps: determining a target hyperparameter combination corresponding to a target signal pattern among a plurality of preset hyperparameter combinations of a preset hyperparameter set, wherein the preset hyperparameter set is used to record preset hyperparameter combinations corresponding to a plurality of sample signal patterns, and the preset hyperparameter combination includes: a plurality of preset parameters for controlling the training process of a signal detection model, the target signal pattern being a sample signal pattern to which a plurality of sample timing signals used for training the signal detection model belong; inputting the target hyperparameter combination corresponding to the target signal pattern into a preset detection model to obtain a target detection model, wherein the preset detection model is an initial detection model of a preset signal detection model; and training the target detection model using a plurality of sample timing signals of the target signal pattern and an alarm type label corresponding to each sample timing signal to obtain a signal detection model.
[0151] By adopting the embodiment of the present invention, a detection scheme for time series signals is provided. In the embodiment of the present invention, by performing wavelet basis decomposition on the time series signal to be detected, wavelet coefficients of multiple sub-bands, as well as the signal time-frequency characteristics and signal energy characteristics of each wavelet coefficient can be obtained, the internal complex dynamics of the time series signal to be detected can be accurately captured, and then detection can be performed based on the signal time-frequency characteristics and signal energy characteristics of the time series signal to be detected, so that the detection result can be more accurate, and the technical effect of improving the accuracy of detecting the time series signal is achieved, thereby solving the technical problem of inaccurate detection of the time series signal.
[0152] It can be understood by those skilled in the art that Figure 5 The structure shown is for illustration only, and the computer terminal may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 5 The structure of the electronic device is not limited. For example, the computer terminal 50 may also include Figure 5 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 5 Different configurations are shown.
[0153] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a computer program. The computer program can be stored in a non-volatile medium. The non-volatile storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0154] The embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the timing signal detection method provided in the embodiment.
[0155] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0156] Optionally, in this embodiment, the non-volatile storage medium is configured to store program codes for executing the following steps: obtaining a time series signal to be detected of a device to be detected; determining the wavelet coefficients corresponding to the time series signal to be detected in multiple sub-bands using a target wavelet basis function model, wherein the target wavelet basis function model is used to decompose the time series signal to be detected into sub-bands of different frequencies, and use the wavelet coefficients to represent the signal characteristics in each sub-band; determining a signal feature set of the time series signal to be detected based on multiple wavelet coefficients of the time series signal to be detected, wherein the signal feature set includes at least: signal time-frequency features and signal energy features corresponding to each wavelet coefficient; detecting the signal feature set using a signal detection model to obtain a signal detection result, wherein the signal detection result is used to indicate the alarm type of the time series signal to be detected, and the signal detection model is trained by machine learning using multiple sets of data, and each set of data in the multiple sets of data includes: a signal feature set of a sample time series signal and a pre-calibrated alarm type label, and the alarm type label is used to indicate the alarm type of the sample time series signal.
[0157] Optionally, in this embodiment, the non-volatile storage medium is configured to store program codes for performing the following steps: identifying a distribution of frequencies to be detected of a timing signal to be detected, wherein the distribution of frequencies to be detected is used to represent a distribution of a signal frequency at each moment to be detected in the timing signal to be detected within a time period to be detected, the time period to be detected being a time period covered by the timing signal to be detected, and there being multiple moments to be detected with the same time interval in the time period to be detected; determining a target signal pattern corresponding to the distribution of frequencies to be detected among multiple preset signal patterns recorded in a preset signal pattern set, wherein the preset signal pattern set is used to record preset signal patterns corresponding to multiple preset detection frequencies, respectively. signal pattern; determine the target signal decomposition combination corresponding to the target signal pattern among the multiple preset signal decomposition combinations recorded by the preset wavelet basis function model set, wherein the preset wavelet basis function model set is used to record the preset signal decomposition combinations corresponding to the multiple preset signal patterns, each preset signal decomposition combination includes: a preset wavelet basis function model and a preset decomposition level corresponding to the preset wavelet basis function model, and the target signal decomposition combination includes: a target wavelet basis function model and a target decomposition level corresponding to the target wavelet basis function model; use the target wavelet basis function model to perform multi-level decomposition of the time series signal to be detected according to the target decomposition level to obtain wavelet coefficients corresponding to multiple sub-frequency bands.
[0158] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: using the target wavelet basis function model to perform a step-by-step tower decomposition of the time series signal to be detected to obtain sub-band information of each sub-band, wherein the total decomposition level of the tower decomposition is the target decomposition level, each decomposition level corresponds to a sub-band, and each sub-band information includes: a high-pass filter signal and a low-pass filter signal, the low-pass filter signal is used for decomposition at the next decomposition level; determining the wavelet coefficients corresponding to the low-pass filter signal obtained at each decomposition level and the high-pass filter signal obtained at the first decomposition level.
[0159] Optionally, in this embodiment, the target decomposition level includes at least: a first decomposition level, a second decomposition level and a third decomposition level, and the non-volatile storage medium is configured to store program codes for executing the following steps: using the target wavelet basis function model to decompose the detected time series signal to obtain the first frequency band information corresponding to the first decomposition level, wherein the first frequency band information includes: a first high-pass filtered signal and a first low-pass filtered signal; using the target wavelet basis function model to decompose the first low-pass filtered signal to obtain the second frequency band information corresponding to the second decomposition level, wherein the second frequency band information includes: a second high-pass filtered signal and a second low-pass filtered signal; using the target wavelet basis function model to decompose the second low-pass filtered signal to obtain the third frequency band information corresponding to the third decomposition level, wherein the third frequency band information includes: a third high-pass filtered signal and a third low-pass filtered signal.
[0160] Optionally, in this embodiment, the non-volatile storage medium is configured to store program codes for executing the following steps: performing frequency analysis on the wavelet coefficients using a preset time-frequency feature model to obtain signal time-frequency features; performing power spectral density analysis on the frequency information and amplitude information in each wavelet coefficient using a preset energy feature model to obtain signal energy features; and determining a signal feature set based on the signal time-frequency features and signal energy features corresponding to multiple wavelet coefficients.
[0161] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: obtaining multiple sample timing signals and an alarm type label for each sample timing signal; identifying the sample frequency distribution of each sample timing signal, wherein the sample frequency distribution is used to represent the distribution of the signal frequency of each sample moment in the sample timing signal within a sample period, and the sample period is a period covered by the sample timing signal, and there are multiple sample moments with the same time interval in the sample period; determining the sample signal pattern corresponding to each sample frequency distribution in multiple preset signal patterns recorded in a preset signal pattern set, wherein the preset signal pattern set is used to record preset signal patterns corresponding to multiple sample frequency distributions; using multiple sample timing signals with the same sample signal pattern and the alarm type label corresponding to each sample timing signal, to train a signal detection model.
[0162] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: determining a target hyperparameter combination corresponding to a target signal pattern among multiple preset hyperparameter combinations of a preset hyperparameter set, wherein the preset hyperparameter set is used to record preset hyperparameter combinations corresponding to multiple sample signal patterns, and the preset hyperparameter combination includes: multiple preset parameters for controlling the training process of a signal detection model, the target signal pattern being a sample signal pattern to which multiple sample timing signals used to train the signal detection model belong; inputting the target hyperparameter combination corresponding to the target signal pattern into a preset detection model to obtain a target detection model, wherein the preset detection model is an initial detection model of a preset signal detection model; training the target detection model using multiple sample timing signals of the target signal pattern and an alarm type label corresponding to each sample timing signal to obtain a signal detection model.
[0163] The embodiment of the present invention further provides a computer program product, including a computer program. Optionally, in this embodiment, when the computer program is executed by a processor, the steps of the timing signal detection method provided in the above embodiment are implemented.
[0164] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0165] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0166] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0167] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0168] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0169] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a non-volatile storage medium, including several instructions for a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned non-volatile storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0170] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for detecting a timing signal, characterized in that: include: Obtain a timing signal to be detected from the device to be detected; Determine the wavelet coefficients corresponding to the time series signal to be detected in multiple sub-bands by using the target wavelet basis function model, wherein the target wavelet basis function model is used to decompose the time series signal to be detected into the sub-bands of different frequencies, and use the wavelet coefficients to represent the signal characteristics in each sub-band; Determine a signal feature set of the time series signal to be detected according to the plurality of wavelet coefficients of the time series signal to be detected, wherein the signal feature set at least includes: a signal time-frequency feature and a signal energy feature corresponding to each wavelet coefficient; The signal feature set is detected using a signal detection model to obtain a signal detection result, wherein the signal detection result is used to indicate the alarm type of the timing signal to be detected, and the signal detection model is trained through machine learning using multiple groups of data, and each group of the multiple groups of data includes: a signal feature set of a sample timing signal and a pre-calibrated alarm type label, and the alarm type label is used to indicate the alarm type of the sample timing signal.
2. The method according to claim 1, characterized in that Using the target wavelet basis function model, determining the wavelet coefficients corresponding to the time series signal to be detected in multiple sub-bands includes: Identify the distribution of frequencies to be detected of the time series signal to be detected, wherein the distribution of frequencies to be detected is used to indicate the distribution of the signal frequency of each time moment to be detected in the time series signal to be detected within a time period to be detected, the time period to be detected is the time period covered by the time series signal to be detected, and there are multiple time moments to be detected with the same time interval in the time period to be detected; Determine a target signal pattern corresponding to the frequency distribution to be detected from a plurality of preset signal patterns recorded in a preset signal pattern set, wherein the preset signal pattern set is used to record the preset signal patterns corresponding to a plurality of preset detection frequencies respectively; Determine a target signal decomposition combination corresponding to the target signal pattern from among a plurality of preset signal decomposition combinations recorded by a preset wavelet basis function model set, wherein the preset wavelet basis function model set is used to record the preset signal decomposition combinations corresponding to a plurality of preset signal patterns, each of the preset signal decomposition combinations includes: a preset wavelet basis function model and a preset decomposition level corresponding to the preset wavelet basis function model, and the target signal decomposition combination includes: the target wavelet basis function model and the target decomposition level corresponding to the target wavelet basis function model; The target wavelet basis function model is used to perform multi-level decomposition on the time series signal to be detected according to the target decomposition level to obtain the wavelet coefficients corresponding to the multiple sub-frequency bands.
3. The method according to claim 2, characterized in that The target wavelet basis function model is used to perform multi-level decomposition of the time series signal to be detected according to the target decomposition level, and the wavelet coefficients corresponding to the plurality of sub-frequency bands are obtained, including: Using the target wavelet basis function model, the time series signal to be detected is subjected to a pyramid decomposition step by step to obtain sub-band information of each sub-band, wherein the total decomposition level of the pyramid decomposition is the target decomposition level, each decomposition level corresponds to one sub-band, and each sub-band information includes: a high-pass filter signal and a low-pass filter signal, and the low-pass filter signal is used for decomposition at the next decomposition level; Determine the wavelet coefficients corresponding to the low-pass filter signal obtained at each decomposition level and the high-pass filter signal obtained at the first decomposition level.
4. The method according to claim 3, characterized in that The target decomposition level at least includes: the first decomposition level, the second hierarchical level and the third decomposition level, and the target wavelet basis function model is used to perform a step-by-step tower decomposition on the time series signal to be detected, and the sub-band information of each sub-band is obtained, including: Decomposing the time series signal to be detected by using the target wavelet basis function model to obtain first frequency band information corresponding to the first decomposition level, wherein the first frequency band information includes: a first high-pass filter signal and a first low-pass filter signal; Decomposing the first low-pass filtered signal by using the target wavelet basis function model to obtain second frequency band information corresponding to the second decomposition level, wherein the second frequency band information includes: a second high-pass filtered signal and a second low-pass filtered signal; The second low-pass filtered signal is decomposed by using the target wavelet basis function model to obtain third frequency band information corresponding to the third decomposition level, wherein the third frequency band information includes: a third high-pass filtered signal and a third low-pass filtered signal.
5. The method according to claim 1, characterized in that Determining, according to the plurality of wavelet coefficients of the time series signal to be detected, a signal feature set of the time series signal to be detected comprises: Performing frequency analysis on the wavelet coefficients using a preset time-frequency feature model to obtain the signal time-frequency features; Performing power spectrum density analysis on the frequency information and the amplitude information in each of the wavelet coefficients using a preset energy feature model to obtain the signal energy feature; The signal feature set is determined according to the signal time-frequency features and the signal energy features respectively corresponding to the plurality of wavelet coefficients.
6. The method according to claim 1, characterized in that Before using the signal detection model to detect the signal feature set to obtain the signal detection result, the method further includes: Acquire a plurality of the sample timing signals and the alarm type label of each of the sample timing signals; Identify the sample frequency distribution of each of the sample timing signals, wherein the sample frequency distribution is used to represent the distribution of the signal frequency of each sample moment in the sample timing signal within a sample period, the sample period is the period covered by the sample timing signal, and there are multiple sample moments with the same time interval in the sample period; Determine a sample signal pattern corresponding to each of the sample frequency distribution situations among a plurality of preset signal patterns recorded in a preset signal pattern set, wherein the preset signal pattern set is used to record the preset signal patterns corresponding to the plurality of sample frequency distribution situations respectively; The signal detection model is trained using a plurality of the sample timing signals having the same sample signal pattern and the alarm type label corresponding to each of the sample timing signals.
7. The method according to claim 6, characterized in that Using the plurality of sample time series signals having the same sample signal pattern and the alarm type label corresponding to each of the sample time series signals, training the signal detection model comprises: Determine a target hyperparameter combination corresponding to a target signal mode among a plurality of preset hyperparameter combinations of a preset hyperparameter set, wherein the preset hyperparameter set is used to record the preset hyperparameter combinations respectively corresponding to a plurality of the sample signal modes, and the preset hyperparameter combination includes: a plurality of preset parameters for controlling the training process of the signal detection model, and the target signal mode is the sample signal mode to which the plurality of the sample timing signals used for training the signal detection model belong; Inputting the target hyperparameter combination corresponding to the target signal pattern into a preset detection model to obtain a target detection model, wherein the preset detection model is an initial detection model of the signal detection model set in advance; The target detection model is trained using the multiple sample time series signals of the target signal pattern and the alarm type label corresponding to each sample time series signal to obtain the signal detection model.
8. A detection device for a timing signal, characterized in that: include: An acquisition module, used for acquiring a timing signal to be detected of a device to be detected; A first determination module is used to determine the wavelet coefficients corresponding to the time series signal to be detected in multiple sub-bands by using a target wavelet basis function model, wherein the target wavelet basis function model is used to decompose the time series signal to be detected into the sub-bands of different frequencies, and use the wavelet coefficients to represent the signal characteristics in each sub-band; A second determination module is used to determine a signal feature set of the time series signal to be detected according to the multiple wavelet coefficients of the time series signal to be detected, wherein the signal feature set at least includes: a signal time-frequency feature and a signal energy feature corresponding to each wavelet coefficient; A detection module is used to use a signal detection model to detect the signal feature set to obtain a signal detection result, wherein the signal detection result is used to indicate the alarm type of the timing signal to be detected, and the signal detection model is trained through machine learning using multiple groups of data, and each group of the multiple groups of data includes: a signal feature set of a sample timing signal and a pre-calibrated alarm type label, and the alarm type label is used to indicate the alarm type of the sample timing signal.
9. An electronic device, comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to execute the timing signal detection method according to any one of claims 1 to 8 through the computer program.
10. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the steps of the timing signal detection method described in any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Power transmission line fault reason identification method based on high and low frequency wavelet feature association
CN106405339A
Hydropower station auxiliary equipment fault detection method based on space-time state diagram
CN117746323A
Energy-based wavelet thresholding
US20110055222A1
Cited By
5G-based intelligent Internet of Things communication system and control method thereof
CN119788225A
A 5G-based intelligent Internet of Things communication system and its control method
CN119788225B
