An energy-aware control method and apparatus for processing a timing signal

By combining prediction and constraint methods to dynamically select the computing mode, the energy efficiency, real-time performance, and reliability issues of hybrid computing systems when handling time-varying loads are solved, achieving global energy efficiency optimization and refined adaptive control of the system.

CN123137518APending Publication Date: 2026-11-20SHANGHAI JINNAO MEDICAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611635449.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-22
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing hybrid computing systems struggle to balance energy efficiency, real-time performance, and reliability when handling time-varying loads, especially in high-performance computing modes where static power consumption and startup overhead lead to energy waste and insufficient real-time performance.

Method used

By acquiring the processing tasks of the data unit and the physical constraints of the system, the energy, time, and temperature of different computing modes are predicted. Combining real-time performance, thermal safety, and result quality constraints, the optimal computing mode is dynamically selected, and the consistency of results is ensured through a submission verification mechanism, thereby achieving energy efficiency optimization.

Benefits of technology

It achieves global energy efficiency optimization, balances real-time performance and energy saving, improves system reliability and security, realizes refined adaptive control, and avoids unnecessary energy waste and insufficient real-time performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123137518A_ABST
    Figure CN123137518A_ABST
Patent Text Reader

Abstract

The application discloses an energy-aware control method and device for processing time sequence signals, and belongs to the technical field of hybrid computing systems. The method comprises the following steps: acquiring a data unit carrying a unique identifier and a processing time limit; sensing physical constraints such as system power consumption and temperature; predicting the total energy, completion time, peak temperature and result utility of a first computing mode and a second computing mode with different static power consumptions; screening feasible modes based on real-time, thermal safety and result quality constraints; selecting an optimal mode as a target mode according to an energy efficiency optimization index determined by the total energy and the result utility; configuring resources at the boundary of the data unit and generating a configuration version identifier; and finally submitting and verifying the result based on the context of the unique identifier and the configuration version identifier. In this way, the optimal computing mode can be adaptively selected under the premise of meeting multiple constraints, and the overall energy efficiency and reliability of the hybrid computing system in processing burst and time-varying tasks are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of hybrid computing systems technology, and more specifically, to an energy-sensing control method and apparatus for processing time-series signals. Background Technology

[0002] In many advanced computing applications, such as high-throughput invasive brain-computer interfaces, IoT edge computing, and real-time signal processing, systems need to continuously process data streams with time-varying and bursty characteristics. These systems typically employ hybrid computing architectures, combining different types of processing units (e.g., general-purpose digital processors, dedicated accelerators, etc.) to balance performance, power consumption, and flexibility.

[0003] Taking invasive brain-computer interfaces as an example, the system needs to decode massive amounts of neural signal data in real time to convert them into control commands for external devices. To handle the large number of matrix operations involved, silicon photonics computing has become an attractive technology choice due to its potential for high parallelism and low latency. However, silicon photonics computing units do not offer energy efficiency advantages under all workloads.

[0004] One challenge with existing technologies is that high-performance computing models (such as silicon photonics computing) are typically accompanied by high static power consumption and startup overhead. For example, components such as lasers, thermal tuners, and high-speed receiver front-ends need to remain operational even when there are no computing tasks to ensure fast response, which can lead to energy waste during periods of sparse signal or low load.

[0005] To save energy, a straightforward approach is to shut down high-performance computing units under low load. However, this simple switching strategy faces new problems. Frequent shutdowns and restarts introduce additional energy consumption and time delays for unit warm-up, locking, and calibration, which can cause the system to miss critical real-time processing deadlines, leading to serious consequences in scenarios such as closed-loop control. Existing control strategies often make decisions based on single indicators such as instantaneous load or temperature, lacking a global and predictive perspective.

[0006] Therefore, existing technologies urgently need a more intelligent control method that can comprehensively evaluate the full cost of different computing modes (including the costs of dynamic computing, static maintenance, and switching processes), and combine the system's real-time requirements, thermal safety limitations, and the validity of the results to dynamically and proactively make the optimal computing mode selection, thereby maximizing overall energy efficiency while ensuring system functionality and reliability. Summary of the Invention

[0007] To address the problems mentioned above, namely the difficulty of existing hybrid computing systems in balancing energy efficiency, real-time performance, and reliability when handling time-varying loads, this invention provides an energy-sensing control method and apparatus for processing time-series signals.

