A timing feature reasoning acceleration method for end-side real-time arc detection

By introducing a historical state maintenance mechanism into photovoltaic inverters, the real-time performance and accuracy of arc detection on low-computing-power chips have been improved, solving the problems of wasted computing resources and misjudgment in existing technologies, and meeting the real-time detection requirements of photovoltaic inverters.

CN123158079APending Publication Date: 2026-11-24SHANGHAI SHENSILICON SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611165783.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-03
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies for arc detection in photovoltaic inverters suffer from redundant and wasteful computational resources, making it difficult to meet real-time and accuracy requirements on low-performance chips, and prone to misjudgment, especially under complex operating conditions.

Method used

A historical state maintenance mechanism is introduced to transform the arc detection process into a recursive form of current segment feature extraction and historical temporal context reuse. By processing only new data segments and reusing historical states in each detection cycle, redundant calculations and storage access are reduced.

Benefits of technology

It significantly reduces the real-time inference overhead of edge chips, maintains temporal context information, improves detection accuracy and real-time performance, and solves the problems of wasted computing resources and misjudgment in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158079A_ABST
    Figure CN123158079A_ABST
Patent Text Reader

Abstract

This application discloses a method for accelerating timing feature inference for real-time arc detection at the edge, relating to the field of arc detection technology. It includes: initializing historical states; dividing a continuous current signal into current data segments; performing feature processing on the current data segments to obtain current timing features; inputting the current timing features and historical states into a timing feature inference unit to generate arc confidence or classification results, wherein the historical states are used to provide the timing context of processed historical segments to avoid repeated inference of the entire window; generating and updating new historical states based on the current segment, current timing features, and intermediate inference results for use in the next detection cycle; outputting the inference results; and re-initializing the historical states in case of an anomaly. This invention eliminates redundant computation in continuous inference through slice processing and state reuse, ensuring real-time performance on low-computing-power edge chips while preserving the complete timing context, and freeing up computing resources to support larger-scale detection models.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of arc detection technology, and more specifically to a temporal feature reasoning acceleration method for real-time arc detection at the end side. Background Technology

[0002] In photovoltaic power generation systems, DC-side arcing faults are one of the main risks causing fires and power generation losses. Therefore, photovoltaic inverters need to perform arcing detection in real time during operation to promptly detect faults and trigger protection actions. Currently, the existing technologies closest to this invention mainly include the following three categories: First, the offline complete window inference method, which first collects continuous current data within a relatively long time window, then calculates the time-frequency characteristics within the window once and inputs them into the detection model, outputting the arcing identification result of the entire data segment. This method is usually used for data analysis or non-real-time diagnostic scenarios. Second, the end-side periodic complete window inference method, which reads a fixed-length historical data segment before the current moment in each detection cycle, recalculates all features within the complete window, and performs model inference to output the current detection result. This method has been applied in some end-side real-time detection systems. Third, the detection model (such as CNN, RNN, LSTM, or Transformer-type time series models) trained on the server side is directly deployed to the end-side chip, and the complete input window from the training phase is used for inference.

[0003] The aforementioned existing technologies have significant drawbacks in practical applications. In continuous real-time detection scenarios, the input data windows of adjacent detection cycles highly overlap. For example, each cycle may only add a small number of new sampling points, but existing methods require recalculating features and performing model inference from scratch for the entire historical window in each cycle, resulting in a large amount of redundant calculations. This computational redundancy accumulates continuously during long-term continuous operation, causing a significant waste of computing power and power consumption of the edge chip. Furthermore, the arcing detection module of a photovoltaic inverter is usually integrated inside the inverter. Due to constraints on overall cost, power consumption, space, and reliability requirements, it often uses edge chips with lower computing power and smaller storage (such as MCUs or low-computing-power embedded processors) rather than high-performance general-purpose processors. Existing methods for repeated inference of the entire window may cause the single inference delay to exceed the response time threshold required by the sampling cycle or protection action on such hardware, making it difficult to meet real-time performance requirements. To meet real-time requirements on low-computing-power chips, in practice, measures such as reducing model size, lowering sampling rate, reducing the number of feature channels, or shortening the historical window length have been forced to be adopted. Although these approaches can compromise at the computational level, they weaken the model's ability to extract and distinguish arcing features, especially affecting the detection accuracy of weak arcing, early arcing, or photovoltaic systems with complex current noise and variable operating conditions. If the computational load of a single inference is reduced by shortening the input window, the historical range that the model can perceive will be narrowed, which may result in the loss of key contextual timing patterns in the development of arcing faults, leading to unstable detection results or misjudgments.

