A white noise data processing method for intelligent wooden toys

Through segmented processing and signal curve fitting, the white noise signal baseline drift removal technology in smart wooden toys solves the problem of poor performance in existing technologies, achieves better signal optimization processing, and improves user experience.

CN118629418BActive Publication Date: 2024-10-25YUNHE JINCHENG WOOD IND
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411095369.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-10-25
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

The existing technology is less effective in removing baseline drift from white noise signals in smart wooden toys, resulting in the inability to effectively remove noise interference and affecting the user's relaxing experience.

Method used

Collect white noise signal time series data, and after segmentation processing, determine the number of fitting points according to the regularity of signal waveform distribution, perform signal curve fitting, screen the best baseline signal curve, and adjust the signal by evaluating the objective function to remove baseline drift.

Benefits of technology

Through segmentation processing and signal curve fitting, the best baseline signal curve is screened out, which significantly improves the baseline drift removal effect of white noise signals, improves the signal optimization processing effect, and ensures the ideal user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629418B_ABST
    Figure CN118629418B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of sound signal denoising, and in particular to a white noise data processing method for smart wooden toys, the method comprising: collecting time series data of white noise signals of smart wooden toys, obtaining white noise signal data segments, and determining the number of fitting points corresponding to each white noise signal data segment; screening the fitting points in each white noise signal data segment based on the number of fitting points, and performing signal curve fitting to obtain initial baseline signal curves; analyzing each initial baseline signal curve, and obtaining an evaluation target function corresponding to each initial baseline signal curve; determining an optimal baseline signal curve according to the evaluation target function, and using the optimal baseline signal curve to adjust the white noise signal to obtain a white noise signal after removing the baseline drift. The method of the present invention has a better effect of removing the baseline drift.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of sound signal denoising, and in particular to a white noise data processing method for intelligent wooden toys. Background Art

[0002] Smart wooden toys refer to innovative products that combine smart technology with traditional wooden toys. These toys embed smart hardware modules into toys by changing the physical structure or materials of the toys to achieve intelligent transformation of the toys. In the current market, there is a type of smart wooden toy that analyzes user interactions to provide users with a quick relaxation and calm environment or helps children recognize nature. Its main implementation method is to play corresponding natural white noise. White noise refers to noise whose power spectrum density is constant in the entire frequency domain. It is a theoretical construction. White noise is full of vibration frequencies that can be heard by the entire human ear. It can help relax or sleep by simulating natural white noise.

[0003] When the smart wooden toy plays white noise, if the audio interface is poorly connected or there are interferences from other environmental factors, the low-frequency sound signal may be superimposed on the original white noise signal, which makes the played white noise inconsistent with the actual situation and cannot help users relax. Therefore, it is necessary to denoise the white noise signal in the smart wooden toy to avoid baseline drift. The existing method of removing baseline drift from signal data is to directly fit the trend item to remove the baseline drift phenomenon, but there may be noise that causes errors in the direct fitting result, making the baseline removal effect poor. Summary of the invention

[0004] In order to solve the technical problem that the existing method has poor effect in removing baseline drift, the purpose of the present invention is to provide a white noise data processing method for smart wooden toys. The technical solution adopted is as follows:

[0005] Collecting time series data of white noise signals of the intelligent wooden toy, and performing segmentation processing on all white noise signals to obtain at least two white noise signal data segments;

[0006] Determine the number of fitting points corresponding to each white noise signal data segment according to the regularity of the signal waveform distribution of each white noise signal data segment; select the fitting points in each white noise signal data segment based on the number of fitting points, perform signal curve fitting respectively, and obtain at least two initial baseline signal curves;

[0007] According to the difference between each initial baseline signal curve and other initial baseline signal curves, and the distribution of the difference between all white noise signals and each initial baseline signal curve, an evaluation objective function corresponding to each initial baseline signal curve is obtained;

[0008] An optimal baseline signal curve is determined according to the evaluation objective function, and the white noise signal is adjusted using the optimal baseline signal curve to obtain a white noise signal after the baseline drift is removed.

[0009] Preferably, determining the number of fitting points corresponding to each white noise signal data segment according to the regularity of the signal waveform distribution of each white noise signal data segment specifically includes:

[0010] According to the regularity of the distribution of the signal waveform of each white noise signal data segment, the degree of fluctuation regularity of the white noise signal data segment is obtained; according to the degree of fluctuation regularity and the number of peaks and troughs on the signal waveform of each white noise signal data segment, the number of fitting points corresponding to each white noise signal data segment is determined.

[0011] Preferably, obtaining the degree of fluctuation regularity of the white noise signal data segment according to the regularity of the distribution of the signal waveform of each white noise signal data segment specifically includes:

[0012] For any white noise signal data segment, obtain the minimum value of all white noise signals in the white noise signal data segment, and form a signal sub-segment with the white noise signals between every two adjacent minimum values;