[0008] This invention provides an energy-sensing control method for processing time-series signals, comprising: acquiring a data unit carrying a unique identifier and a processing time limit; acquiring a system physical constraint state associated with a processing task of the data unit, wherein the physical constraint state includes at least power consumption information and temperature information of multiple hardware modules; predicting the total energy required to complete the processing task for at least one first computing mode and at least one second computing mode, wherein the second computing mode has higher static power consumption and startup overhead energy than the first computing mode; predicting the completion time of the processing task for each candidate computing mode; predicting the peak temperature during the completion of the processing task for each candidate computing mode; predicting the result utility prediction value for each candidate computing mode so that its generated computing results can be successfully submitted; and based on the predictions... The system calculates the completion time, peak temperature, and predicted result utility, and compares these with preset real-time constraints, thermal safety constraints, and result quality constraints to select feasible candidate calculation modes. These candidate calculation modes include the first calculation mode and the second calculation mode. Based on the predicted total energy and predicted result utility, the energy efficiency optimization index for each feasible candidate calculation mode is determined, and the mode with the optimal energy efficiency optimization index is selected as the target calculation mode. At the boundary of the data unit, computing resources are configured according to the target calculation mode, and a configuration version identifier associated with this configuration is generated. The returned calculation results are submitted for verification based on the context identifier associated with the data unit, wherein the context identifier includes at least the unique identifier and the configuration version identifier, and the calculation results are only allowed to be used to update the system state if the verification passes.

[0009] In one implementation, the energy efficiency optimization index is the energy consumption per unit of effective submission decoding, which is determined as the ratio of the predicted total energy to the predicted value of the resulting utility; and selecting the mode that optimizes the energy efficiency optimization index includes selecting the mode that minimizes the energy consumption per unit of effective submission decoding.

[0010] In one implementation, the predicted result utility value is the probability of a valid result submission, and the result quality constraint is a decoding confidence threshold.

[0011] In one implementation, the submission verification further includes verifying the resource mapping version, weight version, and revocation status of the returned calculation result, in order to reject calculation results that do not match the currently configured resource mapping version or weight version, or that have been marked as revoked.

[0012] In one implementation, the first computing mode is a pure digital computing mode, and the second computing mode is a computing mode that includes silicon photonics computing units.

[0013] In one embodiment, the method further includes: starting the second computing mode when the accumulated event batch size meets the condition of amortizing the startup overhead energy of the second computing mode, or when continuing to wait will reach the latest startup time calculated from the processing time limit; wherein starting the second computing mode includes: waking up the power domain of the silicon photonics computing unit in stages; and suspending subsequent wake-ups and reverting to the first computing mode when any stage verification fails, or thermal margin is insufficient, or time margin is insufficient.

[0014] In one embodiment, the predicted total energy further includes at least two of the following: input feature processing energy, light source pre-biasing energy, wavelength locking energy, phase or weight tuning energy, photoelectric conversion energy, analog-to-digital conversion energy, digital compensation energy, buffer handling energy, and expected wasted energy; and the method further includes: jointly configuring optical resources and digital verification levels according to task risk, expected decoding confidence, and thermal margin to form a computing mode with different energy consumption and accuracy.

[0015] In one embodiment, the method further includes: performing shadow decoding without updating the system state before reverting from the first computing mode to the second computing mode; and reverting to using the second computing mode and allowing its computing results to update the system state only after the decoding results of multiple consecutive data units meet preset recovery conditions.

[0016] The present invention also provides an energy-sensing control device for processing time-series signals, comprising: an acquisition module configured to acquire a data unit carrying a unique identifier and a processing time limit; a state sensing module configured to acquire a system physical constraint state associated with a processing task of the data unit, the physical constraint state including at least power consumption information and temperature information of multiple hardware modules; a first prediction module configured to predict the total energy required to complete the processing task for at least one first computing mode and at least one second computing mode, wherein the second computing mode has higher static power consumption and startup overhead energy than the first computing mode; a second prediction module configured to predict the completion time of the processing task for each candidate computing mode; predict the peak temperature during the completion of the processing task for each candidate computing mode; and predict the result utility prediction value for each candidate computing mode whose generated computing result can be successfully submitted. The candidate computing modes include the first computing mode and the second computing mode; the decision module is configured to select feasible candidate computing modes based on the predicted completion time, peak temperature, and predicted result utility value, and in accordance with preset real-time constraints, thermal safety constraints, and result quality constraints; based on the predicted total energy and predicted result utility value, determine the energy efficiency optimization index of each feasible candidate computing mode, and select the mode with the best energy efficiency optimization index as the target computing mode; the configuration module is configured to configure computing resources at the boundary of the data unit according to the target computing mode, and generate a configuration version identifier associated with the configuration; the submission gating module is configured to perform submission verification on the returned computing results based on the context identifier associated with the data unit, wherein the context identifier includes at least the unique identifier and the configuration version identifier, and the computing results are only allowed to be used to update the system state when the verification passes.