[0004] The root cause of these shortcomings lies in the fact that existing technologies treat each detection cycle as an independent inference task, executing it according to a fixed paradigm of full-window acquisition → full-window feature calculation → full-window inference. This fails to leverage the inherent high overlap of input data between adjacent cycles, and also neglects the design concept of state reuse during continuous inference at the edge. While directly using traditional temporal models (such as RNNs and LSTMs) for time-step recursion at the edge can preserve temporal context, the iterative computation step-by-step still incurs significant computational overhead and storage access burdens. Therefore, how to significantly reduce the amount of repetitive computation in real-time inference at the edge while effectively preserving temporal context information, and how to ensure that the resulting freed-up computing resources can be used to improve model detection accuracy rather than merely to meet basic real-time requirements, has become a long-standing engineering challenge in this field. Summary of the Invention

[0005] The purpose of this invention is to provide a temporal feature inference acceleration method for real-time arc detection on the edge. By introducing a historical state maintenance mechanism independent of the model inference process, the continuous arc detection process is transformed into a recursive form of current segment feature extraction and historical temporal context reuse. This allows each detection cycle to complete inference by processing only the newly added data segments, fundamentally eliminating the computational and storage access redundancy caused by repeated extraction of complete window features and repeated forward computation of the model between adjacent cycles. This significantly reduces the real-time inference overhead of the edge chip, enabling low-cost, low-computing-power chips to operate stably for a long time while meeting millisecond-level response requirements. At the same time, since the historical state retains the complete temporal context, it avoids the loss of critical fault precursor information caused by truncated input windows. In addition, the significant reduction in computational load frees up resource space for selecting larger-scale and more expressive detection models on the same hardware platform during the design phase, effectively alleviating the traditional contradiction between detection accuracy and real-time performance.

[0006] To achieve the above objectives, the present invention provides the following technical solution: In a first aspect, the present invention provides a time-series feature inference acceleration method for real-time arc detection at the end side, applied to the arc detection module of a photovoltaic inverter, comprising: In response to the start-up, reset, or first entry into the detection process of the arc detection module, the historical state is initialized. The historical state is used to represent the timing context before the current detection cycle. The DC-side current signal is received according to the preset sampling period, and the continuous current signal is divided into current data segments arranged in time sequence. Each current data segment corresponds to a real-time detection period. Obtain the currently saved historical state and perform feature processing on the current data segment to obtain the current time series features; The current temporal features and historical states are input into the temporal feature inference unit, which generates the arc confidence or classification result for the current detection period based on the current temporal features and historical states. The historical states are used to provide temporal context information of processed historical data segments to avoid repeated inference for the complete historical window. A new historical state is generated based on the current data segment, the current time series features, and the intermediate results in the inference process of this cycle. The saved historical state is then updated with the new historical state for use in the next detection cycle. Output the arcing confidence level or classification result of the current detection period to the alarm output unit; Determine if an anomaly has occurred. If an anomaly has occurred, reinitialize the historical state and return to the initialization step. If no anomaly has occurred, retain the updated historical state and return to the partitioning step to enter the next detection cycle.

[0007] In some embodiments, the t-th current data segment in the current data segment is represented as Xt = {ir, ir+1,..., ir+L-1}, where ir represents the starting sampling point of the segment and L represents the segment length; feature processing includes one or more of the following methods in combination: normalization, DC component removal, filtering, resampling, differential processing, moving statistics, frequency domain transformation, time-frequency transformation, feature concatenation, scale alignment, and tensor quantization; the current time series feature is one or more of the following: original current segment, time domain feature, frequency domain feature, and time-frequency feature.

[0008] In some embodiments, feature processing includes frequency domain transformation or time-frequency transformation, and the current time-series feature includes frequency domain feature or time-frequency feature.

[0009] In some embodiments, the historical state includes one or more combinations of the following data: historical input fragments, historical features, model hidden states, and intermediate caches; the temporal feature inference unit is any one of CNN-type models, RNN-type models, LSTM-type models, Transformer-type models, or attention mechanism models.

[0010] In some embodiments, the temporal feature inference unit performs the main computation on the current temporal feature and does not repeat the full window inference on the temporal context that has been expressed by the historical state; the intermediate result is the data used by the temporal feature inference unit to preserve the temporal context, including one or more combinations of the following data: the summary feature of the current segment, the fused context vector, the hidden state, the cached feature, the partial convolution result, and the attention key-value cache.

