A method and system for stabilizing power supply in sauna rooms based on dual power supply switching

By identifying and predicting the real-time disturbance characteristics and trends of the main power supply in the sauna room power supply system, the failure threshold is adaptively determined, and a smooth switching is triggered at the zero-crossing point. This solves the problems of power failure risk and unstable switching in the sauna room power supply system, and achieves the stability and reliability of power supply.

CN122092479APending Publication Date: 2026-05-26XUZHOU KAILIER SAUNA EQUIP
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
XUZHOU KAILIER SAUNA EQUIP
Filing Date
2026-01-23
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In sauna room power supply systems, the main power supply is susceptible to grid fluctuations and load changes, resulting in phase abrupt changes and amplitude dips. Existing technologies struggle to identify dynamic anomalies in real time, making it difficult to predict power failure risks in a timely manner. Furthermore, the timing of dual power supply switching is not accurately determined, which can easily lead to voltage surges and power supply instability.

Method used

By sampling the output voltage waveform of the main power supply in real time, identifying phase abrupt changes and amplitude dips, and combining trend prediction analysis to adaptively determine the failure threshold, a pre-switching process is triggered at the zero-crossing point to adjust the backup power supply pulse frequency to match the phase, thereby achieving smooth power switching.

Benefits of technology

It improves the timeliness and accuracy of power supply anomaly identification, ensures phase matching between backup power and main power, achieves seamless power switching, and guarantees the continuous and stable operation of sauna heating load and the reliability of power supply system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122092479A_ABST
    Figure CN122092479A_ABST
Patent Text Reader

Abstract

This invention relates to the field of power supply technology, and discloses a method and system for stabilizing the power supply of a sauna room based on dual power supply switching. The method includes: sampling the output voltage waveform in real time to obtain a sine wave signal, identifying phase abrupt changes and amplitude dips to obtain a real-time disturbance characteristic sequence; performing trend prediction analysis on the real-time disturbance characteristic sequence to obtain a dynamic change trend, and determining a failure threshold based on the dynamic change trend; triggering a pre-switching process when the cumulative effect exceeds the failure threshold, and simultaneously capturing a zero-crossing point; using the zero-crossing point as a synchronization reference time, comparing and analyzing the current output voltage phase with the synchronization reference time to obtain a phase difference signal; adjusting the pulse frequency according to the phase difference signal until the phase difference between the current output voltage phase and the synchronization reference time is within a preset dead zone range; and controlling the sauna room to smoothly switch from the main power supply to the backup power supply. This invention can improve the stability of dual power supply for sauna rooms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power supply technology, and in particular to a method and system for stabilizing power supply in sauna rooms based on dual power supply switching. Background Technology

[0002] During the operation of the sauna room power supply system, the main power supply is susceptible to factors such as grid fluctuations and load changes, resulting in disturbances such as phase abrupt changes and amplitude dips. Existing technologies lack real-time and accurate identification of these disturbance characteristics, making it difficult to fully capture dynamic abnormal information of the power supply output. This leads to an inability to detect the degradation trend of the main power supply in a timely manner, to predict its failure risk in advance, and to initiate countermeasures in the early stages of power supply performance deterioration, which seriously affects the stability of the power supply.

[0003] Existing dual-power switching technologies have significant shortcomings in terms of switching timing and phase synchronization control. Their failure thresholds are mostly fixed values ​​and cannot be adaptively adjusted according to the dynamic changes in power disturbances. This results in switching triggers either lagging behind the actual power failure time or frequent false triggers. Furthermore, the lack of an effective phase alignment mechanism during switching makes it difficult to control the phase difference between the backup power supply and the primary power supply within a reasonable range. Voltage surges are prone to occur during switching, which not only affect the continuous and stable operation of the sauna heating load but may also damage the power supply equipment, reducing the overall reliability and service life of the system. Therefore, improving the stability of dual-power supply in saunas has become an urgent problem to be solved. Summary of the Invention

[0004] This invention provides a method and system for stabilizing the power supply of a sauna room based on dual power supply switching, in order to solve the problems mentioned in the background art.

[0005] To achieve the above objectives, the present invention provides a method for stabilizing the power supply of a sauna room based on dual power supply switching, comprising: S1. The output voltage waveform of the main power supply of the sauna room is sampled in real time to obtain the sinusoidal signal of the main power supply, and the phase change point and amplitude dip in the sinusoidal signal are identified to obtain the real-time disturbance characteristic sequence of the main power supply. S2. Perform trend prediction analysis on the real-time disturbance feature sequence to obtain the dynamic change trend of the real-time disturbance feature sequence, and determine the failure threshold of the main power supply based on the dynamic change trend. S3. When the cumulative effect of the real-time disturbance feature sequence exceeds the failure threshold, a pre-switching process is triggered, and the zero-crossing point of the main power supply is captured at the same time. S4. Using the zero-crossing point as the synchronization reference time, compare and analyze the current output voltage phase of the backup power supply in the sauna room with the synchronization reference time to obtain the phase difference signal of the sauna room. S5. Adjust the pulse frequency of the backup power supply according to the phase difference signal until the phase difference between the current output voltage phase and the synchronization reference time is within the preset dead zone range. S6. When the output voltage waveform reaches the zero-crossing point again, control the sauna room to smoothly switch from the main power supply to the backup power supply.

[0006] In a preferred embodiment, the real-time sampling of the output voltage waveform of the main power supply of the sauna room to obtain a sinusoidal signal of the main power supply, and the identification of phase abrupt changes and amplitude dips in the sinusoidal signal to obtain a real-time disturbance characteristic sequence of the main power supply, includes: The output voltage waveform of the main power supply of the sauna room is sampled at intervals to obtain the voltage timing data of the main power supply; The voltage timing data is reconstructed using power frequency synchronization to obtain the sinusoidal signal of the main power supply. The sinusoidal signal is decomposed into analysis windows of different time scales. Within the analysis window, window-specific perturbation detection is performed on the sinusoidal signal to obtain the phase abrupt change points and amplitude dips of the sinusoidal signal. The phase abrupt change points and amplitude dips are dimensionality-reduced and encoded to obtain the standardized descriptor of the sinusoidal signal; Arrange the standardized descriptors in chronological order, and use the current power state of the sauna as the context weight to weight and correct the strength of the standardized descriptors, thereby obtaining the real-time disturbance feature sequence of the main power supply.

[0007] In a preferred embodiment, the step of performing trend prediction analysis on the real-time disturbance feature sequence to obtain the dynamic change trend of the real-time disturbance feature sequence, and determining the failure threshold of the main power supply based on the dynamic change trend, includes: The real-time perturbation feature sequence is segmented by a sliding window to obtain a sequence analysis segment of the real-time perturbation feature sequence; Extract the monotonic changes of feature values ​​in the sequence analysis segment on the time axis to obtain a monotonic trend description of the real-time perturbation feature sequence; Fluctuation pattern analysis is performed on the sequence analysis segment to obtain a description of the volatility trend of the real-time disturbance characteristic sequence; The monotonic trend description and the volatility trend description are concatenated by tensors to obtain the comprehensive trend vector of the real-time perturbation feature sequence; By performing trajectory fitting on the comprehensive trend vector, a high-dimensional trend evolution trajectory of the real-time perturbation feature sequence is obtained; The high-dimensional trend evolution trajectory is subjected to feature enhancement processing, and the enhanced trend evolution trajectory is used as the dynamic change trend of the real-time perturbation feature sequence. The failure threshold of the main power supply is adaptively determined based on the slope direction and curvature of the evolution trajectory in the dynamic change trend.