[0017] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the aforementioned energy sensing and control method.

[0018] Compared with the prior art, the present invention has the following beneficial effects:

[0019] 1. Achieved global energy efficiency optimization: This invention establishes a comprehensive decision-making framework that not only considers the dynamic energy consumption of the computing task itself, but also proactively incorporates the static power consumption of different computing modes, startup and switching overhead, and the effective utilization rate of the results. By optimizing with energy efficiency optimization indicators, the system decisions are made closer to the actual energy and thermal burden, thereby achieving energy efficiency optimization at the system level, rather than simply pursuing the theoretical peak energy efficiency of a single computing core.

[0020] 2. Balancing Real-Time Performance and Energy Efficiency: This invention cleverly resolves the conflict between energy saving and real-time response by batch processing tasks to reduce the startup cost of high-overhead modes, while using the latest startup time as a hard constraint. When neural activity is sparse, the system can maintain a low-power first computing mode, avoiding unnecessary energy waste; while when high-density tasks arrive, it can promptly and efficiently utilize the parallel advantages of the second computing mode.

[0021] 3. Improved system reliability and security: By switching modes at data unit boundaries and using contextual verification with multiple identifiers including unique identifiers and configuration version identifiers, this invention effectively ensures data consistency under dynamic configuration. It can intercept late, outdated, or revoked calculation results, preventing them from polluting the system state. Furthermore, security recovery mechanisms such as shadow decoding ensure smooth and reliable mode switching, enhancing the robustness of the entire system.

[0022] 4. Achieved refined adaptive control: This invention moves beyond a binary choice between fully on and fully off, instead dynamically configuring the quantity of optical resources and the level of digital verification based on factors such as task risk and system thermal margin, forming a series of computing modes with different energy consumption and accuracy characteristics. This refined adaptive capability allows the system to more flexibly find a dynamic balance between performance, power consumption, and accuracy. Attached Figure Description

[0023] Figure 1 This is a flowchart of the energy sensing control method for processing timing signals according to the present invention.

[0024] Figure 2 This is a system block diagram of the energy sensing and control device for processing timing signals according to the present invention. Detailed Implementation

[0025] The technical solution of the present invention will now be described in more detail with reference to the accompanying drawings and specific embodiments.

[0026] Figure 1 An exemplary flow of an energy-sensing control method for processing timing signals is shown. The following sections will discuss... Figure 1 Each step in the process will be explained in detail.

[0027] Step S110: Obtain the data unit carrying a unique identifier and processing time limit.

[0028] These data units are the basic atomic operation objects processed by the system. Their unique identifiers are used to track data throughout the entire processing flow, while the processing time limits provide a basis for subsequent real-time constraints.

[0029] Step S120: Obtain the system physical constraint status associated with the processing task of the data unit. The physical constraint status includes at least the power consumption information and temperature information of multiple hardware modules.

[0030] This step involves acquiring real-time power consumption and temperature information from multiple hardware modules (such as digital circuits, optical components, etc.) to provide real-world data input for subsequent predictions and decision-making.

[0031] Step S130: For at least one first computing mode and at least one second computing mode, predict the total energy required to complete the processing task, wherein the second computing mode has higher static power consumption and startup overhead energy than the first computing mode.

[0032] Step S140: For each candidate calculation mode, predict the completion time of the processing task; for each candidate calculation mode, predict the peak temperature during the processing task; for each candidate calculation mode, predict the result utility value that the calculation result can be successfully submitted.

[0033] The candidate computation modes include a first computation mode and a second computation mode.

[0034] For at least one first computing mode and at least one second computing mode, the system predicts the total energy required to complete the current processing task, the expected completion time, the peak temperature that may be reached during task execution, and the predicted value of the result utility. For the second computing mode, which has a higher startup cost, the total energy prediction must include its static power consumption and startup overhead energy, such as the wake-up and tuning energy of the optical path. This ensures the comprehensiveness of the decision and avoids erroneous decisions caused by considering only computing energy consumption.

[0035] Step S150: Based on the predicted completion time, peak temperature and predicted result utility, and in comparison with the preset real-time constraints, thermal safety constraints and result quality constraints, select feasible candidate calculation modes.