[0011] In some embodiments, an anomaly includes one or more of the following: detection module reset, sampling interruption, data fragment loss, discontinuous timestamps, invalid historical state; reinitializing the historical state includes setting the historical state to any one of an empty state, a zero state, or a preset state.

[0012] Secondly, the present invention also provides a timing feature inference acceleration device for real-time arc detection at the end side, applied to the arc detection module of a photovoltaic inverter, the device comprising: The state initialization module is used to initialize the historical state in response to the start-up, reset, or first entry into the detection process of the arc detection module. The historical state is used to represent the timing context before the current detection cycle. The signal division module is used to receive DC side current signals according to a preset sampling period, divide the continuous current signal into current data segments arranged in time sequence, and each current data segment corresponds to a real-time detection period. The state preservation module is used to obtain the currently saved historical state and perform feature processing on the current data segment to obtain the current time series features; The feature inference module is used to input the current temporal features and historical states into the temporal feature inference unit. The temporal feature inference unit generates the arc confidence or classification result of the current detection period based on the current temporal features and historical states. The historical states are used to provide temporal context information of processed historical data segments to avoid repeated inference for the complete historical window. The state generation module is used to generate new historical states based on the current data segment, the current time series features, and the intermediate results in the inference process of this cycle, and update the saved historical states with the new historical states for the next detection cycle. The result output module is used to output the arc confidence or classification result of the current detection period to the alarm output unit; The anomaly detection module is used to determine whether an anomaly has occurred. If an anomaly has occurred, the historical state is reinitialized and the initialization step is returned. If no anomaly has occurred, the updated historical state is retained and the partitioning step is returned to enter the next detection cycle.

[0013] Thirdly, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the temporal feature inference acceleration method for real-time arc detection on the end side provided in the first aspect.

[0014] Fourthly, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the temporal feature inference acceleration method for real-time arc detection on the end side provided in the first aspect.

[0015] Fifthly, the present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the temporal feature inference acceleration method for real-time arc detection on the end side provided in the first aspect.

[0016] The beneficial effects of this invention are as follows: The method of this invention, by introducing a historical state maintenance mechanism independent of the model inference process, transforms the continuous arc detection process into a recursive form of current segment feature extraction and historical temporal context reuse. This allows each detection cycle to complete inference by only processing newly added data segments, fundamentally eliminating the computational and storage access redundancy caused by repeated extraction of complete window features and repeated forward calculations of the model between adjacent cycles. This significantly reduces the real-time inference overhead of the edge chip, enabling low-cost, low-computing-power chips to operate stably for a long time while meeting millisecond-level response requirements. At the same time, since the historical state retains the complete temporal context, it avoids the loss of critical fault precursor information caused by truncated input windows. In addition, the significant reduction in computational load frees up resource space for selecting a larger-scale, more expressive detection model on the same hardware platform during the design phase, effectively alleviating the traditional contradiction between detection accuracy and real-time performance.

[0017] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, the preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings. Attached Figure Description

[0018] Figure 1 This is a flowchart illustrating a temporal feature inference acceleration method for real-time arc detection at the end side, according to an embodiment of the present invention. Figure 2 This is a schematic diagram of a temporal feature inference acceleration device for real-time arc detection at the end side, according to an embodiment of the present invention. Figure 3 This is a schematic diagram of an electronic device structure provided in an embodiment of this application. Detailed Implementation

[0019] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] It should be noted that references to "an embodiment," "embodiment," "example embodiment," etc., in this specification refer to the described embodiment including specific features, structures, or characteristics; however, not every embodiment must include these specific features, structures, or characteristics. Furthermore, such expressions do not refer to the same embodiment. Moreover, when describing specific features, structures, or characteristics in conjunction with embodiments, whether or not explicitly described, it is indicated that incorporating such features, structures, or characteristics into other embodiments is within the knowledge of those skilled in the art.

[0021] Furthermore, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0022] like Figure 1 As shown, this application provides a time-series feature inference acceleration method for real-time arc fault detection on the end side, which is applied to the arc fault detection module of a photovoltaic inverter. This arc fault detection module is typically integrated inside the photovoltaic inverter and is used to monitor the DC-side current signal in real time during inverter operation and determine whether an arc fault has occurred. The DC-side current signal of the photovoltaic inverter contains rich time-domain and frequency-domain information. When an arc fault occurs, specific noise components and spectral changes appear in the current signal. Arc fault detection can be achieved by analyzing these signal characteristics. However, end-side chips are limited by cost, power consumption, and space, resulting in relatively limited computing power and storage resources. Therefore, this application aims to reduce the amount of repetitive computation in the continuous detection process through state reuse and fragmented inference, enabling the arc fault detection module to operate stably under low-resource conditions.