[0013] Based on all white noise signals in each signal sub-segment, the kurtosis and skewness corresponding to each signal sub-segment are calculated respectively, the variance of the kurtosis of all signal sub-segments in the white noise signal data segment is calculated, and the variance of the skewness of all signal sub-segments in the white noise signal data segment is calculated. The sum of the two variances is negatively correlated and normalized to obtain the degree of fluctuation regularity of the white noise signal data segment.

[0014] Preferably, determining the number of fitting points corresponding to each white noise signal data segment according to the degree of fluctuation regularity and the number of peaks and troughs on the signal waveform of each white noise signal data segment specifically includes:

[0015] For any white noise signal data segment, the degree of fluctuation regularity of the white noise signal data segment is normalized, the product of the normalized degree of fluctuation regularity and the number of signal sub-segments in the white noise signal data segment is calculated, and the product is rounded up to obtain the number of fitting points corresponding to the white noise signal data segment.

[0016] Preferably, the evaluation objective function corresponding to each initial baseline signal curve is obtained according to the difference between each initial baseline signal curve and other initial baseline signal curves, and the distribution of the difference between all white noise signals and each initial baseline signal curve, specifically including:

[0017] For any initial baseline signal curve, obtaining a first evaluation coefficient of the initial baseline signal curve according to the difference distribution between the initial baseline signal curve and other initial baseline signal curves;

[0018] Obtaining a second evaluation coefficient of the initial baseline signal curve according to a difference distribution between the initial baseline signal curve and all white noise signals;

[0019] The sum of the normalized value of the first evaluation coefficient and the normalized value of the second evaluation coefficient is used as the evaluation target function of the initial baseline signal curve.

[0020] Preferably, obtaining a first evaluation coefficient of the initial baseline signal curve according to the difference distribution between the initial baseline signal curve and other initial baseline signal curves specifically includes:

[0021] Any initial baseline signal curve is recorded as a target curve, and other initial baseline signal curves except the target curve are recorded as reference curves of the target curve;

[0022] For any reference curve, obtain the tangent slopes of the target curve and the reference curve at the corresponding points at each time respectively; calculate the absolute value of the difference between the tangent slopes of the target curve and the reference curve at the corresponding points at each same time, and take the cumulative sum of all the absolute values ​​of the differences between the target curve and the reference curve as the difference coefficient of the reference curve;

[0023] The difference coefficients of all reference curves of the target curve are accumulated to obtain a first evaluation coefficient of the target curve.

[0024] Preferably, obtaining the second evaluation coefficient of the initial baseline signal curve according to the difference distribution between the initial baseline signal curve and all white noise signals specifically includes:

[0025] The difference between the white noise signal at each moment and the signal of the target curve at the corresponding moment is calculated respectively, and the difference corresponding to each moment is subjected to curve fitting to obtain the baseline-removed signal curve corresponding to the target curve;

[0026] The minimum value of the baseline-removed signal curve is obtained, and the skewness corresponding to the signal interval between each two adjacent minimum values ​​on the baseline-removed signal curve is calculated respectively, and the absolute value of the sum of the skewnesses corresponding to all the signal intervals on the baseline-removed signal curve is used as the second evaluation coefficient of the target curve.

[0027] Preferably, the step of screening the fitting points in each white noise signal data segment based on the number of fitting points and performing signal curve fitting respectively comprises:

[0028] For any white noise signal data segment, the extreme value points in the white noise signal data segment are obtained, and the white noise signal corresponding to the midpoint between each two adjacent extreme value points is used as the sampling point. The sampling points are obtained as the fitting points of the white noise signal data segment based on the number of fitting points in time sequence to perform signal curve fitting.

[0029] Preferably, the step of performing segmentation processing on all white noise signals to obtain at least two white noise signal data segments specifically includes:

[0030] Starting from the initial signal acquisition moment, the white noise signal within the preset time length is obtained as the first white noise signal data segment. Starting from the second white noise signal data segment, the preset time length is increased according to the set step length until the preset time length reaches the preset maximum time length, and each white noise signal data segment is obtained in turn.

[0031] Preferably, determining the best baseline signal curve according to the evaluation objective function, and adjusting the white noise signal using the best baseline signal curve to obtain the white noise signal after removing the baseline drift, specifically includes:

[0032] The initial baseline signal curve corresponding to the minimum value of the evaluation objective function is recorded as the optimal baseline signal curve. The difference between the white noise signal at each moment and the signal of the optimal baseline signal curve at the corresponding moment is calculated to obtain the white noise signal after removing the baseline drift at each moment.

[0033] The embodiments of the present invention have at least the following beneficial effects:

[0034] The present invention first performs data segmentation based on the collected white noise signal time series data to obtain white noise signal data segments, so as to analyze the distribution and difference of signal fluctuations in different signal data segments respectively, determine different baseline drift simulation results, and screen and obtain simulation results with better fitting effect when removing baseline drift. Then, the regularity of the signal waveform distribution of each white noise signal data segment is analyzed, and the number of fitting points in each white noise signal data segment is adaptively obtained, and then curve fitting is performed, avoiding the distortion of the fitting curve result due to the chaos of the curve waveform in simulating natural white noise, providing a basis for the subsequent calculation of the optimal fitting low-frequency signal curve, and using the initial baseline signal curve to characterize the simulated signal curve of the low-frequency signal part, that is, the trend item part of the baseline drift phenomenon. Furthermore, each fitting result obtained is analyzed from two aspects respectively. The evaluation objective function corresponding to each initial baseline signal curve, that is, the evaluation objective function characterizes the simulation effect evaluation corresponding to the initial baseline signal curve, and the simulation result with the best effect, that is, the optimal baseline signal curve, is screened out. The white noise signal is adjusted using the optimal baseline signal curve to obtain a white noise signal after removing the baseline drift with a better effect, so as to obtain a relatively ideal white noise signal optimization processing effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 The present invention is a method flow chart of a white noise data processing method for intelligent wooden toys. DETAILED DESCRIPTION

[0037] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the white noise data processing method for intelligent wooden toys proposed by the present invention, its specific implementation, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0038] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0039] The specific scheme of the white noise data processing method for intelligent wooden toys provided by the present invention is described in detail below with reference to the accompanying drawings.

[0040] The scenario targeted by the present invention is specifically: the smart wooden toy provides users with a relaxing and sleep-aiding experience by playing white noise that simulates nature. However, during the actual playback of white noise, due to interference from objective factors such as the environment, a low-frequency signal is superimposed on the white noise signal, causing the white noise signal to have a baseline drift, resulting in distortion of the white noise actually played, reducing the user's experience. Therefore, it is necessary to perform a baseline drift removal operation on the white noise signal in the smart wooden toy.

[0041] The main purpose of the present invention is: the present invention first performs segmented processing on the white noise signal, performs data analysis on the white noise signal of each data segment, fits multiple initial baseline signal curves, evaluates the initial baseline signal curves, screens out the curve with the best fitting effect from the multiple fitted initial baseline signal curves, performs a baseline drift removal operation, and has a better effect of removing the baseline drift.

[0042] See also Figure 1 , which shows a method flow chart of a white noise data processing method for an intelligent wooden toy provided by an embodiment of the present invention, the method comprising the following steps:

[0043] Step 1: collect time series data of white noise signals of the smart wooden toy, and perform segmentation processing on all white noise signals to obtain at least two white noise signal data segments.

[0044] In the actual interaction process of smart wooden toys, users can select different types of white noise through voice input or touch input, and then the processing module equipped with the smart wooden toys analyzes the user input and plays the corresponding white noise. By collecting white noise signals played for a certain period of time, baseline drift analysis can be performed on the white noise signals within a certain period of time.

[0045] It should be noted that in this embodiment, the collected white noise signal is an analog signal converted by the white noise sound collected by the device, which belongs to time series data. Therefore, the white noise signal at each moment can be obtained in sequence from the collected analog signal. The white noise signal at each moment is obtained in sequence at a fixed time interval, i.e., 5 milliseconds. At the same time, all white noise signals are continuous analog signal data. In order to facilitate the analysis of the differences in the signal data at each moment, the continuous analog signal data is discretized. At the same time, the length of a certain time period is set to 30 seconds, and the implementer can set it according to the specific implementation scenario.

[0046] The baseline drift phenomenon occurs when the original signal is superimposed with a low-frequency component. In the original sound signal, the baseline drift may be different in different time lengths. In order to accurately obtain the trend item of the low-frequency component and use it to correct the original signal, it is necessary to analyze the fluctuation of the white noise signal in different time lengths, and then simulate the trend item based on the fluctuation of the white noise signal. The different trend items obtained by simulation are then analyzed and screened to determine the baseline drift trend with the best simulation effect.

[0047] Based on this, it is necessary to process all white noise signals in segments to obtain at least two white noise signal data segments. Specifically, starting from the initial signal acquisition moment, the white noise signal within the preset time length is obtained as the first white noise signal data segment, and starting from the second white noise signal data segment, the preset time length is increased according to the set step length until the preset time length reaches the preset maximum time length, and then each white noise signal data segment is obtained in turn.

[0048] In this embodiment, the preset time length is 0.1 seconds, the step length is set to 0.05 seconds, and the preset maximum time length is 0.75 seconds, which can be set by the implementer according to the specific implementation scenario. Starting from the initial signal acquisition moment, that is, from the first moment, the white noise signal within 0.1 seconds is obtained as the first white noise signal data segment, and from the cutoff moment of the first white noise signal data segment, the white noise signal within 0.15 seconds is obtained as the second white noise signal data segment, and so on, until the preset time length reaches 0.75 and the time length is no longer increased, and the acquisition is performed in sequence. By obtaining white noise signals of different time lengths and dividing them by different time lengths, it is possible to simulate the trend items of different intervals separately in the subsequent process to select the best simulation results.