[0008] In a preferred embodiment, adaptively determining the failure threshold of the main power supply based on the slope direction and curvature of the evolution trajectory in the dynamic change trend includes: Extract the trajectory segment corresponding to the complete change cycle in the dynamic change trend; Analyze the overall slope direction and curvature variation of the trajectory segment; When the overall slope direction is negative and the degree of curvature change exceeds the preset curvature sensitivity threshold, the degree of curvature change is used as the first adjustment coefficient of the main power supply. Obtain the heating load operating power of the sauna room, and determine the second adjustment coefficient of the main power supply based on the heating load operating power; Threshold determination is performed on the first adjustment coefficient and the second adjustment coefficient to obtain the failure threshold of the main power supply.

[0009] In a preferred embodiment, the step of triggering a pre-switching process when the cumulative effect of the real-time disturbance characteristic sequence exceeds the failure threshold, while simultaneously capturing the zero-crossing point of the main power supply, includes: The real-time perturbation feature sequence is decomposed into a pattern to obtain the instantaneous perturbation features and trend degradation features of the real-time perturbation feature sequence. Statistical analysis is performed on the instantaneous disturbance characteristics to obtain the amplitude distribution and occurrence frequency of the instantaneous disturbance characteristics, and the degradation rate of the trend degradation characteristics is analyzed at the same time. By integrating the amplitude distribution, the occurrence frequency, and the degradation rate, a comprehensive effect index of the real-time perturbation feature sequence is obtained; The comprehensive effect index and the failure threshold are compared in real time. When the comprehensive effect index exceeds the failure threshold, a power switching trigger command for the sauna room is generated, and the zero-crossing point of the main power supply is obtained in parallel.

[0010] In a preferred embodiment, the parallel acquisition of the zero-crossing point of the main power supply includes: The sinusoidal signal of the main power supply is subjected to multi-stage digital filtering to obtain the clean signal of the main power supply. Differential symbol analysis is performed on the pure signal to obtain candidate zero-crossing points of the main power supply; By statistically analyzing the time intervals of the candidate zero-crossing points, the distribution dispersion of the candidate zero-crossing points is obtained. Based on the distribution dispersion, a consistency check is performed on the candidate zero-crossing points, and the first candidate zero-crossing point that passes the check is taken as the zero-crossing point of the main power supply.

[0011] In a preferred embodiment, the step of comparing and analyzing the current output voltage phase of the backup power supply in the sauna with the synchronization reference time, using the zero-crossing point as the synchronization reference time, to obtain the phase difference signal of the sauna includes: The zero-crossing point is used as the synchronization reference time of the main power supply, and the current output voltage waveform of the sauna room under the backup power supply is synchronously sampled with the synchronization reference time as the time origin to obtain the waveform data of the backup power supply. The waveform data is subjected to zero-crossing detection to obtain the actual zero-crossing time of the backup power supply; Based on the synchronization reference time and the theoretical value of the power frequency cycle of the backup power supply, the theoretical zero-crossing time of the sauna room is determined. By performing a difference analysis between the actual zero-crossing time and the theoretical zero-crossing time, the original time deviation value of the sauna room is obtained. The original time deviation value is normalized to obtain the normalized phase difference value sequence of the sauna room; The short-term fluctuation characteristics of the normalized phase difference sequence are analyzed, and the short-term fluctuation characteristics are mapped to the dynamic weighting factor of the sauna room. Based on the dynamic weighting factor and the normalized phase difference value sequence, the phase difference signal of the sauna room is calculated, wherein the calculation formula for the phase difference signal is: ; in, This represents the phase difference signal. This represents the total number of phase differences in the normalized phase difference sequence. Indicates the first One normalized phase difference value, Indicates the first A dynamic weighting factor.

[0012] In a preferred embodiment, adjusting the pulse frequency of the backup power supply according to the phase difference signal until the phase difference between the current output voltage phase and the synchronization reference time is within a preset dead zone range includes: The phase difference signal is orthogonally decomposed to obtain the polarity and amplitude characteristics of the phase difference signal; Based on the polarity and amplitude characteristics, the pulse frequency of the backup power supply is adjusted to change the output voltage frequency of the backup power supply. After the output voltage frequency is adjusted, the updated output voltage phase of the backup power supply is then acquired. The updated output voltage phase is compared and analyzed with the synchronization reference time to obtain the updated phase difference signal of the sauna room; Based on a preset dead zone range, the updated phase difference signal is iteratively adjusted until the adjusted phase difference signal is within the dead zone range.

[0013] In a preferred embodiment, controlling the sauna room to smoothly switch from the main power supply to the backup power supply when the output voltage waveform reaches the zero-crossing point again includes: Linear extrapolation is performed on the historical zero-crossing time series of the main power supply to determine the switching time window of the sauna room; Within the switching time window, the real-time voltage waveform data of the main power supply is captured, and the real-time voltage waveform data is zero-crossing detected to obtain the precise time when the real-time voltage waveform data reaches the zero-crossing point again. At the precise moment, the main power supply is cut off, the backup power supply is turned on, and the power supply voltage waveform across the heating load in the sauna is collected in real time. The power supply voltage waveform is comprehensively evaluated to complete the smooth switching process of the dual power supply in the sauna room.

[0014] To address the aforementioned problems, the present invention also provides a sauna room power supply stabilization system based on dual power supply switching, the system comprising: The disturbance feature extraction module is used to sample the output voltage waveform of the main power supply of the sauna room in real time, obtain the sinusoidal signal of the main power supply, and identify the phase change points and amplitude dips in the sinusoidal signal to obtain the real-time disturbance feature sequence of the main power supply. The failure threshold determination module is used to perform trend prediction analysis on the real-time disturbance feature sequence to obtain the dynamic change trend of the real-time disturbance feature sequence, and determine the failure threshold of the main power supply based on the dynamic change trend. The pre-switching process triggering module is used to trigger the pre-switching process when the cumulative effect of the real-time disturbance characteristic sequence exceeds the failure threshold, and simultaneously capture the zero-crossing point of the main power supply. The phase difference signal output module is used to compare and analyze the current output voltage phase of the backup power supply in the sauna room with the synchronization reference time, using the zero crossing point as the synchronization reference time, to obtain the phase difference signal of the sauna room. The voltage phase adjustment module is used to adjust the pulse frequency of the backup power supply according to the phase difference signal until the phase difference between the current output voltage phase and the synchronization reference time is within a preset dead zone range. A power switching module is used to control the sauna room to smoothly switch from the main power supply to the backup power supply when the output voltage waveform reaches the zero crossing point again.

[0015] Compared with the prior art, the present invention has the following beneficial effects: 1. This invention, through real-time sampling and precise extraction of disturbance characteristics of the main power supply output voltage waveform, combined with dynamic trend prediction analysis to adaptively determine the failure threshold, can promptly capture abnormal power supply changes and trigger the pre-switching process in advance, greatly improving the timeliness and accuracy of power supply anomaly identification, laying a solid foundation for smooth power supply switching, and effectively avoiding the risk of power outage caused by the accumulation of power supply disturbances.

[0016] 2. This invention ensures precise phase matching between the backup power supply and the main power supply by accurately calculating the phase difference signal and adjusting the backup power supply pulse frequency. The power switching is completed at the voltage zero crossing point, which significantly reduces voltage fluctuations during the switching process, achieves a seamless and smooth transition between the main and backup power supplies, ensures the continuous and stable operation of the sauna heating load, and improves the reliability and stability of the overall power supply system. Attached Figure Description