[0023] S101, in response to the start-up, reset, or first entry into the detection process of the arc detection module, initialize the historical state.

[0024] Historical states are used to represent the temporal context prior to the current detection period.

[0025] Specifically, when the arc detection module starts, resets, or enters the detection process for the first time, it first performs the initialization operation of the historical state. The historical state is a data set representing the temporal context preceding the current detection cycle. Its function is to provide the temporal feature inference unit with information contained in processed historical data segments, allowing the current detection cycle to obtain the necessary context without repeatedly inputting the complete historical window. The specific form of the historical state depends on the model structure and implementation method used, and can include, but is not limited to, one or more combinations of the following data: historical input segments, historical features, model hidden states, and intermediate caches. For example, when using an LSTM model as the inference unit, the historical state can be the hidden state and cell state of the LSTM; when using a Transformer model, the historical state can be the key-value cache of the attention module; when using a convolutional neural network, the historical state can be the convolutional intermediate features or pooling results of previous segments. During initialization, the historical state can be set to an empty state, a zero state, or a preset state. An empty state indicates the absence of any historical information and is suitable for scenarios where there is no prior knowledge upon initial startup. A zero state sets all historical state values ​​to zero and is the default initial condition in some model structures. A preset state can be a valid state pre-calibrated under specific operating conditions or loaded from storage units, suitable for rapid startup under known operating conditions. This initialization step is automatically executed by the program when the detection process starts and does not rely on user interface interaction.

[0026] S102, receives DC side current signal according to preset sampling period, divides continuous current signal into current data segments arranged in time sequence, and each current data segment corresponds to a real-time detection period.

[0027] Specifically, after initialization, the arc detection module receives the current signal from the DC side of the photovoltaic inverter according to a preset sampling period and divides the continuous current signal into multiple current data segments arranged in chronological order. Each current data segment corresponds to a real-time detection period, the length of which can be set according to the actual application scenario. For example, each detection period may correspond to several power frequency cycles or a fixed number of milliseconds of data accumulation time. The t-th current data segment can be represented as Xt = {ir, ir+1, ..., ir+L-1}, where ir represents the starting sampling point of the segment and L represents the segment length. The segment length L can be determined according to the specific application scenario and hardware computing power. For example, L can be set to 128, 256, or 512 sampling points to balance real-time performance and information content. The current data segment is a discrete sampling sequence of the continuous current signal within a time window. There is overlap or connection between data segments in adjacent detection periods, depending on the relative size of the segment length and the detection period duration. When the detection period duration is less than the segment length, adjacent segments partially overlap; when they are equal, the segments are connected end-to-end.

[0028] S103: Obtain the currently saved historical state and perform feature processing on the current data segment to obtain the current time series features.

[0029] Specifically, after acquiring the current data segment, feature processing is performed on the current data segment to obtain the current time-series features. Feature processing refers to one or more processing operations performed to enable the current data segment to be effectively processed by subsequent time-series feature inference units. Specifically, feature processing may include normalization, that is, scaling the current sampled values ​​to a uniform range, such as normalizing the amplitude to [-1, 1] or [0, ... 1] Interval, to eliminate the impact of signal amplitude differences under different inverters or operating conditions on model inference; DC component removal, that is, subtracting the mean component from the current signal, because the discrimination information of arcing faults is mainly concentrated in the AC component and noise component, and DC bias is invalid or interference information; filtering, that is, removing noise in a specific frequency band through low-pass, high-pass or band-pass filters, such as removing power frequency harmonics or high-frequency switching noise to highlight the characteristic frequency band of arcing; resampling, that is, changing the time resolution of the signal, such as downsampling a high sampling rate signal to a fixed frequency required by the model input, to balance the amount of data and computational efficiency; differencing, that is, calculating the difference between adjacent sampling points to extract transient change information of the signal; sliding Statistics, specifically calculating statistical quantities such as mean, variance, peak value, and kurtosis within a sliding window to characterize the local variation of the signal; frequency domain transformation, converting the time-domain signal to a frequency-domain representation using Fourier transform to extract the features of arcing faults at specific frequency components; time-frequency transformation, obtaining the joint distribution information of the signal in both time and frequency dimensions using short-time Fourier transform or wavelet transform; feature concatenation, combining the feature vectors obtained from the above processing to form a richer expression; scale alignment, adjusting features from different sources or with different sampling rates to the same scale or dimension for subsequent processing; and tensor quantization, converting the data into a multidimensional tensor format required for model input. After processing using one or more of the above methods, the resulting current time-series feature can be one or a combination of the original current segment itself, time-domain features, frequency-domain features, and time-frequency features. Those skilled in the art will understand that the specific form and dimension of the current time-series feature depend on the model input design and feature engineering strategy, and this embodiment is not limited thereto. In this step, since feature processing is performed only on the current data segment (the newly added sampling point of length L), rather than reprocessing the entire historical window, the computational load is significantly reduced compared to the traditional full window method. This is especially suitable for continuous operation scenarios with short detection cycles and high sampling rates. By processing only the newly added segment in the feature processing stage, this embodiment of the application can effectively reduce the signal preprocessing time in each cycle, enabling the edge chip to complete feature extraction within the sampling interval without backlog.