[0036] The system performs constraint screening, excluding candidate calculation modes that have a prediction completion time later than the processing time limit, a predicted peak temperature exceeding thermal safety constraints, or a prediction result quality lower than the preset result quality constraints, thus forming a set of feasible modes. This step ensures that any selected mode must first meet the system's basic operational requirements.

[0037] Step S160: Based on the predicted total energy and the predicted result utility, determine the energy efficiency optimization index of each feasible candidate calculation mode, and select the mode with the best energy efficiency optimization index as the target calculation mode.

[0038] Among all feasible candidate computing modes, the system calculates the energy efficiency optimization index for each mode based on the predicted total energy and the predicted utility, and selects the mode with the best index as the final target computing mode. This strategy of first constraining and then optimizing ensures that the system pursues energy efficiency without sacrificing critical real-time performance and security.

[0039] Step S170: At the boundary of the data unit, configure computing resources according to the target computing mode and generate a configuration version identifier associated with this configuration.

[0040] At the boundary of the data unit, the system will configure the corresponding computing resources according to the selected target computing mode and generate a configuration version identifier associated with this configuration.

[0041] Step S180: Submit the returned calculation result for verification based on the context identifier associated with the data unit. The context identifier includes at least a unique identifier and a configuration version identifier. The calculation result is only allowed to be used to update the system state if the verification passes.

[0042] Once the calculation is complete, the returned result is not immediately accepted. The system employs a submission gating mechanism, performing rigorous submission verification based on a context identifier. This context identifier includes at least a unique identifier for the data unit and a configuration version identifier for this configuration. Verification only passes when the context of the returned result completely matches the context at the time of task dispatch, allowing the calculation result to be used to update system state or output control signals. This closed-loop verification mechanism enhances system reliability and effectively prevents erroneous, outdated, or mismatched results from contaminating the system.

[0043] In a preferred embodiment, the energy efficiency optimization index is specified as the energy consumption per unit of effective delivery decoding. This index is determined as the ratio of the predicted total energy to the predicted value of the resulting utility, i.e., J(m,b)=E total (m,b) / P valid (m,b), where m represents the candidate computation mode, b represents the batch of data to be processed, and E total (m,b) represents the predicted total energy of batch b processed using mode m, P valid(m,b) represents the predicted utility of processing batch b using mode m (e.g., the probability of a valid result submission). Accordingly, selecting the mode with the optimal energy efficiency optimization metric means selecting the mode with the minimum energy consumption per valid submission for decoding. The physical meaning of this metric is how much energy is required on average to obtain a valid computational result that can be successfully utilized by the system. By optimizing this metric, the system no longer simply pursues the lowest total energy consumption, but rather the highest effective energy utilization rate. This is particularly important for complex systems where processing results may fail due to various reasons (such as timeouts, version incompatibility, etc.).

[0044] Furthermore, to make predictions and constraints more specific, the predicted outcome utility value can be specified as the probability of a valid outcome submission, a value between 0 and 1, which can be dynamically estimated through statistical analysis of historical data (such as recent task timeout rates, version mismatch rates, etc.) and assessment of the current state (such as optical signal-to-noise ratio, decoding confidence, etc.). Simultaneously, outcome quality constraints can be specified as a clear decoding confidence threshold. For example, the system can require that any accepted decoding outcome must have a model output confidence level higher than 0.9. This specific quantification makes the constraints clear and easy to implement.

[0045] To further enhance system robustness and data consistency, the commit validation mechanism can be strengthened. At window boundaries, the system saves all relevant current states as a context snapshot, including the unique identifier of the data unit (Frame). ID Mode Era Epoch ), resource mapping version (Map) Ver ) and weighted version (Weight) Ver The returned computation result must be completely consistent with the context snapshot at the time the task was dispatched to pass through the commit gate. Furthermore, for tasks that need to be canceled midway due to mode switching or other reasons, the system can set a cancellation state. The commit gating module will reject any return result marked as a cancelled task, even if the result has been physically calculated. This design philosophy ensures that energy-saving switching does not come at the cost of result mismatch, and any delayed result from an older mode must not cross mode epochs into the closed loop.

[0046] In a typical application scenario, the technical solution of this invention concretizes the first computing mode as a pure digital computing mode, and the second computing mode as a computing mode including silicon photonics computing units. The pure digital computing mode is typically based on complementary metal-oxide-semiconductor (CMOS) technology, which has relatively low static power consumption and rapid startup, making it suitable for handling sparse, low-load tasks. The silicon photonics computing mode utilizes optical computing for massively parallel processing (such as matrix-vector multiplication), offering potential energy efficiency advantages when handling high-density, high-computational-load tasks. However, its light source, thermal tuner, and other components contribute to static power consumption and startup overhead. The method of this invention aims to achieve intelligent load balancing and energy efficiency optimization in such heterogeneous computing systems.