[0017] Figure 1 This is a flowchart illustrating a method for stabilizing power supply in a sauna room based on dual power supply switching, as provided in an embodiment of the present invention. Figure 2 A functional block diagram of a sauna room power supply stabilization system based on dual power supply switching is provided in an embodiment of the present invention; The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0018] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0019] This application provides a method for stabilizing the power supply of a sauna room based on dual power supply switching. The executing entity of this method includes, but is not limited to, at least one of the following electronic devices that can be configured to execute the method provided in this application: a server, a terminal, etc. In other words, the method for stabilizing the power supply of a sauna room based on dual power supply switching can be executed by software or hardware installed on a terminal device or a server device. The server includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster. The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0020] Reference Figure 1 The diagram shown is a flowchart illustrating a method for stabilizing the power supply of a sauna room based on dual-power switching, according to an embodiment of the present invention. In this embodiment, the method for stabilizing the power supply of a sauna room based on dual-power switching includes: S1. The output voltage waveform of the main power supply of the sauna room is sampled in real time to obtain the sinusoidal signal of the main power supply, and the phase change point and amplitude dip in the sinusoidal signal are identified to obtain the real-time disturbance characteristic sequence of the main power supply. In this embodiment of the invention, the real-time sampling of the output voltage waveform of the main power supply of the sauna room to obtain the sinusoidal signal of the main power supply, and the identification of phase abrupt changes and amplitude dips in the sinusoidal signal to obtain the real-time disturbance characteristic sequence of the main power supply, includes: The output voltage waveform of the main power supply of the sauna room is sampled at intervals to obtain the voltage timing data of the main power supply; The voltage timing data is reconstructed using power frequency synchronization to obtain the sinusoidal signal of the main power supply. The sinusoidal signal is decomposed into analysis windows of different time scales. Within the analysis window, window-specific perturbation detection is performed on the sinusoidal signal to obtain the phase abrupt change points and amplitude dips of the sinusoidal signal. The phase abrupt change points and amplitude dips are dimensionality-reduced and encoded to obtain the standardized descriptor of the sinusoidal signal; Arrange the standardized descriptors in chronological order, and use the current power state of the sauna as the context weight to weight and correct the strength of the standardized descriptors, thereby obtaining the real-time disturbance feature sequence of the main power supply.

[0021] When collecting the output voltage waveform of the main power supply of the sauna room, a fixed sampling time interval is set. This interval is determined based on the power frequency characteristics of the main power supply to ensure that the details of the voltage waveform change can be completely captured. The instantaneous value of the output voltage of the main power supply is continuously collected. These instantaneous voltage values ​​recorded in chronological order of collection time are integrated together to form the voltage time sequence data of the main power supply.

[0022] The power frequency standard corresponding to the main power supply is clearly defined. Based on this power frequency, the collected voltage timing data is normalized and abnormal data points that deviate from the power frequency rhythm due to slight jitter during the sampling process are removed. Then, according to the inherent periodic law of the power frequency, the normalized voltage timing data is rearranged to restore the sine wave shape that the main power supply output voltage should have, and thus obtain the sine wave signal of the main power supply.

[0023] Based on the different durations of voltage fluctuations, three analysis windows with different time spans—short, medium, and long—are set. The sine wave signal is sequentially assigned to each corresponding analysis window according to the time progression. Within each analysis window, the phase and amplitude of the sine wave signal at adjacent moments are compared point by point. When the phase at a certain moment changes abruptly from the phase at an adjacent moment, that moment is determined to be a phase abrupt change point. When the amplitude at a certain moment decreases significantly from the amplitude at an adjacent moment and this state is maintained for a certain period, it is determined that there is an amplitude dip in that period. In this way, phase abrupt change points and amplitude dips in the sine wave signal are comprehensively captured.

[0024] For each identified phase abrupt change point, extract the two key pieces of information: the time and location of the abrupt change and the direction of the abrupt change. For each amplitude dip, extract the three key pieces of information: the start time, the end time, and the dip depth. Classify and organize these key pieces of information, remove duplicate and redundant content, and then convert the organized information into a simplified representation form with a unified format. This simplified representation form with a unified format is the standardized descriptor of the sine wave signal.

[0025] According to the chronological order of the phase abrupt change or amplitude dip corresponding to each standardized descriptor, all standardized descriptors are arranged sequentially to form an initial sequence. At the same time, the current operating power data of the sauna room is collected in real time and used as context weight. The intensity of each standardized descriptor is adjusted according to the power value. The higher the power value, the greater the adjustment range of the corresponding standardized descriptor intensity, and the lower the power value, the smaller the adjustment range. After such weighted correction, the real-time disturbance characteristic sequence of the main power supply is finally formed.

[0026] The beneficial effects include ensuring the integrity of voltage timing data through fixed-interval sampling, guaranteeing the accuracy of sinusoidal signals through power frequency synchronous reconstruction, achieving comprehensive capture of phase abrupt changes and amplitude dips through multi-timescale analysis windows, making feature representation simpler and more standardized through dimensionality reduction coding, and making the disturbance feature sequence more consistent with the actual operating scenario of the sauna room by combining the current power weighting correction. The entire process is progressive, and the final real-time disturbance feature sequence can accurately and comprehensively reflect the disturbance situation of the main power supply, providing reliable and effective data support for subsequent dynamic trend analysis of the main power supply and determination of failure threshold.

[0027] S2. Perform trend prediction analysis on the real-time disturbance feature sequence to obtain the dynamic change trend of the real-time disturbance feature sequence, and determine the failure threshold of the main power supply based on the dynamic change trend. In this embodiment of the invention, the step of performing trend prediction analysis on the real-time disturbance feature sequence to obtain the dynamic change trend of the real-time disturbance feature sequence, and determining the failure threshold of the main power supply based on the dynamic change trend, includes: The real-time perturbation feature sequence is segmented by a sliding window to obtain a sequence analysis segment of the real-time perturbation feature sequence; Extract the monotonic changes of feature values ​​in the sequence analysis segment on the time axis to obtain a monotonic trend description of the real-time perturbation feature sequence; Fluctuation pattern analysis is performed on the sequence analysis segment to obtain a description of the volatility trend of the real-time disturbance characteristic sequence; The monotonic trend description and the volatility trend description are concatenated by tensors to obtain the comprehensive trend vector of the real-time perturbation feature sequence; By performing trajectory fitting on the comprehensive trend vector, a high-dimensional trend evolution trajectory of the real-time perturbation feature sequence is obtained; The high-dimensional trend evolution trajectory is subjected to feature enhancement processing, and the enhanced trend evolution trajectory is used as the dynamic change trend of the real-time perturbation feature sequence. The failure threshold of the main power supply is adaptively determined based on the slope direction and curvature of the evolution trajectory in the dynamic change trend.

[0028] The step of adaptively determining the failure threshold of the main power supply based on the slope direction and curvature of the evolution trajectory in the dynamic change trend includes: Extract the trajectory segment corresponding to the complete change cycle in the dynamic change trend; Analyze the overall slope direction and curvature variation of the trajectory segment; When the overall slope direction is negative and the degree of curvature change exceeds the preset curvature sensitivity threshold, the degree of curvature change is used as the first adjustment coefficient of the main power supply. Obtain the heating load operating power of the sauna room, and determine the second adjustment coefficient of the main power supply based on the heating load operating power; Threshold determination is performed on the first adjustment coefficient and the second adjustment coefficient to obtain the failure threshold of the main power supply.

[0029] When segmenting the real-time perturbation feature sequence, a sliding window of fixed size is used. The window size is determined according to the time span and data density of the real-time perturbation feature sequence. The sliding step size is kept fixed and not greater than the window size. The sliding window covers the entire real-time perturbation feature sequence in chronological order. Each time the window stops, the feature sequence portion contained in the window is extracted, and finally multiple continuous sequence analysis segments with partial overlap are obtained.