[0030] S104, input the current time-series features and historical states into the time-series feature inference unit, and the time-series feature inference unit generates the arc confidence or classification result of the current detection period based on the current time-series features and historical states.

[0031] The historical state is used to provide temporal context information of processed historical data segments to avoid repeated reasoning on the complete historical window.

[0032] Specifically, after feature processing, the currently saved historical state is read, and the current temporal features and the historical state are input together into the temporal feature inference unit. The temporal feature inference unit is the core inference component in this embodiment, used to output the arc confidence or classification result of the current detection period based on the current temporal features and the historical state. This inference unit can be implemented using various temporal model structures, such as any one of CNN-type models, RNN-type models, LSTM-type models, Transformer-type models, or attention mechanism models. Taking a CNN-type model as an example, local temporal features can be extracted through convolutional layers and pooling layers, and the historical state can be designed as a cache of convolutional feature maps of previous segments; taking an LSTM model as an example, the current temporal features of each detection period can be used as the input of the current time step, while the hidden state and cell state output from the previous period can be used as the input of the historical state, and the LSTM unit calculates the output of the current period and the updated hidden state accordingly; taking a Transformer model as an example, the current temporal features can be used as the current query vector, and the key-value cache saved in the historical state can be used as the context, and the two can be fused through an attention mechanism to obtain the discrimination result of the current period. In this embodiment, the key role of historical states in the inference process is that they provide the inference unit with temporal context information of processed historical data segments. This allows the inference unit to refer to the fault development trend, background noise level, and historical changes in current waveforms in previous segments when determining whether there are signs of arcing in the current segment, without having to re-input all the original data of the complete historical window into the model. In other words, the inference unit performs the main calculations on the current temporal features, and does not repeat the complete window inference on the temporal context already expressed by the historical states. This design can significantly reduce the forward computation of each detection cycle while ensuring that the model perceives sufficient historical context. For arcing detection, temporal context is crucial because arcing faults often develop gradually from weak signals. A single short window may not be able to capture the evolution trend of the fault, while historical states effectively preserve this trend information, avoiding the problem of missing early weak arcing due to window truncation. This step decomposes the inference task into two parts: "new segment processing + historical state reuse," ensuring that the computational complexity of each detection cycle does not increase with the growth of the historical window, thus enabling low-computing-power chips to meet real-time inference requirements without sacrificing context length.

[0033] The temporal feature inference unit generates the inference result for the current detection period based on the current temporal features and historical states. This result can be either the arcing confidence level or a 0 / 1 classification result. The arcing confidence level pt is a probability value ranging from [0, 1], representing the probability or confidence level of arcing in the current detection period. The closer the value is to 1, the higher the probability of arcing; the closer it is to 0, the higher the probability of normal. The 0 / 1 classification result yt is a binary output, where yt = 1 indicates arcing and yt = 0 indicates normal. Whether to use confidence output or classification output can be determined according to the needs of the downstream alarm strategy: confidence output can be combined with adjustable thresholds to achieve flexible sensitivity configuration, suitable for applications with different requirements for false alarm rate and false negative rate in different scenarios; classification output directly gives the judgment result, suitable for simple scenarios that are directly connected to the protection logic. In this embodiment, the output of the inference unit will be used as the final judgment basis for the current detection period and passed to the alarm output unit for subsequent processing.

[0034] S105, generate a new historical state based on the current data segment, the current time series features, and the intermediate results in the inference process of this cycle, and update the saved historical state with the new historical state for use in the next detection cycle.