[0047] For this second computing mode that includes silicon photonics computing units, this invention proposes an intelligent triggering and wake-up mechanism. This mechanism is driven by both events and deadlines. The system accumulates arriving neural events. When the accumulated event batch size meets a preset batch condition, it is considered that the task load is high enough to offset the energy overhead of starting the second computing mode, and at this point, the second computing mode can be triggered. On the other hand, to ensure real-time performance, the system deduces a latest start time based on the processing time limit of the data units. If this latest start time is reached while waiting for event accumulation, the system must force the computation to start even if the batch condition has not been met, to avoid task timeout. This dual triggering mechanism balances energy efficiency and real-time performance.

[0048] The process of initiating the second computing mode is not a simple on / off operation, but a sophisticated, phased wake-up process. Each component of the silicon photonics computing unit, such as the light source, modulator, and photodetector, is divided into independent power domains and defined with multiple power states, ranging from deep sleep (P0), pre-bias (P1), wavelength lock (P2), computation ready (P3), to burst computation (P4). The wake-up process proceeds step-by-step, with rapid reference checks between each stage. If, at any wake-up stage, the system detects a check failure (e.g., wavelength lock failure), insufficient thermal margin (predicting overheating during further wake-up), or insufficient time margin (predicting inability to complete wake-up and computation within the processing time limit), it immediately aborts the subsequent wake-up process and safely reverts to the first computing mode. This phased, check-based wake-up mechanism minimizes energy waste caused by invalid wake-up attempts and improves system reliability. The system has switching logic between different computing modes, including normally open low-order digital mode M0, optoelectronic hybrid burst mode M1, all-resource silicon photonic burst mode M3, and safety hold mode MS. It also defines the switching conditions between them, such as switching from M0 mode to M1 when the batch is amortizable, or forcibly switching to MS safety mode when a hard protection condition is triggered.

[0049] To achieve more accurate predictions and more optimized decision-making, this invention refines the composition of the total energy. The predicted total energy may further include input feature processing energy, light source pre-bias energy (E... wake Wavelength-locked energy (E) tune Phase or weighted tuning energy, photoelectric conversion energy (E) opt +E rx ), analog-to-digital conversion energy, digital compensation energy (E) dig ), cache transport energy (E) mem ), and the estimated wasted energy (E) that cannot be committed due to task cancellation, late results, or version mismatch. waste At least two of the following are considered. These energy components are recorded in a multi-timescale energy-thermal budget ledger for calculating the energy efficiency optimization index of each candidate mode. Simultaneously, this invention introduces the concept of dynamic precision configuration. The system can jointly configure optical resources (such as the number of wavelength channels used, the number of spatial ports, etc.) and the level of digital verification based on the current task risk, the expected decoding confidence, and the available thermal margin. This allows for the dynamic creation of multiple computing modes with different energy consumption and precision characteristics (such as low-precision and high-precision modes), giving the controller a richer selection space and thus finding a better balance between energy efficiency and performance.

[0050] Security is paramount in intrusive systems. To ensure smooth and secure transitions between computing modes, especially when reverting from a reliable first computing mode to a complex second computing mode, this invention introduces a shadow decoding mechanism. The system does not immediately switch before deciding to revert from the first to the second computing mode. Instead, it initiates a shadow decoding process that does not update the system state. During this process, subsequent data units are processed simultaneously by both the first and second computing modes. The system continuously compares the outputs of the two modes. Only when the differences in the decoding results of multiple consecutive data units meet preset recovery conditions (e.g., the difference is less than a certain threshold, the completion time and temperature of the second mode are within expectations), does the system confirm that the second computing mode is stable and reliable. Only then does it formally resume using the second computing mode and allow its computation results to update the system state. This verification-before-switching recovery strategy effectively avoids system disturbances caused by instability during mode switching.