[0049] Step 2: Determine the number of fitting points corresponding to each white noise signal data segment according to the regularity of the signal waveform distribution of each white noise signal data segment; select the fitting points in each white noise signal data segment based on the number of fitting points, and perform signal curve fitting respectively to obtain at least two initial baseline signal curves.

[0050] The overall waveform of the white noise signal is relatively regular and has obvious Gaussianity. When the baseline drift phenomenon occurs, the low-frequency interference signal affects the white noise signal, and the waveform may have different fluctuations. At the same time, the fluctuation of the signal and the distribution of the waveform are different in different intervals. The effect of fitting the trend item of the baseline drift in the interval with relatively complex waveforms is poor. Therefore, the fluctuation of each data segment of the white noise signal can be analyzed separately, and the overall distribution of the waveform in the interval can be evaluated. For the interval with relatively regular volatility, a relatively large number of data points are allocated to fit the signal curve to obtain a more accurate baseline simulation result.

[0051] Based on this, the number of fitting points corresponding to each white noise signal data segment is determined according to the regularity of the signal waveform distribution of each white noise signal data segment.

[0052] First, according to the regularity of the distribution of the signal waveform of each white noise signal data segment, the degree of fluctuation regularity of the white noise signal data segment is obtained. Specifically, for any white noise signal data segment, the minimum value of all white noise signals in the white noise signal data segment is obtained, and the white noise signal between each two adjacent minimum values ​​constitutes a signal sub-segment, and then the white noise signal of each signal sub-segment can be regarded as the interval where a single wave corresponding to a peak is located. Among them, the white noise signal is a continuous time series data, and obtaining the maximum and minimum values ​​of the analog signal curve of the collected white noise signal is a known technology, which will not be introduced in detail here.

[0053] Based on all white noise signals in each signal sub-segment, the kurtosis and skewness corresponding to each signal sub-segment are calculated respectively, the variance of the kurtosis of all signal sub-segments in the white noise signal data segment is calculated, and the variance of the skewness of all signal sub-segments in the white noise signal data segment is calculated. The sum of the two variances is negatively correlated and normalized to obtain the degree of fluctuation regularity of the white noise signal data segment.

[0054] In this embodiment, taking any white noise signal data segment as an example for explanation, the calculation formula for the degree of fluctuation regularity of the white noise signal data segment can be expressed as:

[0055]

[0056] in, Indicates the degree of fluctuation regularity of the u-th white noise signal data segment, represents the number of signal sub-segments contained in the u-th white noise signal data segment, represents the kurtosis of the i-th signal subsegment in the u-th white noise signal data segment, represents the mean of the kurtosis of all signal sub-segments in the u-th white noise signal data segment, represents the skewness of the i-th signal subsegment in the u-th white noise signal data segment, represents the mean of the skewness of all signal sub-segments in the u-th white noise signal data segment, and exp( ) represents an exponential function with the natural constant e as the base.

[0057] It should be noted that the calculation method of the kurtosis and skewness of a single waveform is a well-known technology, and the specific calculation formula is as follows:

[0058]

[0059]

[0060] in, represents the number of white noise signals contained in the i-th signal sub-segment in the u-th white noise signal data segment, represents the signal amplitude of the white noise signal at the nth moment in the ith signal subsegment, represents the mean value of the signal amplitude of all white noise signals in the i-th signal subsegment, Represents the variance of the signal amplitudes of all white noise signals in the i-th signal subsegment.

[0061] The kurtosis corresponding to each signal subsegment reflects the steepness of a single waveform in the corresponding signal interval. When its value is greater than 0, it means that the shape of a single peak is relatively high and sharp, and steeper than the normal distribution. When its value is less than 0, it means that the shape of a single peak is relatively short and fat, and is flatter than the normal distribution. When its value is equal to 0, it means that the distribution of a single peak belongs to the normal distribution. The skewness corresponding to each signal subsegment reflects the skew direction and degree of skewness of a single waveform in the corresponding signal interval. When its value is greater than 0, it means that the shape of a single peak is right-skewed; when its value is less than 0, it means that the shape of a single peak is left-skewed; when its value is equal to 0, it means that the shape of a single peak is symmetrically distributed.