[0035] Specifically, after the inference process is completed, a new historical state is generated based on the current data segment, the current temporal features, and the intermediate results from the inference process in this cycle. This new historical state is then used to update the stored historical state for the next detection cycle. The intermediate results referred to here are not the final output confidence score or 0 / 1 classification result, but rather the data generated within the inference unit during the computation process to preserve the temporal context. Specifically, intermediate results can include one or more combinations of the following data: summary features of the current segment, i.e., a compact representation obtained after dimensionality reduction or aggregation of the current data segment; fused context vectors, i.e., a comprehensive representation of the current temporal features and historical states combined through attention mechanisms or other fusion methods; hidden states, i.e., internal state variables generated and propagated backward in recurrent neural networks (such as RNN, LSTM, GRU) during time step progression; cached features, i.e., feature maps or pooling results output by previous layers in convolutional neural networks, which can be reused in the next cycle; partial convolution results, i.e., intermediate tensors that have not yet completed all operations in convolutional computation, which can continue processing in the next cycle; and attention key-value cache, i.e., the historical accumulation of key and value matrices in Transformer-like models, used to expand the attention context in the next cycle. The generated new historical states will replace, append, or update the historical states saved in the previous cycle. The replacement method directly overwrites the old state with the new state, suitable for models with fixed state dimensions (such as the hidden states of LSTM); the append method retains the old state in the new state and adds information from the current segment, suitable for models with scalable context length (such as the key-value cache of Transformer); the update method combines the old and new states through weighted fusion or gating mechanisms, suitable for scenarios requiring a smooth transition. This step updates the historical state after each inference cycle, ensuring that the historical state continuously records the latest temporal context, providing accurate historical information for the next cycle; simultaneously, since the update of the historical state is only based on the current segment and intermediate results, there is no need to reprocess all data in the historical window, further reducing computational overhead. This recursive state update mechanism ensures natural information continuity between adjacent detection cycles, avoiding jumps in detection results caused by window truncation.

[0036] S106, output the arc confidence or classification result of the current detection period to the alarm output unit.

[0037] Specifically, after the inference result is generated, the arcing confidence level pt or the 0 / 1 classification result yt for the current detection period is output to the alarm output unit. The alarm output unit is the final result output module in this embodiment, which receives the inference result and transmits the arcing detection result to external protection logic, control logic, or recording logic. The alarm output unit can be implemented using existing threshold judgment or protection control logic. For example, when the arcing confidence level pt exceeds a preset threshold (e.g., 0.7) or the 0 / 1 classification result yt is 1, an arcing protection action is triggered, such as controlling the inverter to stop, disconnecting the DC switch, or issuing an audible and visual alarm signal. At the same time, the detection result can also be written to a log or uploaded to the monitoring system through a communication interface. It should be noted that the specific alarm strategy of the alarm output unit is not the focus of this embodiment. The core of this embodiment lies in the end-side timing feature inference acceleration process before alarm output, and the alarm output is only the final transmission link of the inference result.

[0038] S107, determine whether an anomaly has occurred. If an anomaly has occurred, reinitialize the historical state and return to the initialization step. If no anomaly has occurred, retain the updated historical state and return to the partitioning step to enter the next detection cycle.

[0039] Specifically, after each detection cycle, it is determined whether any abnormal situation has occurred. If an abnormal situation occurs, the historical state is reinitialized and the system returns to the initialization step. If no abnormal situation occurs, the updated historical state is retained and the system returns to the partitioning step to enter the next detection cycle. An abnormal situation refers to an event that may cause the historical state to become invalid or the current inference to become unreliable. This can include one or more of the following: detection module reset (i.e., the arc detection module restarts due to power-on, hardware reset, or software reset); sampling interruption (i.e., the current signal acquisition process is interrupted, resulting in incomplete current data segments); data segment loss (i.e., some sampling points are missing due to buffer overflow or transmission errors); timestamp discontinuity (i.e., the time interval between adjacent data segments jumps, indicating an abnormal acquisition timing); and invalid historical state (i.e., the saved historical state is unusable due to storage errors, version mismatch, or verification failure). When any of the above abnormal situations are detected, the system will clear or reinitialize the historical state, re-execute the initialization process in step one, and set the historical state to any one of the following: empty state, zero state, or preset state, to avoid expired or erroneous historical states contaminating subsequent inference. The anomaly detection and state reset mechanism ensures the system's robustness under non-ideal operating conditions, preventing misjudgments caused by inconsistencies between historical states and current actual signals, thereby improving the reliability of end-side operation. If no anomaly occurs, the updated historical state is retained and the process returns to the partitioned steps, allowing the process to continuously execute according to the detection cycle, achieving continuous real-time operation of arc detection.