[0051] In one embodiment of the basic control flow, it is assumed that the system currently exists in only two modes: a first computing mode (pure digital mode) and a second computing mode (silicon photonics mode). When a new data unit (uniquely identified as Frame) is generated... 101 The processing time limit is T. deadline When the data unit arrives, the acquisition module acquires it, and the status awareness module reports the current system power consumption as P. current Temperature is Tempcurrent Subsequently, the prediction module makes predictions for the two modes. For example, for the digital mode, the prediction results are: total energy consumption 100nJ, completion time 2ms before the processing time limit, peak temperature rise of 1°C, and predicted utility value of 0.98. For the silicon photonics mode, the prediction results are: total energy consumption 80nJ, completion time 1ms beyond the processing time limit, peak temperature rise of 3°C, and predicted utility value of 0.99. Next, the decision module performs constraint checks. The preset real-time constraint is T. deadline Thermal safety constraint is Temp max In this example, the prediction completion time of the silicon photonics mode is later than the processing time limit, thus failing to meet the real-time constraint. The decision module filters out a set of feasible modes, which contains only digital modes. Since there is only one mode in the feasible set, the decision module directly selects the digital mode as the target computation mode. The configuration module configures the digital decoding circuit and generates a configuration version identifier (e.g., version number 55). The digital decoding circuit performs the computation and returns a value carrying a context identifier (Frame). 101 The result (version 55) is then processed. Finally, the gating module verifies the context identifier of the returned result. If the verification passes, the result is allowed to update the system state. This embodiment demonstrates how the method ensures the real-time performance of the system through basic prediction and constraint checks without involving complex features such as batch processing and tiered wake-up.

[0052] In a scenario of enhanced neural activity, this method can be demonstrated to intelligently trigger high-power modes. Assuming the neural event stream changes from sparse (a few times per second) to dense (hundreds of times per second), the controller begins accumulating events into batches. The controller then determines the startup overhead energy (e.g., E0) of the second computational mode. startup Based on the energy efficiency advantage of calculating a single event (e.g., 500nJ), the batch condition was calculated to be lower when the batch size exceeds 60 events, meaning the total energy consumption of using the second calculation mode would be lower than the total energy consumption of using the first calculation mode individually. When the accumulated number of events reaches 60, the batch condition is met, and the controller triggers the selection of the second calculation mode. At this point, the controller initiates a tiered wake-up process. However, in the second stage of wake-up (e.g., after pre-biasing the light source, preparing to lock the wavelength), the state awareness module reports insufficient thermal margin, predicting that continuing to wake up will cause the peak temperature to exceed the safety threshold. At this point, the wake-up process is aborted, and the system reverts to the first calculation mode to handle the tasks of this batch, thereby ensuring the thermal safety of the system.

[0053] Next, in a scenario with limited system thermal margin, we can demonstrate the balancing effect of dynamic precision configuration between energy efficiency and performance. Assume the system is running under high load for an extended period, resulting in high overall temperature and very limited thermal margin. A new high-priority task arrives, with high computational complexity; processing it using the first computation mode is expected to time out. The controller predicts that even activating the second computation mode with full resources will lead to temperature exceeding limits. However, the controller does not immediately abandon this approach but instead searches the list of available modes and finds a limited-precision second computation mode. This mode, by reducing the number of wavelength channels by half (an optical resource configuration), predicts a peak temperature just below the thermal safety threshold, while its predicted decoding confidence remains above the minimum confidence threshold required for the task. Therefore, the controller ultimately selects this limited-precision second computation mode, successfully avoiding task failure due to insufficient thermal margin while meeting the task confidence requirements. This demonstrates the advantage of dynamic precision configuration in extending the effective operating range of the system.

[0054] Finally, in an embodiment concerning safe recovery from an anomaly, it is assumed that the system's second computing mode produces a series of erroneous results due to a temporary power fluctuation. Upon detection by the safety monitoring system, the system is forcibly switched to the first computing mode. After troubleshooting, the system needs to safely restore the second computing mode. At this point, the controller initiates a recovery procedure. For subsequent data units, the controller initiates shadow decoding. That is, data is simultaneously sent to the decoders of both the first and second computing modes, but only the results of the first computing mode are used for closed-loop control. The controller continuously compares the output differences between the two in the background. Only after the consistency between the shadow decoding results and the first computing mode results for N consecutive data units (e.g., N=100) meets a preset criterion (e.g., the Euclidean distance of the output vector is less than epsilon) does the controller confirm that the second computing mode has stabilized, thus officially switching it to the main computing path and enabling it to perform closed-loop output again.