[0062] is the variance of the kurtosis of all signal sub-segments in the white noise signal data segment, is the variance of the skewness of all signal sub-segments in the white noise signal data segment. Since the waveform distribution of the white noise signal without baseline drift is relatively regular, when the variance value of the kurtosis corresponding to the white noise signal data segment is larger, it means that the fluctuation degree of the steepness of multiple peaks in the white noise signal data segment is larger, and then the regularity of the waveform distribution in the white noise signal data segment is weaker. When the variance value of the skewness corresponding to the white noise signal data segment is larger, it means that the difference in the shape skewness of multiple peaks in the white noise signal data segment is larger, and then the regularity of the waveform distribution in the white noise signal data segment is weaker. The smaller the value of the fluctuation regularity of the corresponding white noise signal data segment, the weaker the regularity of the signal fluctuation in the white noise signal data segment.

[0063] According to the same calculation method as the fluctuation regularity degree of the u-th white noise signal data segment, the fluctuation regularity degree of each white noise signal data segment can be obtained. When the fluctuation regularity degree of the white noise signal data segment is small, it means that there is a certain difference between the waveforms of each peak in the white noise signal data segment, which further means that the waveform of the white noise signal in the corresponding time interval is more complex, and the effect of fitting using the signal data in this interval is poor, so it is necessary to obtain fewer data points in the white noise signal data segment for signal curve fitting.

[0064] Based on this, the number of fitting points corresponding to each white noise signal data segment is determined according to the degree of fluctuation regularity and the number of peaks and troughs on the signal waveform of each white noise signal data segment. Specifically, for any white noise signal data segment, the degree of fluctuation regularity of the white noise signal data segment is normalized, the product of the normalized degree of fluctuation regularity and the number of signal sub-segments in the white noise signal data segment is calculated, and the product is rounded up to obtain the number of fitting points corresponding to the white noise signal data segment.

[0065] In this embodiment, the u-th white noise signal data segment is taken as an example for description, and the calculation formula for the number of fitting points corresponding to the u-th white noise signal data segment can be expressed as:

[0066]

[0067] in, represents the number of fitting points corresponding to the u-th white noise signal data segment, Indicates the degree of fluctuation regularity of the u-th white noise signal data segment, represents the number of signal sub-segments contained in the u-th white noise signal data segment, Indicates the maximum value of the fluctuation regularity of all white noise signal data segments, Indicates the round-up symbol.

[0068] In this embodiment, using Indicates the degree of normalized fluctuation regularity. In the white noise signal data segment, the larger the value of the fluctuation regularity, the more regular the waveform in the corresponding interval, and the more fitting points are allocated to the interval. The smaller the value of the fluctuation regularity, the more complex the waveform in the corresponding interval, and the fewer fitting points need to be allocated for signal curve fitting.

[0069] Furthermore, after obtaining the number of fitting points, it is necessary to select data points from each white noise signal data segment as fitting points, and perform signal curve fitting respectively. Specifically, for any white noise signal data segment, obtain the extreme value points in the white noise signal data segment, and use the white noise signal corresponding to the midpoint moment between each two adjacent extreme value points as the sampling point. Each extreme value point has a corresponding time sequence, so the time corresponding to the two adjacent extreme value points is first obtained, and then the midpoint time between the corresponding moments of the two adjacent extreme value points can be obtained. Then, according to the time sequence, the sampling points are obtained based on the number of fitting points as the fitting points of the white noise signal data segment, and the signal curve is fitted to obtain at least two initial baseline signal curves.

[0070] According to the above method, the fitting signal curve corresponding to each white noise signal data segment can be obtained. The specific method of curve fitting is a well-known technology, and the implementer can choose according to the specific implementation scenario, such as the least square method, linear regression simulation and other methods. It can be understood that the fitting signal curve corresponding to each white noise signal data segment obtained by fitting is infinitely extended, that is, infinite in time series, so each initial baseline signal curve can obtain the corresponding fitting signal data at each moment. Finally, the obtained fitting signal curve, that is, the initial baseline signal curve, is the baseline fitting result obtained based on the change of the waveform and complexity of the white noise signal in each local time range.

[0071] It should be noted that, in order to accurately analyze the effect evaluation of the fitting result of the trend item corresponding to the baseline drift phenomenon, in this embodiment, it is necessary to obtain an additional global baseline signal curve, which is also used as the initial baseline signal curve. Specifically, the curve fitting is performed using the fitting points in all white noise signal data segments to obtain a global baseline signal curve as the initial baseline signal curve.

[0072] Step three, according to the difference between each initial baseline signal curve and other initial baseline signal curves, and the distribution of the difference between all white noise signals and each initial baseline signal curve, obtain the evaluation objective function corresponding to each initial baseline signal curve.