[0040] As can be seen from the above process, this embodiment divides the continuous current signal into discrete detection period data segments and introduces a historical state maintenance mechanism independent of the specific model structure. This allows each detection period to process only the newly added segment and reuse the historical state, without needing to repeatedly extract features and perform model inference on the complete historical window. The specific form and update method of the historical state can be flexibly adapted to different time-series model structures, thereby ensuring that the scheme has good versatility and scalability. At the same time, the anomaly judgment and state reset mechanism ensures the stable operation of the system under non-ideal operating conditions, enabling this embodiment to stably execute arc detection tasks on low-cost, low-computing-power end-side chips, meeting the engineering requirements of long-term continuous operation and rapid protection of photovoltaic inverters.

[0041] Based on the same inventive concept, this application also provides a temporal feature inference acceleration device for implementing the aforementioned temporal feature inference acceleration method for real-time arc detection at the end side. The solution provided by this device is similar to the implementation described in the above method. Therefore, the specific limitations of one or more embodiments of the temporal feature inference acceleration device for real-time arc detection at the end side provided below can be found in the limitations of the temporal feature inference acceleration method for real-time arc detection at the end side described above, and will not be repeated here.

[0042] In one embodiment, such as Figure 2 As shown, a timing feature inference acceleration device for real-time arc detection at the end side is provided, applied to the arc detection module of a photovoltaic inverter. The device includes: The state initialization module 30 is used to initialize the historical state in response to the start, reset or first entry into the detection process of the arc detection module. The historical state is used to represent the timing context before the current detection cycle. The signal division module 31 is used to receive the DC side current signal according to the preset sampling period, divide the continuous current signal into current data segments arranged in time sequence, and each current data segment corresponds to a real-time detection period. The state preservation module 32 is used to obtain the currently saved historical state and perform feature processing on the current data segment to obtain the current time series features; The feature reasoning module 33 is used to input the current temporal features and historical states into the temporal feature reasoning unit. The temporal feature reasoning unit generates the arc confidence or classification result of the current detection period based on the current temporal features and historical states. The historical states are used to provide temporal context information of processed historical data segments to avoid repeated reasoning on the complete historical window. The state generation module 34 is used to generate a new historical state based on the current data segment, the current time series features and the intermediate results in the inference process of this cycle, and update the saved historical state with the new historical state for the next detection cycle. The result output module 35 is used to output the arc confidence or classification result of the current detection period to the alarm output unit; The anomaly detection module 36 is used to determine whether an anomaly has occurred. If an anomaly has occurred, the historical state is reinitialized and the initialization step is returned. If no anomaly has occurred, the updated historical state is retained and the partitioning step is returned to enter the next detection cycle.

[0043] This application also provides an electronic device, in some embodiments, referring to... Figure 3 As shown, the electronic device 700 includes an input unit 710, a memory 720, a processor 730, and an output unit 740. The memory 720 stores program instructions that can run on the processor 730. The processor 730 can execute the timing feature inference acceleration method and / or technical solution based on the end-side real-time arc detection described in the foregoing embodiments by calling the program instructions. This electronic device 700 can be a mobile terminal device such as a mobile phone or computer.

[0044] Furthermore, embodiments of this application also provide a computer-readable storage medium for storing a computer program that executes a time-series feature inference acceleration method for real-time arc detection on the end side. For example, computer program instructions, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. The program instructions that invoke the methods of this application may be stored in a fixed or removable storage medium, and / or transmitted via data streams in broadcast or other signal carrying media, and / or stored in a storage medium that operates according to the program instructions.

[0045] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device, or fabricating them separately as individual integrated circuit modules, or fabricating multiple modules or steps as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0046] The technical features of the above embodiments can be arbitrarily integrated. For the sake of brevity, not all possible integrations of the technical features in the above embodiments are described. However, as long as the integration of these technical features does not contradict each other, they should be considered to be within the scope of this specification.

[0047] The above embodiments merely illustrate several implementation methods of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. 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 all fall within the protection scope of the present invention. Therefore, the protection scope of this invention patent should be determined by the appended claims.

Claims