[0030] For each sequence analysis segment, the magnitude relationship between two adjacent feature values ​​is compared one by one according to the time progression. The state of the feature value is continuously recorded as whether it increases continuously, decreases continuously, or remains unchanged. This consistent change pattern throughout the entire sequence analysis segment is systematically sorted out and described in words to obtain a monotonic trend description of the real-time perturbation feature sequence.

[0031] For each sequence analysis segment, the numerical changes of the characteristic values ​​are recorded point by point, the turning points of the characteristic values ​​rising and falling are marked, the start time, end time and amplitude of each fluctuation are statistically analyzed, and the density and amplitude distribution of fluctuations in the sequence analysis segment are summarized, thereby forming a description of the volatility trend of the real-time perturbation characteristic sequence.

[0032] The various feature information contained in the monotonic trend description and the volatility trend description are integrated according to the time dimension and the feature attribute dimension, so that the information of the two descriptions are related and complementary in the same data structure, forming a unified data carrier that simultaneously carries monotonic and volatility trend information, namely, the comprehensive trend vector of real-time perturbation feature sequence.

[0033] Using the values ​​of each dimension in the comprehensive trend vector as coordinate points in a high-dimensional space, and based on the distribution pattern of these coordinate points, a smooth curve that can connect all coordinate points and conforms to the logic of change is constructed. This curve fits the distribution trajectory of the coordinate points to the greatest extent, accurately reflects the change path of the comprehensive trend vector, and obtains the high-dimensional trend evolution trajectory of the real-time perturbation feature sequence.

[0034] When processing high-dimensional trend evolution trajectories, we focus on strengthening the feature points in the trajectory that have significant changes and play a key role in trend judgment. At the same time, we supplement the feature information in the trajectory that was originally weak but has potential influence, so that the trend of the trajectory is clearer and the features are more prominent. The trend evolution trajectory after this processing is used as the dynamic change trend of the real-time perturbation feature sequence.

[0035] By observing the high-dimensional trend evolution trajectory in the dynamic change trend, we can identify the cyclical process that starts from the trajectory starting point, goes through a complete rising, falling or stable phase, and then returns to a state with similar characteristics to the initial state. We can then extract the trajectory segment corresponding to this complete cyclical process to obtain the trajectory segment corresponding to the complete change cycle in the dynamic change trend.

[0036] By following the time progression direction of the trajectory segment corresponding to the complete change cycle, the overall tilt direction of the trajectory is judged to determine whether it extends upward or downward as a whole, thus obtaining the overall slope direction of the trajectory segment; at the same time, the curvature of each position on the trajectory segment is calculated point by point, and the range of change and overall trend of the curvature of the entire trajectory segment are statistically analyzed to obtain the degree of curvature change.

[0037] When the overall slope direction of the trajectory segment is negative, and the calculated curvature change value exceeds the preset curvature sensitivity threshold, the specific value of the curvature change is directly assigned to the attribute of the first adjustment coefficient, which serves as the first adjustment coefficient of the main power supply.

[0038] The sauna room is equipped with a power detection device that collects the actual operating power value of the heating load in real time. Based on the operating power value, a preset power-coefficient correspondence table is consulted. This correspondence table has fixed coefficients corresponding to different heating load operating powers. The corresponding coefficients found are used as the second adjustment coefficients of the main power supply.

[0039] Substituting the first and second adjustment coefficients into the preset threshold determination rule, which clarifies the fusion calculation method of the two coefficients, and combining the rated power supply parameters of the main power supply and the safe operation requirements of the sauna room, a specific value is calculated, which is the failure threshold of the main power supply.

[0040] The beneficial effects are that through a series of coherent operations such as sliding window segmentation, trend description extraction, vector concatenation, trajectory fitting, and feature enhancement, the dynamic change trend of real-time disturbance feature sequence can be captured comprehensively and accurately. Then, by combining the slope direction and curvature of the complete change cycle trajectory segment and the operating power of the heating load to determine the adjustment coefficient, the final failure threshold can accurately adapt to the actual operating state of the main power supply, providing a reliable basis for timely triggering of the pre-switching process and effectively ensuring the stability of the sauna room's power supply.

[0041] S3. When the cumulative effect of the real-time disturbance feature sequence exceeds the failure threshold, a pre-switching process is triggered, and the zero-crossing point of the main power supply is captured at the same time. In this embodiment of the invention, the step of triggering a pre-switching process when the cumulative effect of the real-time disturbance characteristic sequence exceeds the failure threshold, and simultaneously capturing the zero-crossing point of the main power supply, includes: The real-time perturbation feature sequence is decomposed into a pattern to obtain the instantaneous perturbation features and trend degradation features of the real-time perturbation feature sequence. Statistical analysis is performed on the instantaneous disturbance characteristics to obtain the amplitude distribution and occurrence frequency of the instantaneous disturbance characteristics, and the degradation rate of the trend degradation characteristics is analyzed at the same time. By integrating the amplitude distribution, the occurrence frequency, and the degradation rate, a comprehensive effect index of the real-time perturbation feature sequence is obtained; The comprehensive effect index and the failure threshold are compared in real time. When the comprehensive effect index exceeds the failure threshold, a power switching trigger command for the sauna room is generated, and the zero-crossing point of the main power supply is obtained in parallel.

[0042] The parallel acquisition of the zero-crossing point of the main power supply includes: The sinusoidal signal of the main power supply is subjected to multi-stage digital filtering to obtain the clean signal of the main power supply. Differential symbol analysis is performed on the pure signal to obtain candidate zero-crossing points of the main power supply; By statistically analyzing the time intervals of the candidate zero-crossing points, the distribution dispersion of the candidate zero-crossing points is obtained. Based on the distribution dispersion, a consistency check is performed on the candidate zero-crossing points, and the first candidate zero-crossing point that passes the check is taken as the zero-crossing point of the main power supply.

[0043] When performing pattern decomposition on real-time disturbance feature sequences, disturbances are classified according to their duration and variation patterns. Short-duration, sudden disturbances are classified as instantaneous disturbances, while long-duration disturbances that show a gradual deterioration are classified as trend-deterioration features. Through this targeted separation operation, the instantaneous disturbance features and trend-deterioration features of the real-time disturbance feature sequence are obtained.

[0044] When performing statistical analysis on instantaneous disturbance features, the amplitude of each instantaneous disturbance feature is recorded one by one. The amplitude is divided into multiple fixed intervals, and the number of instantaneous disturbance features in each interval is counted to form the amplitude distribution of instantaneous disturbance features. At the same time, the number of times instantaneous disturbance features occur per unit time is recorded to obtain the occurrence frequency of instantaneous disturbance features. When analyzing the degradation rate of trend degradation features, multiple consecutive feature acquisition nodes are selected in chronological order, the numerical change of trend degradation features between adjacent nodes is calculated, and then combined with the time interval between nodes, the degree of change of trend degradation features per unit time is obtained, that is, the degradation rate of trend degradation features.

[0045] When integrating amplitude distribution, occurrence frequency, and degradation rate, the values ​​of the three are first converted into standardized data of the same magnitude. Fixed weights are set according to the importance of the three factors to power supply stability. The standardized amplitude distribution data, occurrence frequency data, and degradation rate data are multiplied by their respective weights, and the product results are added together to obtain a value that can comprehensively reflect the overall impact of the real-time disturbance characteristic sequence. This value is the comprehensive effect index of the real-time disturbance characteristic sequence.

[0046] The system continuously monitors the changes in the comprehensive effect index and compares them with the preset failure threshold every moment. When the value of the comprehensive effect index exceeds the failure threshold, a power switching trigger command for the sauna room is immediately generated to start the pre-switching process. At the same time, the zero-crossing point capture operation of the main power supply is started simultaneously to ensure that the pre-switching process trigger and the zero-crossing point capture operation are carried out simultaneously without interference.