[0073] Since the initial baseline signal curve represents the fitting curve of the low-frequency signal of the baseline drift phenomenon, when analyzing the effect of removing the baseline drift operation using each initial baseline signal curve, it is necessary to obtain the corresponding signal curve after removing the baseline drift, and it can be understood that for the signal curve after removing the baseline drift phenomenon, its waveform distribution is relatively regular and has a certain Gaussianity. At the same time, since the initial baseline signal curve is obtained by fitting the white noise signal in each white noise signal data segment, when the effect of the baseline fitting result is good, the waveform distribution between each fitting result should be similar as a whole. Therefore, when evaluating the effect of each initial baseline signal curve, the difference distribution between each initial baseline signal and other initial signal baselines can be analyzed, and then the evaluation objective function corresponding to each initial baseline signal curve can be obtained.

[0074] First, for any initial baseline signal curve, the first evaluation coefficient of the initial baseline signal curve is obtained according to the difference distribution between the initial baseline signal curve and other initial baseline signal curves. That is, any initial baseline signal curve is recorded as the target curve, and other initial baseline signal curves except the target curve are recorded as reference curves of the target curve; for any reference curve, the tangent slopes of the corresponding points of the target curve and the reference curve at each time are obtained respectively.

[0075] The tangent slope of the corresponding point at each moment on the initial baseline signal curve can characterize the waveform trend of the signal curve at that point. The method for obtaining it is a well-known technology. In this embodiment, any initial baseline signal curve is taken as an example to illustrate, and the function model corresponding to the initial baseline signal curve is obtained, and the first-order derivative value of the function model at the corresponding point at each moment is calculated as the tangent slope of the initial baseline signal curve at the corresponding point at each moment.

[0076] The absolute value of the difference between the tangent slopes of the target curve and the reference curve at the same time is calculated, and the cumulative sum of all the absolute values ​​of the differences between the target curve and the reference curve is used as the difference coefficient of the reference curve; the difference coefficients of all reference curves of the target curve are accumulated to obtain the first evaluation coefficient of the target curve.

[0077] Then, according to the difference distribution between the initial baseline signal curve and all white noise signals, the second evaluation coefficient of the initial baseline signal curve is obtained; that is, the difference between the white noise signal at each moment and the signal of the target curve at the corresponding moment is calculated respectively, and the difference corresponding to each moment is curve fitted to obtain the baseline-removed signal curve corresponding to the target curve.

[0078] The baseline-free signal curve corresponding to the target curve represents the signal curve obtained after removing the baseline fitting result corresponding to the target curve from all the original white noise signals. The signal curve is the result of removing the baseline drift. According to the same method as the baseline-free signal curve corresponding to the target curve, the baseline-free signal curve corresponding to each initial baseline signal curve can be obtained.

[0079] The minimum value of the baseline-removed signal curve is obtained, and the skewness corresponding to the signal interval between each two adjacent minimum values ​​on the baseline-removed signal curve is calculated respectively, and the absolute value of the sum of the skewness corresponding to all the signal intervals on the baseline-removed signal curve is used as the second evaluation coefficient of the target curve. The signal interval between each two adjacent minimum values ​​on the baseline-removed signal curve represents each complete peak of the baseline-removed signal curve.

[0080] Finally, the sum of the normalized value of the first evaluation coefficient and the normalized value of the second evaluation coefficient is used as the evaluation objective function of the initial baseline signal curve.

[0081] In this embodiment, the u-th white noise signal data segment is taken as an example for explanation, the initial baseline signal curve corresponding to the u-th white noise signal data segment is recorded as the u-th initial baseline signal curve, and the u-th initial baseline signal curve is used as the target curve. Then, the calculation formula of the evaluation objective function of the u-th initial baseline signal curve, i.e., the target curve, can be expressed as:

[0082]

[0083] in, represents the value of the evaluation objective function of the u-th initial baseline signal curve, It represents the tangent slope of the u-th initial baseline signal curve at the corresponding point at the s-th time. represents the tangent slope of the t-th reference curve of the u-th initial baseline signal curve at the corresponding point at the s-th moment, M represents the number of reference curves corresponding to the u-th initial baseline signal curve, and N represents the number of all moments of collecting white noise signals in this embodiment. It represents the skewness of the vth signal interval on the baseline-removed signal curve corresponding to the uth initial baseline signal curve, represents the number of signal intervals contained in the baseline-removed signal curve corresponding to the u-th initial baseline signal curve, Norm() is a normalization function. In this embodiment, the maximum and minimum value normalization method is used for normalization processing, and the implementer can set it according to the specific implementation scenario.

[0084] is the difference coefficient of the t-th reference curve, reflecting the difference in waveform trend between the t-th reference curve and the u-th initial baseline signal curve. The larger its value, the greater the difference between the two.

[0085] is the first evaluation coefficient. The first evaluation coefficient evaluates the simulation effect of the u-th initial baseline signal curve from the aspect of waveform difference. The larger its value is, the greater the difference between the corresponding initial baseline signal curve and other initial baseline signal curves is, and the worse the simulation effect evaluation of the corresponding u-th initial baseline signal curve is, that is, the larger the value of the corresponding evaluation objective function is.