1. A time-series feature reasoning acceleration method for real-time arc detection at the end side, applied to the arc detection module of a photovoltaic inverter, characterized in that, include: In response to the start-up, reset, or first entry into the detection process of the arc detection module, the historical state is initialized, which is used to represent the timing context before the current detection cycle; The DC-side current signal is received according to the preset sampling period, and the continuous current signal is divided into current data segments arranged in time sequence. Each current data segment corresponds to a real-time detection period. Obtain the currently saved historical state and perform feature processing on the current data segment to obtain the current time-series features; The current temporal features and the historical state are input into the temporal feature inference unit, which generates the arc confidence or classification result for the current detection period based on the current temporal features and the historical state. The historical state is used to provide temporal context information of processed historical data segments to avoid repeated inference for the complete historical window. A new historical state is generated based on the current data segment, the current time series features, and the intermediate results in the reasoning process of this cycle, and the saved historical state is updated with the new historical state for use in the next detection cycle. Output the arcing confidence level or classification result of the current detection period to the alarm output unit; Determine if an anomaly has occurred. If an anomaly has occurred, reinitialize the historical state and return to the initialization step. If no anomaly has occurred, retain the updated historical state and return to the partitioning step to enter the next detection cycle.

2. The method according to claim 1, characterized in that, The t-th current data segment is represented as Xt = {ir, ir+1, ..., ir+L-1}, where ir represents the starting sampling point of the segment and L represents the segment length. The feature processing includes one or more of the following methods: normalization, DC component removal, filtering, resampling, differential processing, moving statistics, frequency domain transformation, time-frequency transformation, feature concatenation, scale alignment, and tensor quantization. The current time series feature is one or more of the following: original current segment, time domain feature, frequency domain feature, and time-frequency feature.

3. The method according to claim 2, characterized in that, The feature processing includes frequency domain transformation or time-frequency transformation, and the current time-series features include frequency domain features or time-frequency features.

4. The method according to claim 1, characterized in that, The historical state includes one or more combinations of the following data: historical input fragments, historical features, model hidden states, and intermediate caches; the temporal feature inference unit is any one of CNN-type models, RNN-type models, LSTM-type models, Transformer-type models, or attention mechanism models.

5. The method according to claim 1, characterized in that, The temporal feature inference unit performs the main calculations on the current temporal features and does not repeat the full window inference on the temporal context already expressed by the historical state; the intermediate result is the data used by the temporal feature inference unit to retain the temporal context, including one or more combinations of the following data: the summary features of the current segment, the fused context vector, the hidden state, the cached features, the partial convolution results, and the attention key-value cache.

6. The method according to claim 1, characterized in that, The anomaly includes one or more of the following situations: detection module reset, sampling interruption, data fragment loss, discontinuous timestamps, and invalid historical state; the reinitialization of historical state includes setting the historical state to any one of empty state, zero state, or preset state.

7. A timing feature inference acceleration device for real-time arc detection at the end side, applied to the arc detection module of a photovoltaic inverter, characterized in that, The device includes: The state initialization module is used to initialize the historical state in response to the start-up, reset, or first entry into the detection process of the arc detection module. The historical state is used to represent the timing context before the current detection cycle. The signal division module is used to receive DC side current signals according to a preset sampling period, divide the continuous current signal into current data segments arranged in time sequence, and each current data segment corresponds to a real-time detection period. The state preservation module is used to acquire the currently saved historical state and perform feature processing on the current data segment to obtain the current time series features; The feature reasoning module is used to input the current temporal features and the historical state into the temporal feature reasoning unit, and the temporal feature reasoning unit generates the arc confidence or classification result of the current detection period based on the current temporal features and the historical state. The historical state is used to provide temporal context information of processed historical data segments to avoid repeated reasoning on the complete historical window. The state generation module is used to generate a new historical state based on the current data segment, the current time series features, and the intermediate results in the inference process of this cycle, and update the saved historical state with the new historical state for the next detection cycle. The result output module is used to output the arcing confidence or classification result of the current detection period to the alarm output unit; The anomaly detection module is used to determine whether an anomaly has occurred. If an anomaly has occurred, the historical state is reinitialized and the initialization step is returned. If no anomaly has occurred, the updated historical state is retained and the partitioning step is returned to enter the next detection cycle.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, When the processor executes the computer program, it implements the temporal feature inference acceleration method for real-time arc detection on the end side as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the temporal feature inference acceleration method for real-time arc detection on the end side as described in any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements the temporal feature inference acceleration method for real-time arc detection on the end side as described in any one of claims 1 to 6.