[0055] To more comprehensively demonstrate the preferred embodiments of the present invention, the following describes the operating scenario of a complete heterogeneous integrated chip system integrating all technical features. This system can be constructed into a heterogeneous integrated package by a complementary metal-oxide-semiconductor (CMOS) logic chip and a silicon photonics chip through 2.5D packaging. The CMOS logic chip integrates a normally-on neural signal acquisition front-end, digital logic, and a digital decoding island serving as the first computing mode. The silicon photonics chip integrates a silicon photonic burst computing island serving as the core of the second computing mode. Thermal isolation trenches may be provided between the two chips to reduce thermal crosstalk. The operation of the entire system is coordinated by an energy-sensing control device (implemented by logic modules such as an energy-thermal budget controller and task and consistency control). In a complete operating cycle: after the system is powered on, it defaults to a low-power first computing mode, processing background neural activity. When the user generates a movement intention, neural activity in the relevant brain regions increases, and the event density rises rapidly. The controller accumulates events, and when batch conditions are met, it decides to activate the second computing mode. Based on the current task risk (medium) and system thermal margin (sufficient), the controller decides to adopt a medium-precision optoelectronic hybrid mode, achieved by configuring optical resources (e.g., enabling 8 wavelength channels) and digital verification levels. The computation task is dispatched, and after its return, it undergoes a complete context check including a unique identifier, configuration version identifier, resource mapping version, and weight version, before being used to drive the movement of the external prosthesis. Upon task completion, neural activity decreases, and the controller predicts that continuing to use the second computation mode will result in a lower energy efficiency optimization index than the first computation mode, thus deciding to switch back to the first computation mode. In subsequent use, if the second computation mode malfunctions, the system will perform the aforementioned shadow decoding verification upon recovery. The entire process consistently aims to optimize the energy consumption of the unit effectively submitted for decoding, thereby achieving global energy efficiency optimization while satisfying all constraints.

[0056] This invention relates to an energy-sensing control method and related apparatus for processing time-series signals in hybrid computing systems, particularly suitable for invasive brain-computer interface systems with stringent requirements for power consumption, real-time performance, and thermal safety. This system continuously acquires multi-channel neural signals and needs to efficiently and reliably decode them into control commands. To address the inherent sparsity and time-varying nature of neural activity, this invention proposes a prediction-constraint-optimization closed-loop control approach, aiming to dynamically and intelligently select the most suitable computing mode to maximize the overall energy efficiency of the system while meeting real-time and safety constraints.

[0057] After introducing the energy-sensing control method for processing timing signals according to exemplary embodiments of the present invention, the following will refer to... Figure 2 An energy sensing and control device for processing timing signals according to an exemplary embodiment of the present invention will be described.

[0058] refer to Figure 2 As shown, the energy sensing and control device 200 for processing timing signals includes:

[0059] The acquisition module 210 is configured to acquire data units carrying unique identifiers and processing time limits;

[0060] The state awareness module 220 is configured to acquire the system physical constraint state associated with the processing task of the data unit. The physical constraint state includes at least the power consumption information and temperature information of multiple hardware modules.

[0061] The first prediction module 230 is configured to predict the total energy required to complete the processing task for at least one first computing mode and at least one second computing mode, wherein the second computing mode has higher static power consumption and startup overhead energy than the first computing mode.

[0062] The second prediction module 240 is configured to predict the completion time of the processing task for each candidate calculation mode; predict the peak temperature during the processing task for each candidate calculation mode; and predict the result utility prediction value that the calculation result generated by each candidate calculation mode can be successfully submitted for each candidate calculation mode; the candidate calculation modes include the first calculation mode and the second calculation mode.

[0063] The decision module 250 is configured to select feasible candidate calculation modes based on the predicted completion time, peak temperature, and predicted result utility value, and in accordance with preset real-time constraints, thermal safety constraints, and result quality constraints; based on the predicted total energy and predicted result utility value, it determines the energy efficiency optimization index of each feasible candidate calculation mode, and selects the mode with the best energy efficiency optimization index as the target calculation mode.

[0064] Configuration module 260 is configured to configure computing resources at the boundary of the data unit according to the target computing mode and generate a configuration version identifier associated with the configuration.

[0065] The submission gating module 270 is configured to perform submission verification on the returned calculation results based on the context identifier associated with the data unit, wherein the context identifier includes at least a unique identifier and a configuration version identifier, and the calculation results are only allowed to be used to update the system state if the verification passes.

[0066] In addition, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the aforementioned energy sensing and control method.

Claims