[0047] When performing multi-stage digital filtering on the sinusoidal signal of the main power supply, a three-stage cascaded digital filtering structure is adopted. The first stage of filtering filters high-frequency interference signals with frequencies higher than three times the power frequency. The second stage of filtering filters mid-frequency interference signals with frequencies between one and three times the power frequency. The third stage of filtering filters low-frequency interference signals with frequencies lower than the power frequency. Through the gradual purification of the three-stage filtering stage, all interference components in the sinusoidal signal are removed, and a clean signal from the main power supply is obtained.

[0048] When performing differential sign analysis on a clean signal, the signal values ​​of two adjacent sampling points are selected sequentially according to the sampling order. The difference between the value of the next sampling point and the value of the previous sampling point is calculated, and the sign of the difference is determined. When the sign of the difference changes from positive to negative or from negative to positive, the sampling point position corresponding to that instant is recorded. All such sampling points are summarized to obtain the candidate zero-crossing points of the main power supply.

[0049] When analyzing the candidate zero-crossing points and time intervals, all candidate zero-crossing points are arranged in chronological order. The time length between two adjacent candidate zero-crossing points is calculated to obtain multiple time interval values. These time interval values ​​are compared with the standard period corresponding to the main power supply frequency. The deviation value between each time interval value and the standard period is calculated. The dispersion of all deviation values ​​is statistically analyzed to obtain the distribution dispersion of the candidate zero-crossing points.

[0050] When performing consistency checks on candidate zero-crossing points based on the distribution dispersion, a qualified range for the distribution dispersion is preset. This range is determined according to the power frequency stability requirements of the main power supply. The deviation value of the adjacent time interval corresponding to each candidate zero-crossing point is checked one by one to see if it is within the qualified range. If the deviation value is within the qualified range, the candidate zero-crossing point is determined to have passed the consistency check. The candidate zero-crossing points are screened in chronological order, and the first candidate zero-crossing point that passes the consistency check is determined as the zero-crossing point of the main power supply.

[0051] The beneficial effects are that by accurately separating instantaneous disturbances and trend-based degradation characteristics through pattern decomposition, the comprehensive effect index obtained by combining statistical analysis and fusion calculation can accurately reflect the cumulative effect of disturbances, ensuring the timeliness and accuracy of the pre-switching process triggering. At the same time, through the coherent operation of multi-cascade digital filtering, differential sign analysis, time interval analysis and consistency verification, the zero-crossing point of the main power supply is accurately captured, providing a reliable benchmark for subsequent power supply synchronization switching, effectively ensuring the smoothness of dual power supply switching, and further improving the stability of the sauna room power supply.

[0052] S4. Using the zero-crossing point as the synchronization reference time, compare and analyze the current output voltage phase of the backup power supply in the sauna room with the synchronization reference time to obtain the phase difference signal of the sauna room. In this embodiment of the invention, the step of comparing and analyzing the current output voltage phase of the backup power supply in the sauna room with the synchronization reference time, using the zero-crossing point as the synchronization reference time, to obtain the phase difference signal of the sauna room, includes: The zero-crossing point is used as the synchronization reference time of the main power supply, and the current output voltage waveform of the sauna room under the backup power supply is synchronously sampled with the synchronization reference time as the time origin to obtain the waveform data of the backup power supply. The waveform data is subjected to zero-crossing detection to obtain the actual zero-crossing time of the backup power supply; Based on the synchronization reference time and the theoretical value of the power frequency cycle of the backup power supply, the theoretical zero-crossing time of the sauna room is determined. By performing a difference analysis between the actual zero-crossing time and the theoretical zero-crossing time, the original time deviation value of the sauna room is obtained. The original time deviation value is normalized to obtain the normalized phase difference value sequence of the sauna room; The short-term fluctuation characteristics of the normalized phase difference sequence are analyzed, and the short-term fluctuation characteristics are mapped to the dynamic weighting factor of the sauna room. Based on the dynamic weighting factor and the normalized phase difference value sequence, the phase difference signal of the sauna room is calculated, wherein the calculation formula for the phase difference signal is: ; in, This represents the phase difference signal. This represents the total number of phase differences in the normalized phase difference sequence. Indicates the first One normalized phase difference value, Indicates the first A dynamic weighting factor.

[0053] The zero-crossing point of the primary power supply is explicitly set as the synchronization reference time of the primary power supply. This synchronization reference time is marked as the origin on the time axis. Using this origin as the starting reference, the voltage waveform of the current output of the backup power supply is continuously and synchronously acquired at the same fixed time interval as the sampling of the primary power supply. The instantaneous voltage value corresponding to each acquisition moment is recorded one by one. These instantaneous voltage values ​​arranged in chronological order of acquisition time are integrated and collected to form the waveform data of the backup power supply.

[0054] The acquired backup power waveform data is analyzed point by point in chronological order, closely monitoring the changes in the positive and negative attributes of the voltage value corresponding to each data point. When the voltage value changes from positive to negative or from negative to positive, the specific time point corresponding to the change is accurately recorded. All time points that meet the above characteristics are systematically organized and summarized to obtain the actual zero-crossing time of the backup power.

[0055] The theoretical value of the power frequency cycle corresponding to the rated parameters of the backup power supply is clearly defined. This value is the inherent fixed cycle length of the backup power supply. Taking the synchronization reference time as the starting reference point, the calculation is performed sequentially according to the duration corresponding to the theoretical value of the power frequency cycle. Each time interval corresponding to the duration of the theoretical value of the power frequency cycle, a corresponding time point is marked. All these marked time points together constitute the theoretical zero-crossing time of the sauna room.

[0056] The actual zero-crossing time of the backup power supply is matched one-to-one with the theoretical zero-crossing time in chronological order. For each pair of corresponding actual and theoretical zero-crossing times, the specific value of the actual zero-crossing time is subtracted from the specific value of the corresponding theoretical zero-crossing time to calculate the time difference for each pair. All the calculated time differences are arranged in chronological order of the corresponding zero-crossing times to form the original time deviation value of the sauna room.

[0057] The theoretical value of the power frequency cycle of the backup power supply is selected as the benchmark for normalization. Each original time deviation value is divided by the theoretical value of the power frequency cycle. Through this operation, all original time deviation values ​​are uniformly converted into standardized values ​​within a fixed range of 0 to 1. These standardized values ​​are arranged in order of their corresponding zero-crossing time to obtain the normalized phase difference value sequence of the sauna room.

[0058] A fixed-duration short-term analysis window is set, the duration of which is determined based on the common cycle of backup power supply voltage fluctuations. The normalized phase difference sequence is segmented according to the length of the short-term analysis window. Within each segmented window, the magnitude of change, frequency of change, and difference between adjacent values ​​in the sequence are statistically analyzed. Based on these statistically derived short-term fluctuation characteristics, a preset feature-weight mapping table is queried. This mapping table predefines the fixed weight values ​​corresponding to different short-term fluctuation characteristics. The queried weight values ​​are used as the dynamic weight factors corresponding to the window, and a dynamic weight factor sequence is formed according to the window segmentation order.

[0059] Each value in the normalized phase difference sequence is multiplied one by one with the corresponding weight value in the dynamic weight factor sequence to obtain a series of corresponding product results. All product results are summed, and the sum of all weight values ​​in the dynamic weight factor sequence is calculated. The sum of the product results is divided by the sum of the weight values. The result obtained through this calculation process is the phase difference signal of the sauna room.

