A bearing diagnostic method, system, device, and medium
By performing four-band windowing and characteristic voltage scheduling on the bearing vibration signal, the problems of mismatched monitoring pairing and interruption of simulation parameters in bearing condition diagnosis were solved, and stable bearing condition diagnosis was achieved.
Patent Information
- Application Number
- CN202611683326.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-29
- Publication Date
- 2026-11-24
AI Technical Summary
In the existing technology, the frequency band characteristics of the bearing vibration signal and the target reference voltage are prone to mismatch in supervised pairing when the training items are switched. The simulation weights and bias states are easily interrupted when the categories are switched, which leads to instability in the bearing condition diagnosis process.
By dividing the bearing vibration signal in the same window into four preset frequency bands, a four-dimensional feature vector is formed, which is then converted into four analog feature voltages. The four analog feature voltages and the target reference voltage are scheduled according to a predetermined sequence to form training terms. Voltage is applied during a preset holding period, and a single output is obtained by using weight and bias calculations. The continuity of weight and bias is maintained when switching training terms.
In bearing condition diagnosis, the pairing relationship between the four feature inputs and the category supervision target is kept consistent, avoiding sample misalignment and parameter evolution interruption, and ensuring the stability and reliability of the diagnosis results.
Smart Images

Figure CN123155208A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of mechanical condition monitoring and fault diagnosis technology, specifically relating to a bearing diagnosis method, system, equipment and medium. Background Technology
[0002] Fault-related information in bearing vibration signals is distributed across multiple frequency ranges. To reduce input dimensionality and match limited hardware channels, existing technologies employ methods such as frequency band processing of vibration signals and extraction of frequency band amplitude features. For example, the root mean square value is calculated for the same signal window across multiple fixed frequency bands, compressing the time-domain segment into a fixed-dimensional feature vector. Another approach involves converting these frequency band features into analog voltages, generating a single output through analog multiplication and summation, and adjusting the analog weights online using the residual between the target voltage and the output, the product of the residual and the features, and an integral stage. These methods respectively provide implementation means for bearing state characterization and training from the perspectives of feature dimensionality reduction, analog forward computation, and online parameter adjustment.
[0003] However, in existing technologies, the mapping relationship between frequency band features and analog input, the pairing relationship between sample features and category supervision targets, and the state relationship of analog weights before and after category switching are usually determined by independent processing stages. When the four features and target voltages are switched separately, deviations in the correspondence between feature vectors and supervision targets are easily generated, causing the parameter update direction based on the product of residual and input to deviate from the current sample. When samples of different categories are interleaved into the same analog forward path, if the weights are reloaded or the integral state is cleared at the category switching point, the parameter evolution process across samples is interrupted, and the parameter state formed by the previous sample is difficult to continue to subsequent samples. The above situations result in a lack of consistent timing and state constraints between feature input, target encoding, and analog parameter updates under single-channel multi-level supervision, affecting the stable establishment of the supervision training relationship in the bearing condition diagnosis process. Summary of the Invention
[0004] The purpose of this invention is to provide a bearing diagnostic method, system, device, and medium to solve the problems of supervision pairing mismatch easily occurring when switching training items between four frequency band characteristics and target reference voltage, and the simulation state of shared weights and biases easily being interrupted when switching categories.
[0005] The present invention achieves the above objectives through the following technical solutions: Firstly, the present invention proposes a bearing diagnosis method, comprising: The bearing vibration signal is windowed, and the root mean square value of the same window is obtained through four preset frequency bands. The four-dimensional feature vector is constructed according to the frequency band order. The four-dimensional feature vector is mapped into four analog feature voltages using a fixed channel mapping, and the corresponding target reference voltage is determined according to the bearing state category of the current window. Training terms consisting of four analog characteristic voltages and a target reference voltage from the same sample are scheduled according to a predetermined sequence. During a preset holding period, the four analog characteristic voltages are applied to the four characteristic input terminals and the target reference voltage is applied to the target terminal. The voltage received from the four feature input terminals is used to calculate a single output with the same set of weights and biases. The weights and biases are updated with the residual between the single output and the target reference voltage. When switching training terms, the weights and biases updated by the previous training term are used as the starting state. The single output is compared with the target reference voltage of each category to determine the bearing condition category.
[0006] Preferably, the step of converting the four-dimensional feature vector into four analog feature voltages by fixed-channel mapping includes: For the root mean square values of the same category arranged in the original order, a moving average smoothing is performed on each frequency band. The smoothed four-dimensional features are then integerized to obtain four-dimensional integer features. The four components of the four-dimensional integer feature are written into the comparison registers of the four feature PWM channels in frequency band order, so that the four feature components maintain a fixed correspondence with the four feature input terminals. The first is obtained through the conversion relationship of each fixed voltage. j The characteristic voltage of the circuit is simulated, and the conversion relationship is as follows: ; in, q i , j For the first i The training item of the first j Integer features, A j , B j The first j The fixed gain and bias of the characteristic voltage conversion channel; the above characteristic order and conversion relationship remain unchanged between samples of each category.
[0007] Preferably, determining the corresponding target reference voltage based on the bearing state category of the current window includes: The target PWM comparison value for the current training item is determined based on the mapping relationship between the category and the target voltage. The target reference voltage is obtained through a target PWM voltage conversion channel independent of the four characteristic PWM channels; The target reference voltage is the expected level of the bearing state category to which the current window belongs on the single output, and different categories correspond to different target reference voltages; the target PWM comparison value and the comparison value of the four characteristic PWM channels are jointly determined by the same sample index and the same category identifier.
[0008] Preferably, the step of scheduling training terms consisting of four analog characteristic voltages and a target reference voltage from the same sample in a predetermined sequence includes: Save a fixed, shuffled sequence of categories, and read the training items sequentially according to the category sequence, advancing the sample index of each category independently; For each training item, based on the current category identifier and the current sample index of that category, four components are selected from the four-dimensional features of that category to determine the target reference voltage corresponding to that category; The four analog characteristic voltage setting values and the target reference voltage setting value of the current training item are submitted simultaneously by the same scheduling event, and the current training item is maintained during the preset holding period until the end of the period. After all types of samples have been traversed in one round, the sample indexes of each category are cleared to zero, while the current weights and biases are retained, and the next round begins. The same scheduling event is as follows: in one output submission, the four feature comparison values of the current training item are written into the comparison register of the four feature PWM channels, and the target comparison value is written into the comparison register of the target PWM channel, so that the four analog feature voltage setting values and the target reference voltage setting value are output as a pair of the same training item.
[0009] Preferably, the step of calculating a single output from the voltages received by the four feature input terminals using the same set of weights and biases, and updating the weights and biases with the residual between the single output and the target reference voltage, includes: The four analog characteristic voltages received by the four characteristic input terminals are multiplied by the corresponding weights of the four weights in the same set of weights that correspond one-to-one with the four characteristic input terminals to obtain four product signals. The four product signals are summed and the bias is added to obtain the single output; The residual is obtained by subtracting the single-channel output from the target reference voltage of the current training item; The residuals are multiplied by the four analog characteristic voltages respectively to form four weight update drivers, and the residuals are used as bias update drivers. The four weight update drivers are used to update the corresponding weights, and the bias update driver is used to update the bias, so that the updated weights and biases are fed back to the computation path that generates the single output.
[0010] Preferably, the four-way weight update driver and the bias update driver continuously update the weights and biases via their respective integration paths, including: The integration path includes an operational amplifier, an input resistor, and a feedback capacitor and a feedback resistor connected in parallel. The weight of the j-th path is... Update, the bias is based on renew; Where j is the channel number of the four feature input terminals, j=1,2,3,4. Let j be the weight of the j-th path. Let e be the bias, and e be the residual. Let j be the analog characteristic voltage of the j-th channel. Let be the equivalent update coefficient of the j-th path weight. The equivalent update coefficients are biased and include the multiplication ratio and the update path gain. Let be the equivalent leakage coefficient of the j-th path weight. The equivalent leakage coefficient is the bias, which is introduced by the feedback resistor; The feedback capacitor causes the weights and biases to accumulate continuously with the residual, and the feedback resistor causes the weights and biases to decay over time when the update drive is zero.
[0011] Preferably, comparing the single-channel output with each category of target reference voltage to determine the bearing condition category includes: The target reference voltages for each category are arranged in ascending order of voltage. The midpoint between two adjacent target reference voltages is taken as the discrimination boundary to obtain multiple discrimination intervals; Determine the discrimination interval into which the single output falls, and determine the category to which the target reference voltage corresponding to the discrimination interval belongs as the bearing state category; When the single output is located between adjacent discrimination boundaries, its category is interpreted according to the target reference voltage corresponding to that interval, and readings in the switching transient interval and those exceeding the normal range are excluded.
[0012] Secondly, the present invention proposes a bearing diagnostic system, comprising: The four-band feature generation module is used to window the bearing vibration signal. The root mean square value of the same window is obtained through four preset frequency bands, and a four-dimensional feature vector is formed according to the frequency band order. The voltage output module is used to convert the four-dimensional feature vector into four analog feature voltages by mapping them through a fixed channel, and to determine the corresponding target reference voltage according to the bearing state category to which the current window belongs; The scheduling module is used to schedule training terms consisting of four analog characteristic voltages and a target reference voltage of the same sample according to a predetermined sequence, and to apply the four analog characteristic voltages to the four characteristic input terminals and the target reference voltage to the target terminal within a preset holding period. The simulation training module is used to calculate a single output by the voltage received from the four feature input terminals and the same set of weights and biases, and to update the weights and biases with the residual between the single output and the target reference voltage. When switching training items, the weights and biases updated by the previous training item are used as the starting state. A diagnostic output module is used to compare the single output with target reference voltages of various categories to determine the bearing condition category.
[0013] Thirdly, the present invention provides a bearing diagnostic device, including a processor and a memory for storing executable instructions of the processor; The processor is configured to implement the bearing diagnosis method described above when executing the instructions.
[0014] Fourthly, the present invention provides a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the bearing diagnosis method described above.
[0015] The beneficial effects of this invention are as follows: 1. This invention constructs four analog feature voltages of the same sample and target reference voltage into the same training term and schedules them in a predetermined sequence. This ensures that the four feature inputs and the category supervision target maintain a definite pairing relationship before and after the training term switching, avoiding sample misalignment caused by the separate advancement of features and targets. At the same time, the four training terms share the same set of weights and biases, and the updated weights and biases of the previous training term are used as the starting state when switching training terms. This ensures that the analog parameters remain continuous during the category-interleaved input process, avoiding interruption of cross-sample parameter evolution due to reloading parameters by category or clearing the integral state.
[0016] 2. This invention constructs a four-dimensional feature vector from the four frequency band root mean square values within the same window, arranged in frequency band order, and converts them into four analog feature voltages via fixed-channel mapping. This ensures that the same frequency band corresponds to the same input terminal and voltage conversion relationship in each category of samples, thereby maintaining consistency between the physical meaning of the features and the scale of the analog input during category interleaving and multiple playback rounds. Regarding output interpretation, this invention determines the bearing condition category by comparing a single output with the target reference voltage for each category. This ensures that the supervisory relationship of the four types of samples acts on the same forward path and the same set of parameters, providing an executable discrimination basis for the output of bearing condition diagnosis results. Attached Figure Description
[0017] Figure 1This is a flowchart of a bearing diagnosis method in one embodiment of the present invention; Figure 2 This is a system block diagram of a bearing diagnostic system according to one embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the processing principle of sliding windowing, four-band filtering, RMS calculation, and feature matrix formation in one embodiment of the present invention. Figure 4 This is a schematic diagram of the floating-point RMS characteristic curves of six working condition files after four-band filtering and moving average processing in one embodiment of the present invention. Figure 5 This is a schematic diagram illustrating the principle of a single microcontroller completing sample reading, input and target pairing output, and full-round playback in one embodiment of the present invention. Figure 6 This is a schematic diagram of the principle of multiplying four features with shared weights, summing and superimposing biases, and simulating error feedback updates in one embodiment of the present invention; Figure 7 This is a schematic diagram showing the relationship between the PWM duty cycle and the target level encoding for four types of bearing states in one embodiment of the present invention; Figure 8 This is another system block diagram of the bearing diagnostic system in one embodiment of the present invention. Detailed Implementation
[0018] The following description provides specific application scenarios and requirements for this specification, intended to enable those skilled in the art to make and use the contents of this specification. Various partial modifications to the disclosed embodiments will be apparent to those skilled in the art, and the general principles defined herein can be applied to other embodiments and applications without departing from the spirit and scope of this specification. Therefore, this specification is not limited to the embodiments shown, but rather to the widest scope consistent with the claims.
[0019] The terminology used herein is for the purpose of describing particular exemplary embodiments only and is not restrictive. For example, unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “the” used herein may also include the plural forms. When used in this specification, the terms “comprising,” “including,” and / or “containing” mean that the associated integers, steps, operations, elements, and / or components are present, but do not exclude the presence of one or more other features, integers, steps, operations, elements, components, and / or groups, or that other features, integers, steps, operations, elements, components, and / or groups may be added to the system / method.
[0020] Considering the following description, these and other features of this specification, as well as the operation and function of the related components of the structure, and the economy of assembly and manufacture of the parts, can be significantly improved. All of these form part of this specification with reference to the accompanying drawings. However, it should be clearly understood that the drawings are for illustrative and descriptive purposes only and are not intended to limit the scope of this specification. It should also be understood that the drawings are not drawn to scale.
[0021] The flowcharts used in this specification illustrate operations implemented according to some embodiments of this specification. It should be clearly understood that the operations in the flowcharts may not be implemented in a sequential order. Instead, the operations may be implemented in reverse order or simultaneously. Furthermore, one or more additional operations may be added to the flowcharts. One or more operations may be removed from the flowcharts.
[0022] It is worth noting that the embodiments of this application can be applied to rotating machinery condition monitoring and fault diagnosis scenarios, especially suitable for condition data acquisition, simulation supervised training, and output level observation of brushless DC motor bearings. The application targets bearing vibration signals with category identifiers, including bearing condition categories such as normal state, outer ring fault state, and inner ring fault states with different fault sizes. The vibration signals can be acquired by vibration sensors installed in the bearing housing or at the motor end, and converted into digital sequences by a data acquisition device for subsequent windowing and feature extraction. It is understood that the embodiments of this application are not limited to brushless DC motor bearings, but can also be applied to vibration signal processing and condition diagnosis scenarios for other rotating machinery bearings, as long as the vibration signals can be divided into windows and have corresponding category identifiers.
[0023] Specifically, in this application embodiment, "four-band root mean square feature" means that the root mean square value is calculated for the same vibration window through four preset frequency bands, and a four-dimensional feature vector is constructed according to the frequency band order, so that the four frequency bands jointly describe the same vibration window, rather than corresponding to four different fault categories; "single-channel multi-level encoding" means that the four types of bearing states are categorized by different target reference voltages on a single output, and the four types of samples share the same set of weights and biases to generate a single output; "paired scheduling of training items and continuous inheritance of parameters" means that the four simulated feature voltages and target reference voltages of the same sample are applied in pairs as the same training item, and the updated weights and biases of the previous training item are used as the starting state when switching training items.
[0024] The technical solutions in this application will now be described with reference to the accompanying drawings.
[0025] Example 1 like Figure 1 As shown, this embodiment provides a bearing diagnosis method, including: S100: The bearing vibration signal is windowed, and the root mean square value of the same window is obtained through four preset frequency bands. The four-dimensional feature vector is constructed according to the frequency band order. S200: The four-dimensional feature vector is mapped into four analog feature voltages according to a fixed channel, and the corresponding target reference voltage is determined according to the bearing state category to which the current window belongs; S300: Schedule a training term consisting of four analog characteristic voltages and a target reference voltage of the same sample according to a predetermined sequence, and apply the four analog characteristic voltages to the four characteristic input terminals and the target reference voltage to the target terminal within a preset holding period; S400: The voltage received from the four feature input terminals is used to calculate a single output with the same set of weights and biases. The weights and biases are updated with the residual between the single output and the target reference voltage. When switching training terms, the weights and biases updated by the previous training term are used as the starting state. S500: Compare the single output with the target reference voltage of each category to determine the bearing condition category.
[0026] It is understood that in this embodiment, the root mean square values of the four frequency bands in the same window are treated as a whole to form a four-dimensional feature vector, so that the four frequency bands describe the same vibration window, rather than corresponding to four different fault categories. The four simulated feature voltages of the same sample and the target reference voltage are paired and scheduled as the same training term, so that there is a definite data correspondence between the target residual and the current four features. The four training terms share the same set of weights and biases, and inherit the parameter state updated by the previous training term when switching training terms.
[0027] like Figure 3 As shown, specifically, when windowing bearing vibration signals, the bearing vibration signals with category identifiers can be slid-windowed with the same length and step size, so that the same original window is processed by four preset frequency bands respectively. Figure 3 The processing principle of sliding windowing, four-band filtering, RMS calculation and feature matrix formation is shown: the same window signal is passed through the symmetrical mask of four frequency bands after FFT, and then the four filtered signals are obtained by IFFT. RMS1 to RMS4 are calculated respectively, and a four-dimensional feature matrix of 200×4 is formed in the order of frequency bands.
[0028] As an example, the actual sampling frequency of the original bearing vibration signal is 20kHz. A sliding window with a length of 800 sampling points and a movement step of 200 sampling points is used. The window duration is 40ms, the movement time is 10ms, and the overlap ratio is 75%. The first 200 windows of each working condition file are taken in the original order. Each file contains at least 40,600 sampling points, corresponding to 2.03s of original recording. The above windowing can be represented as: in, v c Indicate category c The original vibration discrete sequence, s c,k [ n ] indicates that the category is number k The first window n Each sample value; H The window movement step size, L Window length. Window number. k Starting from 1, the sampling index n From 0 to L -1. In this embodiment L =800、 H =200; 40 ms is the original data window length, and 500 ms is the subsequent feature playback hold time, which are not the same.
[0029] Figure 3 RMS1 to RMS4 correspond to the root mean square calculation branches of the four frequency bands, and the four branches use the same window signal, retaining only the different frequency components. Figure 3 The 200×4 matrix on the right represents 200 samples per class, with 4 frequency band features per sample. The column order of the matrix corresponds to the subsequent four feature input terminals X. 11 ~X 14 The order is consistent.
[0030] Furthermore, the four preset frequency bands are 100–250Hz, 250–500Hz, 500–1000Hz, and 1000–1950Hz, respectively. The same window is processed through these four frequency bands separately; each type of data passes through all four bands, rather than assigning only one band to each type. The four results constitute the four-dimensional input in the above order. Filtering is performed separately within each 800-point window: first, the FFT is calculated… f = m · f s / 800 confirmed the first m There are several frequency points, with a frequency interval of 25Hz; [the requirement is to] retain [the data]. f L ≤ f ≤ f H and f s - f H ≤ f ≤ f s - f LThe frequency components are set to zero, and the real part of the inverse FFT is taken as the filtered signal. The upper and lower boundaries of the frequency band are included, therefore the frequency points at 250, 500, and 1000 Hz are simultaneously counted in the two adjacent frequency bands. The above frequency domain processing can be expressed as: In the frequency domain formula above, S c,k [ m ] is a window signal s c,k [ n Discrete Fourier Transform; m For frequency index, f m = mf s / L For the frequency corresponding to this index, j ∈{1, 2, 3, 4} is the frequency band number. f L,j and f H,j The first j The lower and upper limits of the frequency band. H j [ m [A] is a symmetrical frequency domain mask that takes 1 in the positive frequency band and its mirror frequency band, and 0 in the remaining frequency points; z c,k,j [ n The signal is a real-valued signal obtained by mask filtering and inverse transformation. The exponent... ι Indicates the imaginary unit to distinguish it from the frequency band index. j Frequency resolution f s / L =25 Hz. This is a window-by-window FFT digital mask filter, which is not the same as the MAX261 analog filter.
[0031] Correspondingly, the RMS characteristics of this frequency band are: In the formula, r c,k,j Indicate category c The Middle k The window in the first j Unsmoothed root mean square characteristics of the frequency band z c,k,j [ n ] represents the first corresponding bandpass filtered signal n Each sample value, L=800 is the number of sampling points per window.
[0032] The four unsmoothed RMS features, ordered by frequency band, constitute the original four-dimensional feature vector of this window. A 15-point center-moving average is then applied to the 200 RMS values for each operating condition file and each frequency band: k Take the maximum (1, ...) position at each location. k -7) to min(200, k The mean is taken within a range of +7, and the average window is shortened at the boundaries. This process is performed independently within each file, and training items of different categories are organized after smoothing is completed. The 15-point smoothing formula is: in, a k =max(1, k -7) b k =min(200, k +7) represent the start and end window numbers of the moving average, respectively. The underlined values in the above formula... r This represents the smoothed RMS feature. r c,q,j Indicates the same category c , No. q The first window, the j Unsmoothed RMS value of the frequency band; q For the summation index, b k - a k +1 represents the actual number of windows involved in the averaging. Smoothing is performed only within the original sequential windows of the same type and frequency band.
[0033] Furthermore, such as Figure 4 As shown, Figure 4 The chart consists of four frequency band characteristic curves: Band1, Band2, Band3, and Band4. These curves represent the characteristic changes within the frequency ranges of 100–250 Hz, 250–500 Hz, 500–1000 Hz, and 1000–1950 Hz, respectively, after root mean square (RMS) calculation and 15-point moving average processing. Each sub-chart contains 200 consecutive window features from six operating condition files: N1, N2, W1, W2, W3, and ZC. The horizontal axis represents the sample number after being stitched together in file order, and the vertical axis represents the RMS characteristic value of the corresponding frequency band. In the figure, N1, N2, W1, W2, W3 and ZC correspond to sample numbers 1-200, 201-400, 401-600, 601-800, 801-1000 and 1001-1200 respectively; the different colored line segments are used to distinguish different working conditions and do not represent the six states of the same continuous collection record.
[0034] As an example, combined Figure 4 The Band1 curve in the upper left corner shows that within the 100–250 Hz frequency band, the RMS value of the N1 data segment is relatively high, and the W1 and W2 data segments also exhibit significant band energy characteristics. The N2 and W3 data segments are relatively low, and the characteristic value of the ZC normal state data segment is small. This sub-plot reflects that the first frequency band provides some distinguishing information for different operating conditions. However, the characteristic ranges of some fault conditions may still be similar, therefore, the bearing condition is not determined solely by Band1.
[0035] Further integration Figure 4 The Band 2 curve in the upper right corner shows that within the 250–500 Hz frequency band, the data segments N1, W1, and W2 still exhibit relatively high RMS levels, while the data segments N2 and W3 show relatively lower levels. The ZC data segment is located in the lower amplitude region. Compared to Band 1, the relative amplitude and fluctuation patterns of different operating conditions in this frequency band have changed. Therefore, the second frequency band provides another independent set of frequency range characteristics for the same vibration window, rather than repeating the values of the first frequency band.
[0036] like Figure 4 As shown in the Band3 curve at the bottom left, within the 500–1000 Hz frequency band, the N1 data segment still exhibits a relatively high RMS level. The W1, W2, N2, and W3 data segments each have their own amplitude ranges and local fluctuations, while the ZC normal state data segment is relatively low. Compared with the Band1 and Band2 curves, the relative amplitude relationship changes in some operating conditions, indicating that the vibration energy distribution reflected in different frequency bands is not entirely the same. Therefore, in this embodiment, the third RMS component corresponding to Band3 is retained for subsequent four-dimensional feature construction.
[0037] like Figure 4 As shown in the Band4 curve at the bottom right, within the 1000–1950 Hz frequency band, the RMS amplitude ranges of the six curves N1, W1, W2, N2, W3, and ZC still differ: the N1 data segment is relatively high, the W1 and W2 data segments are in the mid-to-high amplitude range, the N2 data segment is in the middle, the W3 data segment is relatively low, and the ZC data segment is in the low amplitude range. Band4 reflects the vibration components in the higher frequency range and can complement the first three frequency bands. Figure 4 Each subgraph represents a smoothed floating-point RMS value, which is not yet an integer value written to the PWM compare register. In this embodiment, the four features of the same window are further integerized in a fixed order from Band1 to Band4 to form a four-dimensional input, instead of directly claiming classification accuracy based on a single frequency band curve or visual differences in the graph.
[0038] Furthermore, the smoothed four-dimensional RMS features are rounded element by element to obtain integer features. Each type forms a 200×4 integer feature matrix, with the four columns of the matrix always corresponding one-to-one with the four fixed frequency bands; in this embodiment, the feature is exported using a C language int16_t two-dimensional array, and the controller plays according to the valid PWM comparison value range.
[0039] In the following integerization formula, q c,k,j This represents the integer characteristic obtained by rounding the smoothed RMS value. F c For this category, the 200×4 integer feature matrix, its i-th k Line by j =1 to 4 represent four integer features in sequence. The 4 in the matrix indicates the dimension of the frequency band features, not four independent training networks.
[0040] In a preferred embodiment, the four components of the four-dimensional integer feature are written into the comparison registers of the four feature PWM channels in frequency band order, so that the four feature components maintain a fixed correspondence with the four feature input terminals; the first component is obtained through the fixed voltage conversion relationship of each channel. j Circuit simulation characteristic voltage: in, q i , j For the first i The training item of the first j Integer features, A j , B j The first j The fixed gain and bias of the characteristic voltage conversion channel; the above characteristic order and conversion relationship remain unchanged between samples of each category.
[0041] like Figure 7 As shown, the four bearing states correspond to different target PWM duty cycles and target levels: ZC corresponds to a CCR of 50, a duty cycle of 50%, and a target of 2.5V; W3 corresponds to a CCR of 60, a duty cycle of 60%, and a target of 3V; N2 corresponds to a CCR of 80, a duty cycle of 80%, and a target of 4V; and N1 corresponds to a CCR of 100, a duty cycle of 100%, and a target of 5V. Figure 7 The rectangular wave in the diagram only indicates the high and low level time ratios of different duty cycles; 100% duty cycle corresponds to a continuous high level; after conversion to a 5V full-scale voltage, the reference voltages for each target are obtained.
[0042] As an example, the controller is an STM32F103C8. The four characteristic PWM channels use CH1-CH4 and PA8, PA9, PA10, and PA11 of TIM1, which are then converted and connected to X11-X14. The target PWM channel uses CH2 and PA1 of TIM2, which are then converted and connected to... y _tar1. The timer uses up-counting, PWM mode 1, and active-high output. The prescaler register is 71, the period register is 99, it is configured with a 72MHz timer clock, the PWM frequency is 10kHz, and the period is 100. μs Duty cycle D = C CR / 100. In this embodiment, the external voltage is converted to 5V as the full-scale value, and the target voltage is... V tar =5V× D The characteristic integer is written directly to the comparison register, and the playback program no longer scales or normalizes it.
[0043] Figure 5 This demonstrates the principle of a single microcontroller completing sample reading, input-target pairing, output, and full-round playback: Four feature arrays, class0, class1, class4, and class5, each 200×4, are used. Samples are read in a shuffled order to determine the current sample category and retrieve the four-dimensional features of the next sample in that category, matching it with the corresponding target voltage. The four-dimensional features are converted into four feature voltages X11 to X14 via TIM1 CH1~CH4 and PA8~PA11. The target category is converted into a target voltage via TIM2 CH2 / PA1. y _tar1 outputs the four-dimensional features of each sample paired with the target voltage, and switches to the next sample after a preset period of 500ms.
[0044] Understandably, the aforementioned fixed channel mapping ensures that the four frequency band values have the same physical port meaning across different categories, guaranteeing that the same frequency band always operates on the same forward multiplication branch. This avoids changes in input port meaning and analog gain rules caused by category switching. Therefore, integerization and PWM conversion connect the offline feature array to the actual analog input, and the physical meaning of the features remains unchanged during category interleaving and multiple playback cycles.
[0045] In the mathematical expression for training item scheduling, T i This indicates the number of rounds in this round. i One training item, i This is the playback position for this round. c i This indicates the category to which the location was scheduled. k iThis refers to the in-class sample sequence number used in this round. Q ci ( k i ,:) indicates the entire line feature read in four frequency bands sequentially. g ( c i This indicates a fixed mapping from category to target reference voltage. The same ( c i , k i The current four characteristic voltages and target voltages must be determined together; the four characteristic channels and the target channel are only used as a group during the same training term hold period, and digital register submission does not mean that each analog output reaches stability at a strictly simultaneous moment.
[0046] Specifically, when determining the target reference voltage based on the bearing state category of the current window, the target PWM comparison value of the current training item is determined according to the mapping relationship between the category and the target voltage. The target reference voltage is then obtained through a target PWM voltage conversion channel independent of the four feature PWM channels. The target reference voltage is the expected level of the bearing state category of the current window on a single output channel; different categories correspond to different target reference voltages. The target PWM comparison value and the comparison values of the four feature PWM channels are jointly determined by the same sample index and the same category identifier.
[0047] As an example, the four types of bearing data represent normal condition data, outer ring fault condition data, and inner ring fault condition data for two different fault sizes. The normal condition ZC corresponds to 2.5V, the outer ring fault condition W3 corresponds to 3V, the first type of inner ring fault condition N2 corresponds to 4V, and the second type of inner ring fault condition N1 corresponds to 5V. The target voltage is the category code value. Corresponding to CCR values of 50, 60, 80, and 100, the targets are 2.5V, 3V, 4V, and 5V, respectively. It is understandable that different target voltages are used for category coding, and the magnitude of the target voltage does not infer the degree of fault. For example, the target for N1 is 5V, while the target for N2 is 4V.
[0048] Furthermore, when scheduling training terms consisting of four analog characteristic voltages and a target reference voltage of the same sample according to a predetermined sequence, a preset category interleaving sequence is saved, and training terms are read sequentially according to the category interleaving sequence, with each category independently advancing its sample index; for each training term, based on the current category identifier and the current sample index of that category, four components are selected from the four-dimensional features of that category to determine the target reference voltage corresponding to that category; the four analog characteristic voltage settings and the target reference voltage settings of the current training term are submitted simultaneously by the same scheduling event, and the current training term is maintained within a preset holding period until the end of that period; after all types of samples have been read in one round, the sample indexes of each category are reset and the current weights and biases are retained, and the next round begins.
[0049] Figure 5 It also shows the playback sequence of inputting 800 samples in each round, 200 of each class, and returning to the first sample after the 800th sample is input to start the next round; Figure 5 The numbers below, "1st, 2nd... 800th", indicate the position of the current playback. Samples in the same column have the same features and target voltage as the same training item.
[0050] Specifically, the same scheduling event is as follows: in one output submission, the four feature comparison values of the current training item are written into the comparison register of the four feature PWM channels, and the target comparison value is written into the comparison register of the target PWM channel, so that the four analog feature voltage setting values and the target reference voltage setting value are output as a pair of the same training item.
[0051] As an example, the STM32 program stores a fixed shuffled sequence of class_order
[800] , where class codes 0, 1, 4, and 5 each appear 200 times. The program reads the class at each position sequentially, then retrieves the next row of four-dimensional data from the feature array of that class, and only increments the sample index of that class. Each class uses exactly 200 rows of indices 0 to 199 in one round, and the four classes of samples are input alternately. After the 800th sample completes the preset holding period, all class indices are cleared to zero, the first sample is returned, and the next round begins. Each round uses the same shuffled sequence. Let the 800th sample be the class of class 0. i The categories of each playback position are , The value is {0, 1, 4, 5}. This represents the cumulative number of times this category has appeared from the start of this round to the current position. ; in, This is the playback sequence number of the current training item within the current round of 800 positions; For the first The category label for each location scheduling (values 0, 1, 4, 5) is uniquely determined by a fixed shuffled sequence; For the summation index, This is an indicator function (1 for the same category, 0 otherwise). For the current category up to the [number]th The cumulative number of occurrences at each position is the in-class sample index (values range from 1 to 200). Each class progresses independently without interference. For category The 200×4 integer feature matrix, Take the first element of the matrix. The four-dimensional features of the row; A fixed mapping from category to target reference voltage; The training term consists of pairs of four-dimensional features of the current sample and the target voltage of the corresponding category. The features and targets are submitted by the same scheduling event and maintained as a pair within a preset holding period.
[0052] Figure 5 The "Read samples in shuffled order" branch and the "Four-dimensional features → Four-way CCR" and "Category → Target CCR" branches are uniformly scheduled under the same training term, so that the four-dimensional features and target voltage are output as a pair as the same training term.
[0053] In the forward operation formula, u j ( t ) indicates the first j The characteristic input voltage of the circuit, a j ( t () represents the equivalent dimensionless weight that includes the multiplier scale and the summation stage proportion. b ( t () represents the equivalent output bias voltage. y 1( t This refers to the single-channel output voltage. The physical weighting terminal voltage... w j With equivalent weight a j There are gain and scaling conversions between them, and they should not be confused as the same physical quantity; for AD633, the nominal multiplier scaling voltage is 10 V.
[0054] As an example, a preset hold period of 500ms is executed after each training item outputs. After the 800th training item is completed, the process returns to the first training item to start the next round. The total explicit delay per round is 400ms. sThe actual single-round time also includes program overhead such as display and register updates. Resetting the playback index by the controller does not equate to clearing the analog weights and biases. Since TIM1 and TIM2 run separately, there is an actual delay in PWM register loading and voltage conversion; therefore, this implementation does not recommend that their analog edges arrive strictly simultaneously. By maintaining the same voltage setting value for the same training item until the preset holding period of that item ends, it avoids actively inserting other categories of data within a single item. If training output is collected, the brief intervals after switching that have not yet stabilized should be excluded.
[0055] In a preferred embodiment, the voltages received from the four feature input terminals are processed with the same set of weights and biases to obtain a single output. The weights and biases are updated using the residual between the single output and the target reference voltage. This includes: multiplying the four analog feature voltages received from the four feature input terminals by the corresponding weights of the four weights in the same set that correspond one-to-one with the four feature input terminals to obtain four product signals; summing the four product signals and superimposing the bias to obtain a single output; subtracting the single output from the target reference voltage of the current training term to obtain a residual; multiplying the residual by the four analog feature voltages to form four weight update drivers, and using the residual as a bias update driver; wherein the four weight update drivers are used to update the corresponding weights, and the bias update driver is used to update the bias, so that the updated weights and biases are fed back to the computation path that generates the single output.
[0056] Specifically, such as Figure 6 As shown, the four training terms reuse the same set of four simulated weights and one bias. The four multiplication nodes calculate the product of a feature voltage and a weight voltage for the current sample, respectively. The summing node and its surrounding resistor network combine the four contributions, and then the bias is superimposed to obtain a single output. In the formula, u j This refers to the actual characteristic voltages of terminals X11 to X14. a j For equivalent weights, b This is the equivalent output bias. The following formula applies to the physical weighted terminal voltage. w j Physical bias terminal voltage v b Converted to equivalent parameters.
[0057] in, G j and G b For the signed voltage gain of each branch, V s This is the multiplier scaling voltage (AD633 nominal 10 V).w j , v b The terminal voltage is a physical parameter. a j Dimensionless u j , b and y All values are in volts; the polarity and gain of the complete circuit should be verified according to the actual resistance connection.
[0058] Figure 6 This illustrates the principle of multiplying four features with shared weights, summing and superimposing biases, and updating with simulated error feedback: X11 to X14 respectively receive... u 1~ u 4, with w 1~ w The 4-fold multiplication is then merged into the summation node, with the bias added. b get y 1; y 1. With the target end y Target voltage of _tar1 d Obtained through error calculation e = d - y 1; Error e The error is generated by multiplying the four inputs respectively to form the weight update driver. e This itself forms a bias update driver, which, after capacitor feedback and leakage update, is fed back to the shared parameter feedback line. w 1~ w 4 and b . Figure 6 The second set of feature inputs X21 to X24 are set to zero.
[0059] Correspondingly, the error signal is generated by the difference between the target voltage and the single-channel output: In the error signal formula, d ( t ) indicates the target end y _tar1 at time t The target voltage, y 1( t This indicates the single-channel output voltage at that moment. e ( t )= d ( t )- y 1( t To monitor the residuals, the number of inversions and polarities of the actual simulation error level must be matched with the entire feedback loop.
[0060] The target reference voltage here is only used for monitoring error calculation and is not directly added to the forward summation output; the number of inversions of the analog error level should ensure that the entire parameter update loop forms correct negative feedback.
[0061] Define the instantaneous squared error and find its negative gradient with respect to the parameters under the equivalent linear model: In the formulas for instantaneous squared error and negative gradient, L ( t ) represents the instantaneous squared error of the current sample. e The residual between the target and the forward output. a j Forward equivalent weights, u j For the corresponding input voltage, b This is an equivalent bias. Therefore, for a j The negative gradient is eu j ,right b The negative gradient is e This is a mathematical interpretation of the linear equivalent model and does not imply performing digital backpropagation in a microcontroller.
[0062] The negative gradient relationship indicates that the weight update driver is formed by multiplying the supervisory residual with the corresponding characteristic voltage, while the bias update driver is directly formed by the supervisory residual. Specifically, the four weight update signals are processed through corresponding multiplication, buffering, and lossy integral feedback branches to form four parameter terminal voltages, and the bias update signal is processed through its independent feedback branch to form the bias terminal voltage; the obtained parameters are fed back to the forward multiplication terminal and the bias terminal, respectively. This process is used to illustrate the functional relationship of the circuit; the actual gain and feedback polarity are still based on the circuit connection.
[0063] In the cross-training term state formula, t i To switch to the i Each training session, θ ( t Let be a state vector consisting of four equivalent weights and one bias. Under ideal no-reset conditions, the parameter states are continuous before and after the switch, but this does not mean that the parameters will not be updated during the hold period.
[0064] Furthermore, the four-way weight update driver and bias update driver continuously adjust parameters through their respective lossy integration paths. Each integration path includes an operational amplifier, an input resistor, and parallel feedback capacitors and feedback resistors. j The continuous-time variation equation of the equivalent weight of the road is: Correspondingly, the continuous-time variation equation of the equivalent bias is: Where j is the channel number of the four feature input terminals, j=1,2,3,4. Let j be the weight of the j-th path. Here, e is the bias, and e is the residual. Let j be the analog characteristic voltage of the j-th channel. Let be the equivalent update coefficient of the j-th path weight. The equivalent update coefficients are for the bias, and these coefficients include the multiplication ratio and the update path gain. Let be the equivalent leakage coefficient of the j-th path weight. The equivalent leakage coefficient is the bias, which is introduced by the feedback resistor.
[0065] Figure 6 The shared parameter feedback line indicates that all five parameters come from their respective update branches, and does not imply an electrical short circuit between the four weight terminals and the bias terminals; the weight update driver after multiplying the error by the input and the bias update driver of the error itself are formed through their respective capacitor feedback and leakage branches. w 1~ w 4 and b The continuous state.
[0066] Specifically, the transitivity of a single integrator is as follows: in, R f The feedback resistor is connected in parallel with the feedback capacitor. R in The input resistor for this integrating stage, C This refers to the feedback capacitor. This formula describes the transfer function of a single inverting integrator stage, not the entire system. The nominal values of the five feedback capacitors C6, C22, C23, C24, and C25 shown in the schematic are 100 μF, and the nominal values of the parallel feedback resistors R2, R27, R50, R76, and R86 are 10 kΩ. The time constant of a single stage is 1 s, and its actual training dynamics are further affected by the gains of the preceding and following stages and the input.
[0067] In the corresponding time-domain formula, v ( t () represents the output voltage of the integrating stage. v in ( t The input drive voltage is denoted by . The feedback capacitor corresponds to the continuous state accumulation, and the parallel resistor introduces leakage; when the input drive is zero, the integral state may still decay over time.
[0068] As an example, let ti Indicates switching to the first i Each training item at a time, θ ( t Let ) represent a state vector consisting of four equivalent weights and one equivalent bias. Then, the parameter states before and after the switch satisfy the following relationship: θ(t i + ) = θ(t i - ) θ(t) = [a 1 (t), a 2 (t), a 3 (t), a 4 (t), b(t)] T in, t i - , t i + They represent the first i The above relationship represents the instant before and after a training term switch. It indicates that the parameter state is continuous at the moment of switch without active reset or reloading of parameters, but does not mean that the parameters are not updated during the training term retention period.
[0069] Therefore, during the switch, the four inputs and their corresponding targets are changed first, while the existing parameters continue to participate in the next calculation. This continued parameter updating means that training involves state accumulation across samples, rather than the controller directly writing four sets of preset weights according to category.
[0070] In a preferred embodiment, the single-channel output is compared with target reference voltages of various categories to determine the bearing condition category. This includes: arranging the target reference voltages of each category in ascending order of voltage; taking the midpoint of two adjacent target reference voltages as a discrimination boundary to obtain multiple discrimination intervals; determining the discrimination interval into which the single-channel output falls, and identifying the category of the target reference voltage corresponding to that discrimination interval as the bearing condition category; wherein, when the single-channel output is located between adjacent discrimination boundaries, its category is interpreted according to the target reference voltage corresponding to that interval, and readings in transient switching intervals and those exceeding the normal range are excluded. Specifically, the four target voltage levels are arranged in ascending order of voltage as follows: v 1 = 2.5 V v 2=3 V、 v 3=4 V、 v 4 = 5 V, the midpoint of adjacent target levels forms the discrimination boundary: The above boundaries are 2.75V, 3.5V, and 4.5V, respectively. When interpreting valid outputs based on the nearest target level, the following convention can be used: y <2.75 V corresponds to ZC, 2.75 V≤ y <3.5 V corresponds to W3, 3.5 V≤ y <4.5 V corresponds to N2, y ≥4.5 V corresponds to N1. Values equal to the boundary are categorized according to the fixed rules described above; readings exceeding the normal operating range, starting, or saturation are excluded first. It is understood that this rule explains how the output voltage corresponds to a category and does not imply that a threshold comparator or decoding circuit is currently installed on the board. The adjacent intervals between the four target levels are 0.5V, 1V, and 1V. If the absolute error of a valid reading relative to its target is less than 0.25V, then the reading will not cross the nearest category boundary; 0.25V is a sufficient error bound calculated based on the encoding interval, not the accuracy measured in this embodiment.
[0071] Figure 7 The diagram illustrates the relationship between the PWM duty cycle and the target level encoding for four bearing states. The four target levels (2.5V, 3V, 4V, 5V) are arranged in ascending order, and the adjacent midpoints (2.75V, 3.5V, 4.5V) represent the target levels. Figure 7 The discrimination boundary between each target level; Figure 7 This describes the correspondence between the target code and the discrimination boundary, but does not indicate that a threshold comparator is installed on the current board.
[0072] Example 2 like Figure 2 As shown, this embodiment provides a bearing diagnostic system, including: The four-band feature generation module is used to window the bearing vibration signal. The root mean square value of the same window is obtained through four preset frequency bands, and a four-dimensional feature vector is formed according to the frequency band order. The voltage output module is used to convert the four-dimensional feature vector into four analog feature voltages by mapping them through a fixed channel, and to determine the corresponding target reference voltage according to the bearing state category to which the current window belongs; The scheduling module is used to schedule training terms consisting of four analog characteristic voltages and a target reference voltage of the same sample according to a predetermined sequence, and to apply the four analog characteristic voltages to the four characteristic input terminals and the target reference voltage to the target terminal within a preset holding period. The simulation training module is used to calculate a single output by the voltage received from the four feature input terminals and the same set of weights and biases, and to update the weights and biases with the residual between the single output and the target reference voltage. When switching training items, the weights and biases updated by the previous training item are used as the starting state. A diagnostic output module is used to compare the single output with target reference voltages of various categories to determine the bearing condition category.
[0073] Specifically, the four-band feature generation module completes record reading, sliding windowing, frequency domain filtering, RMS calculation, column-wise moving average, and integerization, outputting four 200×4 feature matrices; one row of the matrix serves as the complete four-dimensional input for one playback, and the column order corresponds to X. 11 ~X 14 To maintain consistency, the voltage output module stores four sets of feature matrices, a fixed shuffled category sequence, various independent indices, and a target mapping table. A single scheduling operation simultaneously determines the four features and one target for the current sample; the four feature PWM channels are connected to X via their respective conversion channels. 11 ~X 14 An independent target PWM is connected via a conversion channel. y _tar1, simulation board X 21 ~X 24 Connect to zero potential. In the simulation training module, four analog multipliers each receive a characteristic voltage and its corresponding weighted voltage, which are then summed, amplified, and biased to obtain a single output. The four types of samples share the above multipliers, summing nodes, and parameter states; no separate forward model is set up for each category. The diagnostic output module leads out the single output through the observation interface, and the category is determined according to the midpoint of adjacent target levels.
[0074] As an example, Figure 8 The diagram illustrates a specific physical implementation of the system described in Embodiment 2, namely, a bearing state simulation training system architecture with a single set of four-dimensional inputs and four-level encoding. The diagram is divided along the signal flow into four functional areas: ① vibration data and offline four-band feature processing; ② unified microcontroller scheduling and PWM voltage output; ③ single-set analog forward computation and feedback training; and ④ single-channel output category level representation. Area ① generates four-dimensional data; area ② converts the data and category targets into paired analog voltages; area ③ forms the training output and performs error feedback under shared parameter conditions; and area ④ displays the four category target levels corresponding to the single-channel output. These areas are sequentially connected to form the same training scheme, and are not four independent classifiers.
[0075] Specifically, such as Figure 8As shown in region ①, the four types of bearing records used for training are ZC, W3, N2, and N1, with a sampling frequency of 20 kHz. An 800-point window and a 200-point sliding step are used, with the first 200 windows for each type. Each window is processed through four frequency bands: 100–250 Hz, 250–500 Hz, 500–1000 Hz, and 1000–1950 Hz, and the RMS is calculated. Then, a 15-point moving average is applied to each feature column for each type, forming a 200×4 feature matrix for each type. The four frequency band processing branches in the figure extract the RMS components of different frequency bands in parallel for the same window. Figure 3 The four-band processing principle and Figure 4 The Band1 to Band4 curves correspond to each other.
[0076] Furthermore, such as Figure 8 As shown in area ②, the microcontroller stores four sets of feature arrays and the mapping relationship between categories and target voltages. A fixed shuffled sequence containing 800 training positions is used, with 200 samples used for each category in one round, and a sample index for each category is maintained. After reading the current category and its four-dimensional features, the controller writes the four feature components into the PWM channels corresponding to TIM1 CH1~CH4, and applies them to X11~X14 via voltage conversion. Simultaneously, it determines the target comparison value based on the current category, and generates the target voltage through the independent PWM channel corresponding to TIM2 CH2 / PA1 and voltage conversion. The four feature channels and one target channel belong to the same training term and maintain the set value within the preset 500 ms hold period of that term. This pairing relationship does not mean that the analog voltages of different PWM channels are physically absolutely synchronized and stable.
[0077] like Figure 8 As shown in region ③, X11 to X14 are respectively entered into the four weighted operation branches, multiplied with the corresponding weights of the same group, summed and superimposed with the bias to obtain the single-path training output. y 1; Target input in the diagram y The target voltage represented by _tar1 d With output y Subtracting 1 gives the error. e The error is multiplied by the four characteristic voltages to form the weight update driver, and the error itself serves as the bias update driver. This, along with corresponding capacitor feedback and leakage branches, generates continuous changes in shared weights and biases. The zeroing of X21 to X24 in the figure represents the input conditions for this single-group training implementation. "Parameter feedback" indicates that each update branch calculates the feedback parameters to the forward branch, and does not mean that multiple parameter terminals are directly shorted.
[0078] As an example, such as Figure 8As shown in area ④, the single-channel output uses four target voltage levels to represent the bearing status: ZC normal state corresponds to 2.5V, W3 outer race fault corresponds to 3V, N2 inner race fault corresponds to 4V, and N1 inner race fault corresponds to 5V. These voltages are the supervision targets set for the corresponding categories during the training phase; the magnitude of each voltage level is not used to directly rank the severity of the fault. When subsequently judging the unlabeled state of unknown samples, it is still necessary to perform voltage level discrimination based on the trained parameter states and the single-channel effective output. Figure 8 In this embodiment, the four functional areas are aligned on the same signal chain, enabling four-band input, unified pairing scheduling, shared parameter feedback, and category level representation.
[0079] Those skilled in the art will understand that the above combination Figure 8 The hardware topology description provided is only for illustrating the specific implementation of each functional module of the system in Embodiment 2. The system architecture of this invention is not limited to this. Figure 8 Any equivalent hardware replacement that can achieve the functions of the above modules, as shown in the specific circuit connection configuration, should fall within the protection scope of this invention.
[0080] In this embodiment, feature extraction can be completed offline in MATLAB. The controller is responsible for feature and target playback, while the simulation board is responsible for forward computation and feedback training. Therefore, feature processing, digital playback, and simulation training constitute a well-defined process. The use of the simulation training path does not mean that the entire process from the original vibration signal to the diagnostic output is implemented by analog devices.
[0081] This embodiment provides a bearing diagnostic device, including a processor and a memory for storing executable instructions of the processor; wherein the processor is configured to implement the above-described bearing diagnostic method when executing the instructions.
[0082] This embodiment provides a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the above-described bearing diagnosis method.
[0083] The embodiments described above are merely examples of several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention.
Claims
1. A bearing diagnostic method, characterized in that, include: The bearing vibration signal is windowed, and the root mean square value of the same window is obtained through four preset frequency bands. The four-dimensional feature vector is constructed according to the frequency band order. The four-dimensional feature vector is mapped into four analog feature voltages using a fixed channel mapping, and the corresponding target reference voltage is determined according to the bearing state category of the current window. Training terms consisting of four analog characteristic voltages and a target reference voltage from the same sample are scheduled according to a predetermined sequence. During a preset holding period, the four analog characteristic voltages are applied to the four characteristic input terminals and the target reference voltage is applied to the target terminal. The voltage received from the four feature input terminals is used to calculate a single output with the same set of weights and biases. The weights and biases are updated with the residual between the single output and the target reference voltage. When switching training terms, the weights and biases updated by the previous training term are used as the starting state. The single output is compared with the target reference voltage of each category to determine the bearing condition category.
2. The bearing diagnostic method according to claim 1, characterized in that, The step of converting the four-dimensional feature vector into four analog feature voltages by mapping it to a fixed channel includes: For the root mean square values of the same category arranged in the original order, a moving average smoothing is performed on each frequency band. The smoothed four-dimensional features are then integerized to obtain four-dimensional integer features. The four components of the four-dimensional integer feature are written into the comparison registers of the four feature PWM channels in frequency band order, so that the four feature components maintain a fixed correspondence with the four feature input terminals. The first is obtained through the conversion relationship of each fixed voltage. j The characteristic voltage of the circuit is simulated, and the conversion relationship is as follows: ; in, q i , j For the first i The training item of the first j Integer features, A j , B j The first j The fixed gain and bias of the characteristic voltage conversion channel; the above characteristic order and conversion relationship remain unchanged between samples of each category.
3. The bearing diagnostic method according to claim 1, characterized in that, The step of determining the corresponding target reference voltage based on the bearing status category of the current window includes: The target PWM comparison value for the current training item is determined based on the mapping relationship between the category and the target voltage. The target reference voltage is obtained through a target PWM voltage conversion channel independent of the four characteristic PWM channels; The target reference voltage is the expected level of the bearing state category to which the current window belongs on the single output, and different categories correspond to different target reference voltages; the target PWM comparison value and the comparison value of the four characteristic PWM channels are jointly determined by the same sample index and the same category identifier.
4. The bearing diagnostic method according to claim 1, characterized in that, The training term, which is composed of four simulated characteristic voltages and a target reference voltage from the same sample, is scheduled in a predetermined sequence, including: Save a fixed, shuffled sequence of categories, and read the training items sequentially according to the category sequence, advancing the sample index of each category independently; For each training item, based on the current category identifier and the current sample index of that category, four components are selected from the four-dimensional features of that category to determine the target reference voltage corresponding to that category; The four analog characteristic voltage setting values and the target reference voltage setting value of the current training item are submitted simultaneously by the same scheduling event, and the current training item is maintained during the preset holding period until the end of the period. After all types of samples have been traversed in one round, the sample indexes of each category are cleared to zero, while the current weights and biases are retained, and the next round begins. The same scheduling event is as follows: in one output submission, the four feature comparison values of the current training item are written into the comparison register of the four feature PWM channels, and the target comparison value is written into the comparison register of the target PWM channel, so that the four analog feature voltage setting values and the target reference voltage setting value are output as a pair of the same training item.
5. A bearing diagnostic method according to claim 1, characterized in that, The process of obtaining a single-channel output by calculating the voltage received from the four characteristic input terminals with the same set of weights and biases, and updating the weights and biases with the residual between the single-channel output and the target reference voltage, includes: The four analog characteristic voltages received by the four characteristic input terminals are multiplied by the corresponding weights of the four weights in the same set of weights that correspond one-to-one with the four characteristic input terminals to obtain four product signals. The four product signals are summed and the bias is added to obtain the single output; The residual is obtained by subtracting the single-channel output from the target reference voltage of the current training item; The residuals are multiplied by the four analog characteristic voltages respectively to form four weight update drivers, and the residuals are used as bias update drivers. The four weight update drivers are used to update the corresponding weights, and the bias update driver is used to update the bias, so that the updated weights and biases are fed back to the computation path that generates the single output.
6. A bearing diagnostic method according to claim 5, characterized in that, The four-way weight update driver and the bias update driver continuously update the weights and biases via their respective integral paths, including: The integration path includes an operational amplifier, an input resistor, and a feedback capacitor and a feedback resistor connected in parallel. The weight of the j-th path is... Update, the bias is based on renew; Where j is the channel number of the four feature input terminals, j=1,2,3,4. Let j be the weight of the j-th path. Let e be the bias, and e be the residual. Let j be the analog characteristic voltage of the j-th channel. Let be the equivalent update coefficient of the j-th path weight. The equivalent update coefficients are biased and include the multiplication ratio and the update path gain. Let be the equivalent leakage coefficient of the j-th path weight. The equivalent leakage coefficient is the bias, which is introduced by the feedback resistor; The feedback capacitor causes the weights and biases to accumulate continuously with the residual, and the feedback resistor causes the weights and biases to decay over time when the update drive is zero.
7. The bearing diagnostic method according to claim 1, characterized in that, The step of comparing the single-channel output with target reference voltages of various categories to determine the bearing condition category includes: The target reference voltages for each category are arranged in ascending order of voltage. The midpoint between two adjacent target reference voltages is taken as the discrimination boundary to obtain multiple discrimination intervals; Determine the discrimination interval into which the single output falls, and determine the category to which the target reference voltage corresponding to the discrimination interval belongs as the bearing state category; When the single output is located between adjacent discrimination boundaries, its category is interpreted according to the target reference voltage corresponding to that interval, and readings in the switching transient interval and those exceeding the normal range are excluded.
8. A bearing diagnostic system, characterized in that, include: The four-band feature generation module is used to window the bearing vibration signal. The root mean square value of the same window is obtained through four preset frequency bands, and a four-dimensional feature vector is formed according to the frequency band order. The voltage output module is used to convert the four-dimensional feature vector into four analog feature voltages by mapping them through a fixed channel, and to determine the corresponding target reference voltage according to the bearing state category to which the current window belongs; The scheduling module is used to schedule training terms consisting of four analog characteristic voltages and a target reference voltage of the same sample according to a predetermined sequence, and to apply the four analog characteristic voltages to the four characteristic input terminals and the target reference voltage to the target terminal within a preset holding period. The simulation training module is used to calculate a single output by the voltage received from the four feature input terminals and the same set of weights and biases, and to update the weights and biases with the residual between the single output and the target reference voltage. When switching training items, the weights and biases updated by the previous training item are used as the starting state. A diagnostic output module is used to compare the single output with target reference voltages of various categories to determine the bearing condition category.
9. A bearing diagnostic device, characterized in that, Includes a processor and a memory for storing processor-executable instructions; The processor is configured to implement the bearing diagnosis method according to any one of claims 1-7 when executing the instructions.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the bearing diagnosis method according to any one of claims 1-7.