1. An energy sensing control method for processing time-series signals, characterized in that, include: Obtain a data unit carrying a unique identifier and processing time limit; Obtain the system physical constraint state associated with the processing task of the data unit, wherein the physical constraint state includes at least the power consumption information and temperature information of multiple hardware modules; For at least one first computing mode and at least one second computing mode, predict the total energy required to complete the processing task, wherein the second computing mode has higher static power consumption and startup overhead energy than the first computing mode. For each candidate computing mode, the completion time of the processing task is predicted; for each candidate computing mode, the peak temperature during the processing task is predicted; for each candidate computing mode, the result utility prediction value that the generated computing result can be successfully submitted is predicted; the candidate computing modes include the first computing mode and the second computing mode. Based on the predicted completion time, peak temperature, and predicted result utility, and in accordance with preset real-time constraints, thermal safety constraints, and result quality constraints, feasible candidate calculation modes are selected. Based on the predicted total energy and the predicted utility value, the energy efficiency optimization index of each feasible candidate calculation mode is determined, and the mode with the best energy efficiency optimization index is selected as the target calculation mode. At the boundary of the data unit, computing resources are configured according to the target computing mode, and a configuration version identifier associated with this configuration is generated; The returned calculation results are submitted for verification based on the context identifier associated with the data unit, wherein the context identifier includes at least the unique identifier and the configuration version identifier, and the calculation results are only allowed to be used to update the system state if the verification passes.

2. The method according to claim 1, characterized in that, The energy efficiency optimization index is the energy consumption per unit of effective submission decoding, which is determined as the ratio of the predicted total energy to the predicted result utility value; Furthermore, selecting the mode with the optimal energy efficiency optimization index includes selecting the mode with the minimum energy consumption for effective unit submission decoding.

3. The method according to claim 1, characterized in that, The predicted utility value of the result is the probability of submitting a valid result, and the result quality constraint is the decoding confidence threshold.

4. The method according to claim 1, characterized in that, The submission verification also includes verifying the resource mapping version, weight version, and revocation status of the returned calculation results, in order to reject calculation results that do not match the currently configured resource mapping version or weight version, or that have been marked as revoked.

5. The method according to claim 1, characterized in that, The first computing mode is a pure digital computing mode, and the second computing mode is a computing mode that includes silicon photonics computing units.

6. The method according to claim 5, characterized in that, The method further includes: starting the second computing mode when the accumulated event batch size meets the condition of amortizing the startup overhead energy of the second computing mode, or when the latest startup time calculated by reverse calculation based on the processing time limit is reached after continuing to wait; wherein starting the second computing mode includes: waking up the power domain of the silicon photonics computing unit in stages; and suspending subsequent wake-ups and reverting to the first computing mode when verification fails in any stage, or thermal margin is insufficient, or time margin is insufficient.

7. The method according to claim 5, characterized in that, The predicted total energy further includes at least two of the following: input feature processing energy, light source pre-biasing energy, wavelength locking energy, phase or weight tuning energy, photoelectric conversion energy, analog-to-digital conversion energy, digital compensation energy, buffer handling energy, and expected wasted energy; and the method further includes: jointly configuring optical resources and digital verification levels according to task risk, expected decoding confidence, and thermal margin to form a computing mode with different energy consumption and accuracy.

8. The method according to claim 5, characterized in that, The method further includes: performing shadow decoding without updating the system state before reverting from the first computing mode to the second computing mode; and reverting to the second computing mode and allowing its computing results to update the system state only after the decoding results of multiple consecutive data units meet the preset recovery conditions.

9. An energy sensing and control device for processing timing signals, characterized in that, include: The acquisition module is configured to acquire data units carrying unique identifiers and processing time limits; The state awareness module is configured to acquire the system physical constraint state associated with the processing task of the data unit, the physical constraint state including at least the power consumption information and temperature information of multiple hardware modules; A first prediction module is configured to predict the total energy required to complete the processing task for at least one first computing mode and at least one second computing mode, wherein the second computing mode has higher static power consumption and startup overhead energy than the first computing mode. The second prediction module is configured to predict the completion time of the processing task for each candidate calculation mode; predict the peak temperature during the processing task for each candidate calculation mode; and predict the result utility value that the calculation result generated by each candidate calculation mode can be successfully submitted for each candidate calculation mode; the candidate calculation modes include the first calculation mode and the second calculation mode. The decision module is configured to select feasible candidate calculation modes based on the predicted completion time, peak temperature, and predicted result utility value, and in accordance with preset real-time constraints, thermal safety constraints, and result quality constraints; and to determine the energy efficiency optimization index of each feasible candidate calculation mode based on the predicted total energy and predicted result utility value, and to select the mode with the best energy efficiency optimization index as the target calculation mode. The configuration module is configured to configure computing resources according to the target computing mode at the boundary of the data unit, and generate a configuration version identifier associated with the configuration. The submission gating module is configured to perform submission verification on the returned calculation results based on a context identifier associated with the data unit, wherein the context identifier includes at least the unique identifier and the configuration version identifier, and the calculation results are only allowed to be used to update the system state if the verification passes.

10. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method of any one of claims 1-8.