[0060] Using the zero-crossing point as the synchronization reference time and taking this synchronization reference time as the time origin, the current output voltage waveform of the sauna room's backup power supply is synchronously sampled to obtain the waveform data of the backup power supply. Zero-crossing point detection is performed on the waveform data of the backup power supply to obtain the actual zero-crossing point time of the backup power supply. Based on the synchronization reference time and the theoretical value of the backup power supply's power frequency period, the theoretical zero-crossing point time of the sauna room is determined by calculation. The actual zero-crossing point time of the backup power supply and the theoretical zero-crossing point time are subjected to differential analysis to calculate the original time deviation value. The original time deviation value is normalized to generate a normalized phase difference value sequence. Each data in this normalized phase difference value sequence is the specific source of the i-th normalized phase difference value.

[0061] Short-term fluctuation characteristics are analyzed on the normalized phase difference sequence. The short-term fluctuation characteristics obtained by the analysis are transformed into corresponding values ​​through a specific mapping rule. These transformed values ​​are the specific source of the i-th dynamic weight factor.

[0062] The total number of phase differences in the normalized phase difference sequence is determined by counting all independent phase differences.

[0063] Each dynamic weight factor is multiplied in pairs with its corresponding normalized phase difference value. All the results of these pairs of multiplications are summed up to obtain the first summation result. At the same time, all the dynamic weight factors are summed up to obtain the second summation result. The first summation result is divided by the second summation result to obtain the phase difference signal.

[0064] This calculation process fully integrates all data in the normalized phase difference sequence and the corresponding dynamic weighting factors, which can completely reflect the deviation between the actual zero-crossing time and the theoretical zero-crossing time of the backup power supply. Through the role of the dynamic weighting factors, the influence of short-term fluctuation characteristics on the phase difference calculation process is highlighted, so that the final phase difference signal is highly consistent with the actual operating state of the backup power supply.

[0065] The larger the dynamic weight factor corresponding to the larger normalized phase difference value in the normalized phase difference value sequence, the greater the proportion of the result after multiplying the normalized phase difference value with the corresponding dynamic weight factor in the first accumulation result, and the larger the value of the final phase difference signal will be.

[0066] The larger the dynamic weight factor corresponding to the smaller normalized phase difference value in the normalized phase difference value sequence, the greater the proportion of the result after multiplying the normalized phase difference value with the corresponding dynamic weight factor in the first accumulation result, and the smaller the value of the final phase difference signal will be.

[0067] When the magnitude of the dynamic weighting factor changes, it directly alters the contribution of the corresponding normalized phase difference value to the entire calculation process, thereby clarifying the overall direction and magnitude of the phase difference signal change.

[0068] The beneficial effects are that sampling with the zero-crossing point of the primary power supply as the synchronization reference ensures the time correlation and timeliness of the waveform data of the backup power supply and the primary power supply. Through zero-crossing point detection and differential analysis, the deviation between the actual and theoretical zero-crossing points is accurately captured. Normalization processing unifies the data volume. Combined with short-term fluctuation characteristics and dynamic weighting factors, the calculated phase difference signal can accurately reflect the phase difference between the backup power supply and the primary power supply at the synchronization reference time. This provides reliable data support for the subsequent precise adjustment of the backup power supply pulse frequency and ensures phase consistency during the switching of primary and backup power supplies.

[0069] S5. Adjust the pulse frequency of the backup power supply according to the phase difference signal until the phase difference between the current output voltage phase and the synchronization reference time is within the preset dead zone range. In this embodiment of the invention, adjusting the pulse frequency of the backup power supply according to the phase difference signal until the phase difference between the current output voltage phase and the synchronization reference time is within a preset dead zone range includes: The phase difference signal is orthogonally decomposed to obtain the polarity and amplitude characteristics of the phase difference signal; Based on the polarity and amplitude characteristics, the pulse frequency of the backup power supply is adjusted to change the output voltage frequency of the backup power supply. After the output voltage frequency is adjusted, the updated output voltage phase of the backup power supply is then acquired. The updated output voltage phase is compared and analyzed with the synchronization reference time to obtain the updated phase difference signal of the sauna room; Based on a preset dead zone range, the updated phase difference signal is iteratively adjusted until the adjusted phase difference signal is within the dead zone range.

[0070] When performing orthogonal decomposition on a phase difference signal, the phase difference signal is projected onto two mutually perpendicular independent signal dimensions. One dimension is specifically used to capture the positive or negative attribute of the signal value, which is the polarity feature of the phase difference signal; the other dimension is specifically used to quantify the strength of the signal, and the quantization result is the amplitude feature of the phase difference signal. Through this bidirectional decomposition, the core attributes of the phase difference signal can be fully extracted.

[0071] The direction of adjustment for the backup power supply pulse frequency is determined based on the polarity characteristics of the phase difference signal. If the polarity is positive, the adjustment is made to increase the pulse frequency; if the polarity is negative, the adjustment is made to decrease the pulse frequency. At the same time, the magnitude of the adjustment is determined based on the amplitude characteristics. The larger the value corresponding to the amplitude characteristics, the larger the adjustment magnitude of the pulse frequency; the smaller the value corresponding to the amplitude characteristics, the smaller the adjustment magnitude. Through such directional and quantitative adjustment, the output voltage frequency of the backup power supply is changed.

[0072] After the output voltage frequency of the backup power supply is adjusted, the current output voltage phase of the backup power supply is continuously sampled using the same fixed sampling interval as before. The instantaneous voltage phase value corresponding to each sampling moment is recorded, and these phase data arranged in the order of sampling time are used as the updated output voltage phase of the backup power supply.

[0073] The updated output voltage phase is compared point by point with the phase corresponding to the synchronization reference time. The difference between the updated output voltage phase and the phase at the synchronization reference time at each acquisition time is calculated. These differences are arranged in chronological order to form the updated phase difference signal of the sauna room, ensuring that the difference can truly reflect the adjusted phase matching situation.

[0074] A fixed phase difference dead zone range is preset. This range is a fixed interval determined according to the phase matching requirements during the switching of main and backup power supplies. Each value in the updated phase difference signal is compared with this dead zone range. If the value is within the dead zone range, the adjustment stops. If the value exceeds the dead zone range, the steps of pulse frequency adjustment, updated output voltage phase acquisition, and updated phase difference signal calculation are repeated until all the obtained phase difference signal values ​​are within the preset dead zone range.

[0075] The beneficial effects are that the polarity and amplitude characteristics of the phase difference signal are accurately extracted through orthogonal decomposition, providing a clear direction and amplitude basis for pulse frequency adjustment. Combined with the subsequent acquisition, comparison and iterative adjustment process, the output voltage phase of the backup power supply can be continuously optimized to ensure that its phase difference with the synchronization reference time is stable within the preset dead zone range. This provides a key phase matching guarantee for the smooth switching of the main and backup power supplies, and further improves the reliability and stability of the sauna room power supply switching.

[0076] S6. When the output voltage waveform reaches the zero-crossing point again, control the sauna room to smoothly switch from the main power supply to the backup power supply.

[0077] In this embodiment of the invention, controlling the sauna room to smoothly switch from the main power supply to the backup power supply when the output voltage waveform reaches the zero-crossing point again includes: Linear extrapolation is performed on the historical zero-crossing time series of the main power supply to determine the switching time window of the sauna room; Within the switching time window, the real-time voltage waveform data of the main power supply is captured, and the real-time voltage waveform data is zero-crossing detected to obtain the precise time when the real-time voltage waveform data reaches the zero-crossing point again. At the precise moment, the main power supply is cut off, the backup power supply is turned on, and the power supply voltage waveform across the heating load in the sauna is collected in real time. The power supply voltage waveform is comprehensively evaluated to complete the smooth switching process of the dual power supply in the sauna room.