[0086] is the second evaluation coefficient, which evaluates the simulation effect of the u-th initial baseline signal curve from the waveform distribution of the baseline-removed signal curve obtained after removing the u-th initial baseline signal curve. The skewness of each signal interval reflects the degree of normal distribution of each peak on the baseline-removed signal curve. When the skewness is equal to 0, a single peak is normally distributed, that is, the smaller the value of the second evaluation coefficient, the more regular the waveform distribution of the baseline-removed signal curve corresponding to the u-th initial baseline signal curve, the better the simulation effect evaluation of the corresponding u-th initial baseline signal curve, and the smaller the value of the corresponding evaluation objective function.

[0087] According to the above calculation formula, the evaluation objective function of each initial baseline signal curve can be obtained, and the value of the evaluation objective function reflects the effect evaluation after removing the corresponding initial baseline signal curve from all the original white noise signals, that is, it represents the effect evaluation of the corresponding initial baseline signal curve simulated as the trend item of the baseline drift part, and then represents the effect evaluation of removing the trend item.

[0088] Step 4: determine the best baseline signal curve according to the evaluation objective function, and use the best baseline signal curve to adjust the white noise signal to obtain the white noise signal after the baseline drift is removed.

[0089] When the value of the evaluation objective function is larger, it means that the fitting effect of the corresponding initial baseline signal curve is worse, and the effect of removing the baseline drift of the original white noise signal based on the initial baseline signal curve is worse. When the value of the evaluation objective function is smaller, it means that the fitting effect of the corresponding initial baseline signal curve is better, and the effect of removing the baseline drift of the original white noise signal based on the initial baseline signal curve is better.

[0090] Based on this, the best baseline signal curve is determined according to the evaluation objective function, that is, the initial baseline signal curve corresponding to the minimum value of the evaluation objective function is recorded as the best baseline signal curve, that is, the best baseline signal curve is used as the trend item of the baseline drift with the best effect, and the collected initial signal is adjusted by using the trend item to obtain a better result of removing the baseline drift. Specifically, the difference between the white noise signal at each moment and the signal of the best baseline signal curve at the corresponding moment is calculated respectively to obtain the white noise signal after removing the baseline drift at each moment. In other embodiments, the signal amplitude of the best baseline signal curve can also be inverted and superimposed with the white noise signal to obtain the white noise signal after removing the baseline drift, and the implementer can process it according to the specific implementation scenario.

[0091] The method of the present invention screens the trend items of multiple baseline drifts fitted, obtains the best fitting result, and corrects the initial white noise signal to eliminate the baseline drift phenomenon to the maximum extent. It is understandable that the implementer can continuously obtain white noise signals in different time periods, continuously correct and output them, realize adaptive optimization processing of white noise signals, and enhance the user experience.

[0092] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A white noise data processing method for intelligent wooden toys, characterized in that: The method comprises the following steps: Collecting time series data of white noise signals of the intelligent wooden toy, and performing segmentation processing on all white noise signals to obtain at least two white noise signal data segments; Determine the number of fitting points corresponding to each white noise signal data segment according to the regularity of the signal waveform distribution of each white noise signal data segment; select the fitting points in each white noise signal data segment based on the number of fitting points, perform signal curve fitting respectively, and obtain at least two initial baseline signal curves; According to the difference between each initial baseline signal curve and other initial baseline signal curves, and the distribution of the difference between all white noise signals and each initial baseline signal curve, an evaluation objective function corresponding to each initial baseline signal curve is obtained; Determine an optimal baseline signal curve according to the evaluation objective function, and use the optimal baseline signal curve to adjust the white noise signal to obtain a white noise signal after removing the baseline drift; The step of determining the number of fitting points corresponding to each white noise signal data segment according to the regularity of the signal waveform distribution of each white noise signal data segment specifically includes: According to the regularity of the distribution of the signal waveform of each white noise signal data segment, the degree of fluctuation regularity of the white noise signal data segment is obtained; according to the degree of fluctuation regularity and the number of peaks and troughs on the signal waveform of each white noise signal data segment, the number of fitting points corresponding to each white noise signal data segment is determined; The step of obtaining the degree of fluctuation regularity of the white noise signal data segment according to the regularity of the distribution of the signal waveform of each white noise signal data segment specifically includes: For any white noise signal data segment, obtain the minimum value of all white noise signals in the white noise signal data segment, and form a signal sub-segment with the white noise signals between every two adjacent minimum values; Based on all white noise signals in each signal sub-segment, the kurtosis and skewness corresponding to each signal sub-segment are calculated respectively, the variance of the kurtosis of all signal sub-segments in the white noise signal data segment is calculated, and the variance of the skewness of all signal sub-segments in the white noise signal data segment is calculated, and the sum of the two variances is negatively correlated and normalized to obtain the degree of fluctuation regularity of the white noise signal data segment; Determining the number of fitting points corresponding to each white noise signal data segment according to the degree of fluctuation regularity and the number of peaks and troughs on the signal waveform of each white noise signal data segment specifically includes: For any white noise signal data segment, the degree of fluctuation regularity of the white noise signal data segment is normalized, the product of the normalized degree of fluctuation regularity and the number of signal sub-segments in the white noise signal data segment is calculated, and the product is rounded up to obtain the number of fitting points corresponding to the white noise signal data segment.