[0078] Collect all zero-crossing time data captured during the past operation of the main power supply, arrange them in chronological order, and form a historical zero-crossing time series of the main power supply. Based on the time interval pattern between adjacent zero-crossings in this series, construct a linear trend model, extend along this linear trend in the future, and predict the possible time interval of the next zero-crossing. This time interval containing the predicted zero-crossing is determined as the sauna room switching time window.

[0079] Within the established switching time window, using the same fixed sampling interval as before, the real-time voltage waveform data of the main power supply output is continuously captured, and the instantaneous voltage value corresponding to each sampling moment is recorded point by point. These real-time acquired voltage waveform data are analyzed point by point, closely monitoring the positive and negative attributes of the voltage value. When the voltage value is detected to change from positive to negative or from negative to positive, the specific time point corresponding to this change is accurately recorded. This time point is the precise moment when the real-time voltage waveform data reaches the zero-crossing point again.

[0080] When the precise moment arrives, the control circuit simultaneously performs two operations: one is to cut off the power supply circuit from the main power source to the sauna heating load, and the other is to turn on the power supply circuit from the backup power source to the heating load, ensuring that the cutting off of the main power source and the turning on of the backup power source are completely synchronized. At the same time, the voltage acquisition device is activated to continuously acquire the power supply voltage waveform across the sauna heating load in real time, recording the changes in voltage across the load during and after the switching process.

[0081] A multi-dimensional comprehensive evaluation is performed on the collected power supply voltage waveforms at both ends of the heating load. Specifically, this includes checking whether the voltage amplitude is stable within the rated operating range, whether the voltage phase remains continuous without abrupt changes, and whether the voltage fluctuation amplitude is controlled within the preset allowable value. When the evaluation results show that the amplitude, phase, and fluctuation of the power supply voltage waveform all meet the requirements for stable operation of the sauna room, the smooth switching process of the sauna room's dual power supply is completed.

[0082] The beneficial effects are as follows: by linearly extrapolating the historical zero-crossing time series, the switching time window can be accurately locked, providing a clear range for the re-capture of the zero-crossing point and ensuring the efficient acquisition of precise moments; the main power supply is cut off and the backup power supply is turned on simultaneously at the precise moment, and combined with the comprehensive evaluation of the power supply voltage waveforms at both ends of the load, the voltage fluctuations and power interruptions during the switching process are minimized, achieving a seamless and smooth transition between the main and backup power supplies, effectively ensuring the continuous and stable operation of the sauna heating load, and further improving the reliability and stability of the entire power supply system.

[0083] like Figure 2 The diagram shown is a functional block diagram of a sauna room power supply stabilization system based on dual power supply switching, provided by an embodiment of the present invention.

[0084] The sauna power supply stabilization system 100 based on dual power supply switching described in this invention can be installed in electronic devices. Depending on the functions implemented, the sauna power supply stabilization system 100 may include a disturbance feature extraction module 101, a failure threshold determination module 102, a pre-switching process triggering module 103, a phase difference signal output module 104, a voltage phase adjustment module 105, and a power switching module 106. The module described in this invention can also be called a unit, which refers to a series of computer program segments that can be executed by the processor of an electronic device and can perform a fixed function, stored in the memory of the electronic device.

[0085] In this embodiment, the functions of each module / unit are as follows: The disturbance feature extraction module 101 is used to sample the output voltage waveform of the main power supply of the sauna room in real time, obtain the sine wave signal of the main power supply, and identify the phase change point and amplitude dip in the sine wave signal to obtain the real-time disturbance feature sequence of the main power supply. The failure threshold determination module 102 is used to perform trend prediction analysis on the real-time disturbance feature sequence to obtain the dynamic change trend of the real-time disturbance feature sequence, and determine the failure threshold of the main power supply based on the dynamic change trend. The pre-switching process triggering module 103 is used to trigger the pre-switching process when the cumulative effect of the real-time disturbance feature sequence exceeds the failure threshold, and simultaneously capture the zero-crossing point of the main power supply. The phase difference signal output module 104 is used to compare and analyze the current output voltage phase of the backup power supply in the sauna room with the synchronization reference time, using the zero crossing point as the synchronization reference time, to obtain the phase difference signal of the sauna room. The voltage phase adjustment module 105 is used to adjust the pulse frequency of the backup power supply according to the phase difference signal until the phase difference between the current output voltage phase and the synchronization reference time is within a preset dead zone range. The power switching module 106 is used to control the sauna room to smoothly switch from the main power supply to the backup power supply when the output voltage waveform reaches the zero crossing point again.

[0086] In the several embodiments provided by this invention, it should be understood that the disclosed methods and systems can be implemented in other ways. For example, the system embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.

[0087] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0088] Furthermore, the functional modules in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.

[0089] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0090] This application embodiment can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence is the theory, method, technology, and application system that uses digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.

[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A method for stabilizing power supply in a sauna room based on dual power supply switching, characterized in that, The method includes: S1. The output voltage waveform of the main power supply of the sauna room is sampled in real time to obtain the sinusoidal signal of the main power supply, and the phase change point and amplitude dip in the sinusoidal signal are identified to obtain the real-time disturbance characteristic sequence of the main power supply. S2. Perform trend prediction analysis on the real-time disturbance feature sequence to obtain the dynamic change trend of the real-time disturbance feature sequence, and determine the failure threshold of the main power supply based on the dynamic change trend. S3. When the cumulative effect of the real-time disturbance feature sequence exceeds the failure threshold, a pre-switching process is triggered, and the zero-crossing point of the main power supply is captured at the same time. S4. Using the zero-crossing point as the synchronization reference time, compare and analyze the current output voltage phase of the backup power supply in the sauna room with the synchronization reference time to obtain the phase difference signal of the sauna room. S5. Adjust the pulse frequency of the backup power supply according to the phase difference signal until the phase difference between the current output voltage phase and the synchronization reference time is within the preset dead zone range. S6. When the output voltage waveform reaches the zero-crossing point again, control the sauna room to smoothly switch from the main power supply to the backup power supply.

2. The method for stabilizing power supply in a sauna room based on dual power supply switching as described in claim 1, characterized in that, The output voltage waveform of the main power supply in the sauna room is sampled in real time to obtain a sinusoidal signal of the main power supply. Phase abrupt changes and amplitude dips in the sinusoidal signal are identified to obtain a real-time disturbance characteristic sequence of the main power supply, including: The output voltage waveform of the main power supply of the sauna room is sampled at intervals to obtain the voltage timing data of the main power supply; The voltage timing data is reconstructed using power frequency synchronization to obtain the sinusoidal signal of the main power supply; The sinusoidal signal is decomposed into analysis windows of different time scales. Within the analysis window, window-specific perturbation detection is performed on the sinusoidal signal to obtain the phase abrupt change points and amplitude dips of the sinusoidal signal. The phase abrupt change points and amplitude dips are dimensionality-reduced and encoded to obtain the standardized descriptor of the sinusoidal signal; Arrange the standardized descriptors in chronological order, and use the current power state of the sauna as the context weight to weight and correct the strength of the standardized descriptors, thereby obtaining the real-time disturbance feature sequence of the main power supply.

3. The method for stabilizing power supply in a sauna room based on dual power supply switching as described in claim 1, characterized in that, The step of performing trend prediction analysis on the real-time disturbance feature sequence to obtain the dynamic change trend of the real-time disturbance feature sequence, and determining the failure threshold of the main power supply based on the dynamic change trend, includes: The real-time perturbation feature sequence is segmented by a sliding window to obtain a sequence analysis segment of the real-time perturbation feature sequence; Extract the monotonic changes of feature values ​​in the sequence analysis segment on the time axis to obtain a monotonic trend description of the real-time perturbation feature sequence; Fluctuation pattern analysis is performed on the sequence analysis segment to obtain a description of the volatility trend of the real-time disturbance characteristic sequence; The monotonic trend description and the volatility trend description are concatenated by tensors to obtain the comprehensive trend vector of the real-time perturbation feature sequence; By performing trajectory fitting on the comprehensive trend vector, a high-dimensional trend evolution trajectory of the real-time perturbation feature sequence is obtained; The high-dimensional trend evolution trajectory is subjected to feature enhancement processing, and the enhanced trend evolution trajectory is used as the dynamic change trend of the real-time perturbation feature sequence. The failure threshold of the main power supply is adaptively determined based on the slope direction and curvature of the evolution trajectory in the dynamic change trend.

4. The method for stabilizing power supply in a sauna room based on dual power supply switching as described in claim 3, characterized in that, The step of adaptively determining the failure threshold of the main power supply based on the slope direction and curvature of the evolution trajectory in the dynamic change trend includes: Extract the trajectory segment corresponding to the complete change cycle in the dynamic change trend; Analyze the overall slope direction and curvature variation of the trajectory segment; When the overall slope direction is negative and the degree of curvature change exceeds the preset curvature sensitivity threshold, the degree of curvature change is used as the first adjustment coefficient of the main power supply. Obtain the heating load operating power of the sauna room, and determine the second adjustment coefficient of the main power supply based on the heating load operating power; Threshold determination is performed on the first adjustment coefficient and the second adjustment coefficient to obtain the failure threshold of the main power supply.

5. A method for stabilizing power supply in a sauna room based on dual power supply switching as described in claim 1, characterized in that, When the cumulative effect of the real-time disturbance feature sequence exceeds the failure threshold, a pre-switching process is triggered, and the zero-crossing point of the main power supply is captured, including: The real-time perturbation feature sequence is decomposed into a pattern to obtain the instantaneous perturbation features and trend degradation features of the real-time perturbation feature sequence. Statistical analysis is performed on the instantaneous disturbance characteristics to obtain the amplitude distribution and occurrence frequency of the instantaneous disturbance characteristics, and the degradation rate of the trend degradation characteristics is analyzed at the same time. By integrating the amplitude distribution, the occurrence frequency, and the degradation rate, a comprehensive effect index of the real-time perturbation feature sequence is obtained; The comprehensive effect index and the failure threshold are compared in real time. When the comprehensive effect index exceeds the failure threshold, a power switching trigger command for the sauna room is generated, and the zero-crossing point of the main power supply is obtained in parallel.

6. A method for stabilizing power supply in a sauna room based on dual power supply switching as described in claim 5, characterized in that, The parallel acquisition of the zero-crossing point of the main power supply includes: The sinusoidal signal of the main power supply is subjected to multi-stage digital filtering to obtain the clean signal of the main power supply. Differential symbol analysis is performed on the pure signal to obtain candidate zero-crossing points of the main power supply; By statistically analyzing the time intervals of the candidate zero-crossing points, the distribution dispersion of the candidate zero-crossing points is obtained. Based on the distribution dispersion, a consistency check is performed on the candidate zero-crossing points, and the first candidate zero-crossing point that passes the check is taken as the zero-crossing point of the main power supply.

7. A method for stabilizing power supply in a sauna room based on dual power supply switching as described in claim 1, characterized in that, The step of comparing and analyzing the current output voltage phase of the backup power supply in the sauna room with the synchronization reference time, using the zero-crossing point as the synchronization reference time, to obtain the phase difference signal of the sauna room, includes: The zero-crossing point is used as the synchronization reference time of the main power supply, and the current output voltage waveform of the sauna room under the backup power supply is synchronously sampled with the synchronization reference time as the time origin to obtain the waveform data of the backup power supply. The waveform data is subjected to zero-crossing detection to obtain the actual zero-crossing time of the backup power supply; Based on the synchronization reference time and the theoretical value of the power frequency cycle of the backup power supply, the theoretical zero-crossing time of the sauna room is determined. By performing a difference analysis between the actual zero-crossing time and the theoretical zero-crossing time, the original time deviation value of the sauna room is obtained. The original time deviation value is normalized to obtain the normalized phase difference value sequence of the sauna room; The short-term fluctuation characteristics of the normalized phase difference sequence are analyzed, and the short-term fluctuation characteristics are mapped to the dynamic weighting factor of the sauna room. Based on the dynamic weighting factor and the normalized phase difference value sequence, the phase difference signal of the sauna room is calculated, wherein the calculation formula for the phase difference signal is: ; in, This represents the phase difference signal. This represents the total number of phase differences in the normalized phase difference sequence. Indicates the first One normalized phase difference value, Indicates the first A dynamic weighting factor.

8. A method for stabilizing power supply in a sauna room based on dual power supply switching as described in claim 1, characterized in that, The step of adjusting the pulse frequency of the backup power supply according to the phase difference signal until the phase difference between the current output voltage phase and the synchronization reference time is within a preset dead zone range includes: The phase difference signal is orthogonally decomposed to obtain the polarity and amplitude characteristics of the phase difference signal; Based on the polarity and amplitude characteristics, the pulse frequency of the backup power supply is adjusted to change the output voltage frequency of the backup power supply. After the output voltage frequency is adjusted, the updated output voltage phase of the backup power supply is then acquired. The updated output voltage phase is compared and analyzed with the synchronization reference time to obtain the updated phase difference signal of the sauna room; Based on a preset dead zone range, the updated phase difference signal is iteratively adjusted until the adjusted phase difference signal is within the dead zone range.

9. A method for stabilizing power supply in a sauna room based on dual power supply switching as described in claim 1, characterized in that, When the output voltage waveform reaches the zero-crossing point again, controlling the sauna room to smoothly switch from the main power supply to the backup power supply includes: Linear extrapolation is performed on the historical zero-crossing time series of the main power supply to determine the switching time window of the sauna room; Within the switching time window, the real-time voltage waveform data of the main power supply is captured, and the real-time voltage waveform data is zero-crossing detected to obtain the precise time when the real-time voltage waveform data reaches the zero-crossing point again. At the precise moment, the main power supply is cut off, the backup power supply is turned on, and the power supply voltage waveform across the heating load in the sauna is collected in real time. The power supply voltage waveform is comprehensively evaluated to complete the smooth switching process of the dual power supply in the sauna room.

10. A sauna room power supply stabilization system based on dual power supply switching, characterized in that, The system for implementing the sauna room power supply stabilization method based on dual power supply switching as described in claim 1 includes: The disturbance feature extraction module is used to sample the output voltage waveform of the main power supply of the sauna room in real time, obtain the sinusoidal signal of the main power supply, and identify the phase change points and amplitude dips in the sinusoidal signal to obtain the real-time disturbance feature sequence of the main power supply. The failure threshold determination module is used to perform trend prediction analysis on the real-time disturbance feature sequence to obtain the dynamic change trend of the real-time disturbance feature sequence, and determine the failure threshold of the main power supply based on the dynamic change trend. The pre-switching process triggering module is used to trigger the pre-switching process when the cumulative effect of the real-time disturbance characteristic sequence exceeds the failure threshold, and simultaneously capture the zero-crossing point of the main power supply. The phase difference signal output module is used to compare and analyze the current output voltage phase of the backup power supply in the sauna room with the synchronization reference time, using the zero crossing point as the synchronization reference time, to obtain the phase difference signal of the sauna room. The voltage phase adjustment module is used to adjust the pulse frequency of the backup power supply according to the phase difference signal until the phase difference between the current output voltage phase and the synchronization reference time is within a preset dead zone range. A power switching module is used to control the sauna room to smoothly switch from the main power supply to the backup power supply when the output voltage waveform reaches the zero crossing point again.