2. A white noise data processing method for intelligent wooden toys according to claim 1, characterized in that: The evaluation objective function corresponding to each initial baseline signal curve is obtained according to the difference between each initial baseline signal curve and other initial baseline signal curves, and the distribution of the difference between all white noise signals and each initial baseline signal curve, specifically including: For any initial baseline signal curve, obtaining a first evaluation coefficient of the initial baseline signal curve according to the difference distribution between the initial baseline signal curve and other initial baseline signal curves; Obtaining a second evaluation coefficient of the initial baseline signal curve according to a difference distribution between the initial baseline signal curve and all white noise signals; The sum of the normalized value of the first evaluation coefficient and the normalized value of the second evaluation coefficient is used as the evaluation target function of the initial baseline signal curve.

3. A white noise data processing method for intelligent wooden toys according to claim 2, characterized in that: The step of obtaining a first evaluation coefficient of the initial baseline signal curve according to the difference distribution between the initial baseline signal curve and other initial baseline signal curves specifically includes: Any initial baseline signal curve is recorded as a target curve, and other initial baseline signal curves except the target curve are recorded as reference curves of the target curve; For any reference curve, obtain the tangent slopes of the target curve and the reference curve at the corresponding points at each time respectively; calculate the absolute value of the difference between the tangent slopes of the target curve and the reference curve at the corresponding points at each same time, and take the cumulative sum of all the absolute values ​​of the differences between the target curve and the reference curve as the difference coefficient of the reference curve; The difference coefficients of all reference curves of the target curve are accumulated to obtain a first evaluation coefficient of the target curve.

4. A white noise data processing method for intelligent wooden toys according to claim 3, characterized in that: The step of obtaining a second evaluation coefficient of the initial baseline signal curve according to the difference distribution between the initial baseline signal curve and all white noise signals specifically includes: The difference between the white noise signal at each moment and the signal of the target curve at the corresponding moment is calculated respectively, and the difference corresponding to each moment is subjected to curve fitting to obtain the baseline-removed signal curve corresponding to the target curve; The minimum value of the baseline-removed signal curve is obtained, and the skewness corresponding to the signal interval between each two adjacent minimum values ​​on the baseline-removed signal curve is calculated respectively, and the absolute value of the sum of the skewnesses corresponding to all the signal intervals on the baseline-removed signal curve is used as the second evaluation coefficient of the target curve.

5. The white noise data processing method for intelligent wooden toys according to claim 1, characterized in that: The step of selecting the fitting points in each white noise signal data segment based on the number of fitting points and performing signal curve fitting respectively includes: For any white noise signal data segment, the extreme value points in the white noise signal data segment are obtained, and the white noise signal corresponding to the midpoint between each two adjacent extreme value points is used as the sampling point. The sampling points are obtained as the fitting points of the white noise signal data segment based on the number of fitting points in time sequence to perform signal curve fitting.

6. The white noise data processing method for smart wooden toys according to claim 1, characterized in that: The segmentation processing of all white noise signals to obtain at least two white noise signal data segments specifically includes: Starting from the initial signal acquisition moment, the white noise signal within the preset time length is obtained as the first white noise signal data segment. Starting from the second white noise signal data segment, the preset time length is increased according to the set step length until the preset time length reaches the preset maximum time length, and each white noise signal data segment is obtained in turn.

7. The white noise data processing method for intelligent wooden toys according to claim 1, characterized in that: The step of determining the best baseline signal curve according to the evaluation objective function, and adjusting the white noise signal using the best baseline signal curve to obtain the white noise signal after removing the baseline drift specifically includes: The initial baseline signal curve corresponding to the minimum value of the evaluation objective function is recorded as the optimal baseline signal curve. The difference between the white noise signal at each moment and the signal of the optimal baseline signal curve at the corresponding moment is calculated to obtain the white noise signal after removing the baseline drift at each moment.

Citation Information

Patent Citations

  • Method for defending inaudible instruction to control voice assistant based on machine learning

    CN108172224A

  • Friction coefficient prediction method and system based on multi-source friction information regression

    CN116858766A

  • Wavelet decomposition layer number determination method and system

    CN117763285A

  • Psychological stress identification method based on electroencephalogram and voice

    CN118370540A

  • Method for operating a GNSS receiver, with GNSS signal deselection

    US20190041528A1