Techniques for time series estimation with long-term effects
The neural network system addresses the challenge of long-term effects in time series data by selectively storing and applying long-term attention, enhancing predictive power and interpretability in battery health, healthcare, and natural language processing.
Patent Information
- Application Number
- JP2026081959
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-15
- Filing Date
- 2026-05-14
- Publication Date
- 2026-11-27
AI Technical Summary
Conventional attention mechanisms struggle to effectively handle long-term effects in time series data, leading to inadequate predictive power and interpretability in scenarios such as battery health, healthcare, and natural language processing.
A neural network system that selectively stores instantaneous sensor data exhibiting long-term effects in a dedicated memory and applies long-term effect attention to improve predictive power and interpretability by combining conventional attention mechanisms with long-term impact-specific attention.
Enhances predictive power and interpretability of time-series estimation by accurately capturing and accounting for long-term effects, improving accuracy and reliability in battery health, healthcare, and natural language processing applications.
Smart Images

Figure 2026185890000001_ABST
Abstract
Description
[Technical Field]
[0001] The present invention relates to a technique for providing an estimated time series of physical parameters based on a time series of sensor data showing long-term effects, and more particularly to a technique including a method, a neural network (NN) system, a further system including an NN system, and a computer program product. [Background technology]
[0002] Conventional technology Machine learning (ML) models are often deployed in scenarios where specific events have a profound and lasting impact on predictions. Such traumatic events (i.e., events that have a critically important impact on all subsequent predictions) are frequently encountered in various applications. Traumatic data presents unique challenges because models must not only recognize these events but also retain their impact over time in order to make accurate future predictions.
[0003] For example, in battery technology, predicting the State of Health (SoH) is crucial to guarantee performance and safety. Events such as improper discharge can severely degrade battery health, and the consequences should be reflected in all subsequent SoH predictions. In healthcare, traumatic events such as stroke or significant mental health episodes have a profound impact on a patient's health course, necessitating models that can incorporate these events into future health predictions. Similarly, in natural language processing (NLP), commands specifying tone or style (e.g., professional or conversational) can influence the flow of dialogue and should be considered in future predictions.
[0004] The attention mechanism for language processing was originally introduced in Reference [1] and serves as the foundation for many foundational models. Figure 3 from Reference [1], reproduced as Figure 3 in the present application, schematically illustrates the attention weights for the word "making". Conventional attention mechanisms assign high attention to words such as "more" and "efficient".
[0005] The input to an ML model (e.g., a neural network, NN) equipped with an attention mechanism is a time series x1, x2, ... ∈ R d , where d is the embedding dimension. The output is another time series r1, r2, ... ∈ R d .
[0006] In the first step, projections of the input, referred to as query, key, and value, are created for each input i. q i := x i W Q [query] k i := x i W K [key] v i := x i W V [value]
[0007] In the second step, the attention weights for each query q i are calculated. [Equation]
[0008] In the third step, the conventional final result is returned by multiplying the attention weights by the values. [Equation]
[0009] While some events, such as heart attacks and improper battery discharge, can have serious and lasting consequences, the ability of conventional attention mechanisms to handle such scenarios remains underexamined. [Prior art documents] [Non-patent literature]
[0010] [Non-Patent Document 1] Yunhao Zhang and Junchi Yan, “CROSSFORMER: TRANSFORMER UTILIZING CROSSDIMENSION DEPENDENCY FOR MULTIVARIATE TIME SERIES FORECASTING”, ICLR 2023 (Reference [1]) [Overview of the Initiative] [Problems that the invention aims to solve]
[0011] Therefore, the object of the present invention is to provide a solution for improving the predictive power and / or time-series estimation of several physical parameters in the presence of long-term effects. Alternatively or additionally, the object is to improve the interpretability of physical parameters derived from sensor data, particularly in temporal sequences. [Means for solving the problem]
[0012] Disclosure of the invention The above problems are solved by the method described in the attached independent claim for providing an estimated time series of physical parameters based on a time series of sensor data showing long-term effects, a neural network (NN) system, a further system including the NN system, and a computer program (and / or computer program product). Advantageous aspects, features, and embodiments are described in the dependent claims and in the following description, along with their advantages.
[0013] In the following, the invention will first be explained in connection with the claimed method. Features, advantages, or alternative embodiments mentioned with respect to the method may be associated with other claimed subject matter (e.g., a computer program or apparatus, in particular an NN system, a further system, or a computer program product), and vice versa. In other words, a system, an apparatus, or a device may be improved by features described or claimed in connection with the method, and vice versa. In this case, functional features of the method are embodied by structural units of the apparatus or device or system, and vice versa. The method may refer to a software implementation, and the apparatus, in particular an NN system, may refer to a hardware implementation (e.g., having a spatial physical structure) or a virtualization thereof. In computer science, software implementations and corresponding hardware implementations (e.g., as an embedded system) are generally equivalent. Thus, for example, a method step for "storing" data may be implemented using a storage unit and corresponding instructions for writing data to the storage. To avoid redundancy, apparatuses may likewise be used in alternative embodiments described with reference to the method, but these embodiments will not be explicitly described again with respect to the apparatus. In principle, each device or apparatus claim is configured to perform the claimed method.
[0014] According to an aspect of the method, a computer-implemented method is provided for providing an estimated time series of physical parameters based on a time series of sensor data indicative of long-term effects. The method is implemented by a neural network (NN) system. The method includes receiving input data comprising a time series in at least a first channel of sensor data. The method further comprises, for each time point in the time series, determining whether instantaneous sensor data associated with that time point is indicative of a predetermined long-term effect. The method further includes selectively storing instantaneous sensor data determined to be indicative of a predetermined long-term effect. The method further includes estimating a time series of at least one physical parameter based on the received input data. Estimating includes, for all time points after the time point at which the instantaneous sensor data was selectively stored, applying long-term effect attention to the selectively stored instantaneous sensor data (e.g., the same according to a rule or provision). Applying long-term effect attention may be applied in addition to any conventional short-term attention mechanism.
[0015] The method still further includes providing the estimated time series as output data.
[0016] The techniques disclosed herein can improve the predictive power of at least one physical parameter (also referred to as a physical quantity) that relies on time series of sensor data. Alternatively or additionally, the interpretability of the prediction and / or estimation of physical parameters can be improved. Further alternatively, modeling the evolution of physical parameters based on sensor data can be performed with improved accuracy.
[0017] This method is implemented by a neural network (NN) system, which receives a time series (also called a sequence) as input data and provides another time series as output data. The input time series and the output time series may be identical in terms of the number of time points and / or the size of the time steps with respect to the first time point (also called the start time) and / or the last time point (also called the end time). Alternatively, the output time series may contain a subset of the time points of the input time series.
[0018] The time series of the input data may include multiple channels and / or may be referred to as a multivariate time series. The multivariate time series may be acquired by multiple sensors and / or at least one multivariate sensor (for example, including a first sensing unit for measuring sensor data in a first channel, a second sensing unit for measuring sensor data in a second channel, etc., simultaneously for all channels).
[0019] A multivariate time series may include multiple (especially equally spaced) time points (and / or time steps) with predetermined start and end points. In a single channel, sensor data acquired by channel-specific sensors can be integrated (or included) across all time points in the time series.
[0020] A channel of sensor data (e.g., a first channel or a second channel, and / or also referred to as an input channel) may contain one type of sensor data (e.g., a time series) acquired by one sensor. Alternatively, the sensor data in a channel (e.g., the first or second channel) may be referred to as (in particular, direct) measurement data. The measurement data may represent a physical state (such as an electrical and / or mechanical state) at a single point in time, and / or may be measured in physical units, particularly one type of physical unit per channel, preferably different physical units for different channels. For example, the first channel of sensor data may contain voltage values, which may be referred to as voltage indices. Alternatively or additionally, the second channel of sensor data may contain current values, which may be referred to as current indices.
[0021] The input data may include time series of physical values, such as voltage values, and time series of current values, acquired at the same point in time for two time-series channels.
[0022] Complementary sensor data can be obtained from time series containing multiple channels. For example, a multivariate sensor can provide voltage and current in two different channels. Alternatively or additionally, a multivariate sensor can provide, for example, volumetric flow rate and mass flow rate in two different channels.
[0023] By acquiring complementary sensor data, the accuracy of monitoring (and / or predicting) the state of a physical object (and / or device) monitored by multivariate sensors and / or multiple sensors (e.g., battery health status (SoH)), and / or natural conditions (e.g., environmental, weather, and / or land data, e.g., the likelihood of natural events such as earthquakes) can be improved.
[0024] The output data may include a time series in at least one channel. Alternatively or additionally, the output data may provide a time series of one physical parameter per output channel.
[0025] In some examples, the physical parameters in the output channel may be of the same type as the sensor data in the input channel. Alternatively or additionally, in other examples, the physical parameters in at least one output channel may be of a different type from any of the sensor data in the input channel.
[0026] The output data can represent the (e.g., monitored and / or predicted) state of a physical object (and / or device) or its natural state. Alternatively or additionally, the output data can correspond to virtual sensor data and / or indirect measurement data. Virtual sensor data and / or indirect measurement data can be derived from the input data. The derived measurement data (and / or virtual sensor data) can represent the state of a physical object and / or may be measured in one physical unit in the case of one output channel (or in multiple different physical units in the case of multiple output channels).
[0027] In exemplary embodiments, physical parameters may include the state of health (SoH) of a rechargeable battery or capacitor, and sensor data may include voltage and / or current. Alternatively or additionally, sensor data may include capacitance, internal resistance, temperature, and / or charging cycles. In the case of a capacitor, sensor data may further include, for example, leakage current, series resistance, and / or insulation resistance.
[0028] Another example concerns the State of Heat (SOH) of other physical components. In this case, sensor data may include, for example, time, temperature, and / or other physical parameters for predicting the SOH of a highly technical component.
[0029] Instantaneous sensor data exhibiting (in particular) long-term effects, or simply put, long-term impact events (also referred to as anomalies, traumatic events, and / or adverse events), may be defined as deterministic sensor data (and / or events) at a specific point in time within a time series that accurately predicts all future outcomes. For example, a long-term impact event may be an anomaly and / or non-standard event, such as the sudden (and / or rapid) discharge of a rechargeable battery. Instantaneous sensor data may be interpreted as data that has a serious and lasting impact on subsequent predictions, or data that has a critical impact on subsequent predictions.
[0030] Alternatively or additionally, instantaneous sensor data showing long-term effects may include a difference exceeding a predetermined threshold between sensor data at a given point in time and sensor data at a preceding point in time (e.g., immediately preceding). Furthermore, alternatively or additionally, instantaneous sensor data showing long-term effects may include sensor data at a given point in time that deviates from the expected sensor data by an amount particularly greater than a predetermined threshold.
[0031] In any case, the predetermined threshold may be a numerical threshold related to the channel on which the sensor data is received. For example, in the case of voltage, the numerical value may be in volts (V), and / or in the case of current, the numerical value may be in amperes (A).
[0032] In some cases, long-term effects may have a negative impact on the performance and / or lifespan of the physical object. In other cases, long-term effects may have a positive impact on the performance and / or lifespan of the physical object.
[0033] In some cases, long-term effects (e.g., nuclear accidents, earthquakes, tornadoes, or other natural events) can have a negative impact on the natural state. In other cases, long-term effects can have a positive impact on the natural state.
[0034] Long-term effects can relate to the long-term impact on future predictions.
[0035] Long-term predictions of battery performance may be characterized by battery state. Battery state may include State of Charge (SoC) and / or Health (SoH). SoC can describe the difference between a fully charged battery and the same battery in use, and / or may be associated with the remaining amount of available power in the battery. SoC may be defined as the ratio of the remaining charge of the battery to the maximum charge that can be supplied. SoC may be expressed in particular as a percentage. Alternatively, SoC may be expressed as Depth of Discharge (DoD), which may correspond to the difference between 100% and SoC as a percentage.
[0036] SoH can describe the difference between a battery in use and a new battery, and / or can take into account degradation and / or aging over the battery's lifespan. SoH may be defined as the ratio of the maximum battery charge to its rated capacity. Alternatively or additionally, SoH may be expressed as a percentage.
[0037] The discharge profile of a rechargeable battery may depend on and / or be related to the State of Heat (SoH). In particular, the lower the SoH, the faster the battery may discharge.
[0038] Certain long-term effects on a rechargeable battery may include abrupt changes (in particular, abrupt drops) in the current and / or voltage supplied by the battery.
[0039] The SoC may be derived from a time series of battery charge levels and / or from current and time measurements. Alternatively or additionally, the SoH may be based on, or related to, the amount of charge that can be stored by the battery (in particular at a given point in time).
[0040] The capacity of a new battery may be assumed to be the same as its nominal capacity. The State of Heat (SoH) of a new battery may be assumed to be 100%.
[0041] The capacity of a battery in use may decrease over time and / or with use (including, for example, multiple charge cycles and / or multiple at least partial recharges).
[0042] A low State of Height (SoH) can result in unstable and / or unreliable performance.
[0043] Battery State of Heat (SoH) can be important for electric vehicles, hybrid vehicles, and / or robotics. Vehicle batteries are explicitly referenced below. Similar descriptions apply to robots equipped with rechargeable batteries. Robots (in particular mobile robots powered by rechargeable batteries) may be deployed in settings such as factory environments, home automation environments, and / or medical facilities.
[0044] Unstable and / or unreliable performance of a vehicle's battery can pose safety risks, such as the vehicle suddenly coming to a stop and / or partial failure of functions (e.g., power steering, also known as servo steering, electronic brakeforce distribution (EBD), electronic stability control (ESC), lights, sensors, and / or autonomous driving functions).
[0045] Autonomous driving may include any one of the following levels according to the Society of Automotive Engineers' classification system: Level 1 (driver assistance), Level 2 (partial automation), Level 3 (conditional automation), Level 4 (high automation), and / or Level 5 (fully automation).
[0046] Alternatively or additionally, battery life can be estimated based on the battery's current State of Heat (SOH), and / or a date can be scheduled for battery replacement.
[0047] The battery's State of Heat (SoH) may be derived (for example, conventionally) from its internal resistance (and / or impedance and / or conductance), capacity, voltage, self-discharge, ability to accept charge, number of charge-discharge cycles, battery elapsed time, battery temperature during past use, and / or total energy charged and discharged.
[0048] According to the technology disclosed herein, the State of Heat (SoH) may be identified by a trained neural network (NN) system based on sensor data related to the vehicle battery, such as voltage and current.
[0049] A trained NN system may include encoder-decoder pairs, recurrent neural networks (RNNs), convolutional neural networks (CNNs), and / or transformer architectures. Alternatively or additionally, a trained NN system may include multiple layers, particularly self-attention layers, multilayer perceptron (MLP) layers, and / or residual connections.
[0050] In addition to conventional attention mechanisms, attention can be implemented to selectively store instantaneous sensor data that exhibits long-term effects. Conventional attention mechanisms can assign attention weights to all instantaneous sensor data in a time series. Alternatively or additionally, conventional attention mechanisms can consider instantaneous sensor data only for a small number (and / or subset) of time points after the instantaneous sensor data has been acquired. Further alternative or additionally, conventional attention mechanisms can consider short-term effects (e.g., short-term effects only).
[0051] The NN system may be trained by supervised training and / or using training data that includes ground truth. For example, if the output data is SoH, the ground truth SoH may be provided manually and / or provided according to a specific formula (which may differ between databases of training datasets) in relation to sensor data.
[0052] Long-term impact events on the State of Heat (SOH) of a vehicle battery may include instantaneous drops in voltage and / or current.
[0053] Battery degradation in vehicle batteries can be caused by driving patterns such as aggressive driving (including braking and / or acceleration), climate, thermal characteristics related to the battery environment and / or battery use, and / or infrastructure. Any one of these causes of battery degradation can generate or respond to long-term impact events.
[0054] This method may be implemented by an NN system deployed within a battery management system.
[0055] In the medical field, long-term impact events may include stroke, heart attack, transient ischemic attack (TIA), and / or seizures (e.g., epileptic seizures).
[0056] In natural language processing (NLP), these are commands related to writing style, such as "light style," "academic," and / or "professional."
[0057] Determining whether instantaneous sensor data exhibits long-term effects may involve assigning weights (e.g., conventional weights) to all instantaneous sensor data, followed by applying predetermined (especially lower) thresholds to the weights. For example, all instantaneous sensor data with weights exceeding a predetermined threshold may be considered to exhibit long-term effects. Thresholding may also be referred to as binary classification, or ranking to higher-ranking elements (and / or higher-ranking instantaneous sensor data).
[0058] Alternatively or additionally, determining whether instantaneous sensor data exhibits long-term effects may include ranking the instantaneous sensor data.
[0059] (For example, conventional) weights and / or rankings may be learned during the training of the NN system.
[0060] Instantaneous sensor data that is determined to show long-term effects can be routed to a long-term effects memory for selective storage, particularly by a router.
[0061] Estimating the time series of physical parameters may involve combining conventional attention mechanisms with attention mechanisms specific to long-term effects. This combination may involve applying conventional weights to all sensor data.
[0062] Conventional attention mechanisms may include determining keys, values, and queries for each of the instantaneous sensor data. Determining keys, values, and queries can utilize parameters learned during the training of the NN system.
[0063] The weights of a conventional attention mechanism may be determined based on a softmax operation that generates queries and keys for all possible combinations of instantaneous sensor data.
[0064] The time series of sensor data across various channels may include both time-dimensional and inter-dimensional dependencies according to the techniques disclosed herein. Inter-dimensional dependency can refer to dependencies between different channels of sensor data and / or between different types of sensor data, such as voltage and current.
[0065] A long-term impact-specific attention mechanism may include determining an additional contribution (e.g., an additional term added to the output of a conventional attention mechanism) from instantaneous sensor data indicating the long-term impact to output data obtained after the time the long-term impact event occurred.
[0066] Attention mechanisms specific to long-term effects can differ from conventional mixture-of-depth (MoD) techniques, which limit the portion of the input data processed by the attention mechanism, while completely bypassing the remaining portion. Traditionally, MoD techniques may be used to reduce computational requirements.
[0067] The attention mechanism specific to long-term effects disclosed herein differs from conventional MoD in several respects. In particular, the technology disclosed herein is designed to support the storage of long-term effects memory (also referred to as traumatic memory). To this end, the technology disclosed herein uses only the concept of contrasting the "selection" of sensor data that is not involved in long-term effects with the storage of sensor data that does have long-term effects in dedicated long-term effects memory. In other words, the technology disclosed herein utilizes ideas from conventional MoD as a component of another different system focused on storing specific data (traumatic memory) in memory.
[0068] The techniques disclosed herein differ from conventional Mods of Data (MoD) in their implementation, for example, by employing a specific scoring function for routers and using other different attention values for tokens stored in long-term impact memory.
[0069] The sensor data channels, in particular the first channel, may include sensor data indicating voltage, current, power, resistance, capacitance, temperature, humidity, gas concentration, pressure, speed, force, torque, rotational speed, color, and / or brightness.
[0070] Sensor data can be related to the physical state of an object, particularly a rechargeable battery. Estimation of the object's physical parameters can be based on sensor data acquired in relation to the object, and / or can indicate the object's physical state.
[0071] In some examples, sensor data and estimated physical parameters may be of the same kind (for example, modified color when comparing output data with input data). In other examples, physical parameters may be of a type that is derived (and / or not directly obtainable by the sensor in particular), such as the State of Heat (SOH) of a rechargeable battery.
[0072] Sensor data may be acquired by at least one sensor. If the sensor data has multiple channels, one (e.g., multivariate) sensor may include multiple subunits, and / or a set of multiple sensors may be synchronized to acquire sensor data at the same time.
[0073] This method may further include the step of routing instantaneous sensor data that has been determined to exhibit a predetermined long-term effect to a long-term effect memory.
[0074] Routing may be performed by the router of the NN system. Alternatively or additionally, routing may include copying selected instantaneous sensor data that exhibits long-term impact, and in particular storing the copies of such selected instantaneous sensor data in long-term impact memory, while subjecting them to the same processing as the unselected instantaneous sensor data.
[0075] An NN system may include an encoder and a decoder. Alternatively or additionally, an NN system may include a transformer architecture, an RNN architecture, and / or a CNN architecture.
[0076] The NN system may include at least one (e.g., conventional) attention layer within the encoder and / or decoder. Alternatively or additionally, a long-term effect attention mechanism may be implemented in the encoder, decoder, or both.
[0077] Long-term impact attention may include the fact that, at any point in time after the long-term impact in the sensor data has been determined, the estimation of at least one physical parameter depends on the sensor data showing the long-term impact. For example, all subsequent sensor data can be corrected according to the same procedure (also called a specification), and / or, long-term impact may include the fact that long-term attention does not decay over time.
[0078] In one example, all values of physical parameters after a long-term effect may include an offset compared to the values of the physical parameters before the long-term effect. For example, the State of Heat (SOH) of a rechargeable battery may decrease or decline (e.g., sharply) by a predetermined offset at the time the long-term effect occurs, and this equivalent predetermined offset can be applied to all subsequent points in time. Alternatively or additionally, all values of physical parameters after a long-term effect may include a multiplier compared to the values of the physical parameters before the long-term effect. For example, RGB color values may be reduced by a multiplier, resulting in darker tones after the point in time when the long-term effect occurred.
[0079] The long-term attention mechanism in this invention may be combined with a conventional short-term attention mechanism.
[0080] The time series contained in the received input data may include a second channel of sensor data. Optionally, the first channel may include sensor data indicating the voltage of a rechargeable battery. The second channel may include sensor data indicating the current of a rechargeable battery.
[0081] Sensor data in different channels may be complementary and / or may provide complementary information regarding the transition of physical states.
[0082] Sensor data can indicate the physical state of a physical object. A time series of at least one physical parameter can encode the physical state of a physical object.
[0083] At least one physical parameter may include the state of health (SoH) of a rechargeable battery.
[0084] In alternative examples, sensor data may be related to the (e.g., local) environment and / or (e.g., local) climate. Physical parameters may, for example, indicate weather. Long-term effects may be attributable to, for example, hurricanes or other extreme weather events.
[0085] Alternatively or additionally, sensor data may be capable of capturing environmental or natural disasters such as wildfires, landslides, or earthquakes. Physical parameters may indicate environmental conditions, such as under normal circumstances and / or after an environmental or natural disaster.
[0086] Further examples of sensor data may include sensor data indicating traffic conditions, such as clear roads, traffic congestion, and / or accidents, as further examples of long-term impact events. Physical parameters may include, for example, prognosis regarding the development of traffic conditions.
[0087] This method may further include a step of preprocessing the received input data. Preprocessing may include providing a position encoding for each of the instantaneous sensor data.
[0088] Each position encoding of instantaneous sensor data may include assigning a timestamp and / or channel (in particular, related to a point in time within a time series) to the instantaneous sensor data.
[0089] In one example, raw sensor data is received (e.g., individually for each channel) and then preprocessed. Preprocessing allows the sensor data to be converted into a data format suitable for processing by the NN system. Alternatively or additionally, preprocessing can provide a position encoding that includes time points (and / or channels) within a time series. When using a transformer architecture, a position encoding can typically be used, for example, a sinusoidal position encoding, to inject information about the order of tokens in the sequence, because transformers lack built-in sequence recognition. In this specification, a token can refer to instantaneous sensor data within a channel and / or at a single time point.
[0090] In other examples, the input data is received as pre-processed data, which has already been converted to a data format suitable for processing by the NN system and / or already includes positional encoding.
[0091] The method may further include the step of determining the attention weight associated with instantaneous sensor data for each point in time within the time series. Determining whether the instantaneous sensor data exhibits a predetermined long-term effect may include determining whether the associated attention weight exceeds a predetermined threshold.
[0092] Alternatively or additionally, estimating the time series of at least one physical parameter may include applying the determined attention weights to all instantaneous sensor data, particularly instantaneous sensor data that exhibit a given long-term effect.
[0093] The techniques disclosed herein allow for the combination of conventional attention mechanisms for all sensor data and / or all time points with a long-term impact attention mechanism for selected sensor data exhibiting long-term impacts. This enables the use of (e.g., short-term) attention for arbitrary sensor data, increased attention for long-term impact sensor data, and / or application over a longer period into the future after a long-term impact event. In particular, attention for long-term impact sensor data may be applied from the time of its occurrence until the end of the time series.
[0094] In some examples, the time series may not have a predetermined end. For example, the time series may be started by activating a sensor, and / or the sensor may remain activated until the end of its own lifespan, until the end of the lifespan of the physical object it detects, and / or until a maintenance event (or any other, particularly manual, shutdown event) occurs.
[0095] Applying long-term effect attention may include applying a predetermined projection matrix to a linear function of instantaneous sensor data exhibiting a predetermined long-term effect. Alternatively or additionally, applying long-term effect attention may include applying a nonlinear function to instantaneous sensor data exhibiting a predetermined long-term effect.
[0096] A predetermined projection matrix can be applied to the value (in particular, among the quantities of key, value, and query) associated with instantaneous sensor data exhibiting a predetermined long-term effect.
[0097] The NN system may be trained by supervised learning based on a database of training datasets that include time series in at least a first channel of sensor data and time series of at least one physical parameter as ground truth.
[0098] Supervised learning allows us to learn attention weights for conventional attention mechanisms, and especially the application of long-term influence attention in the form of projection matrices.
[0099] Training may be conducted on larger computing devices, on computing clusters, and / or within computing clouds. Alternatively or additionally, the trained NN system may be deployed on computing devices with limited processing power and / or memory resources, such as within a vehicle's battery management system.
[0100] Supervised training can utilize the optimization of the loss function, such as minimizing the mean squared error (MSE).
[0101] Instantaneous sensor data that is determined to exhibit a predetermined long-term effect may be selectively stored in a long-term effect memory. The size of the long-term effect memory may be parameterized by an adjustable hyperparameter.
[0102] If only one type of long-term impact event is known, the adjustable hyperparameter can be set to 1, in particular.
[0103] The tunable hyperparameters may be selected by user input before training the NN system, for example.
[0104] Regarding the embodiment of the apparatus, a neural network (NN) is provided for providing an estimated time series of physical parameters based on a time series of sensor data exhibiting long-term effects. The NN system includes an input layer configured to receive input data, which includes a time series in at least a first channel of sensor data. The NN system further includes a first set of hidden layers configured to determine, for each point in the time series, whether the instantaneous sensor data associated with that point in time exhibits a predetermined long-term effect. The NN system further includes a long-term effect memory configured to selectively store instantaneous sensor data that has been determined to exhibit a predetermined long-term effect. The NN system further includes a second set of hidden layers configured to estimate a time series of at least one physical parameter based on the received input data. Estimation includes applying long-term effect attention to the selectively stored instantaneous sensor data for all time points after the point in time when the instantaneous sensor data was selectively stored. The NN system further includes an output layer configured to provide the estimated time series as output data.
[0105] The NN system may further include any one of the above features, or may be configured to perform any one of the steps disclosed in connection with the embodiments of the above method.
[0106] A further system may include a neural network (NN) system and at least one sensor, through which input data is acquired. Optionally, the further system may further include a user interface (UI), such as a graphical user interface (GUI), on which output data can be displayed.
[0107] In a further embodiment, a computer program product is provided which includes a program element, which, when loaded into the memory of a computing device (for example, an NN system), causes the computing device to perform steps of a method for providing an estimated time series of physical parameters based on a time series of sensor data showing long-term effects, according to an embodiment of the method described above.
[0108] In a further other embodiment, a computer-readable storage medium is provided which stores program elements, the program elements being read and executed by a computing device (for example, one embodying an NN system) to carry out steps of a method for providing an estimated time series of physical parameters based on a time series of sensor data showing long-term effects, according to an embodiment of the method described above.
[0109] The characteristics, features, and advantages of the present invention described above, as well as the methods by which they are achieved, will become clearer and easier to understand in light of the following description and embodiments, which will be discussed in more detail in relation to the drawings.
[0110] The following description does not limit the present invention to the embodiments described herein. Similar components or parts may be given the same reference numerals in different drawings. In general, the drawings are not to scale.
[0111] It should be understood that preferred embodiments of the present invention may be any combination of the dependent claims or the embodiments described above with their respective independent claims.
[0112] These and other aspects of the present invention will become apparent from the embodiments described below and will be explained by referring to the embodiments described below. [Brief explanation of the drawing]
[0113] [Figure 1] This is a flowchart illustrating an exemplary method for providing an estimated time series of physical parameters based on time series of sensor data showing long-term effects. [Figure 2] This figure outlines the structure and architecture of an NN system for providing an estimated time series of physical parameters based on time series of sensor data showing long-term effects. The NN system may be configured to implement the method shown in Figure 1. [Figure 3] This figure shows an example of a conventional short-term attention mechanism applied to language processing. [Figure 4] This diagram schematically illustrates the first example of a long-term effect, in which the input and output data are of similar types, particularly the color or pattern of patches at each point in time, with the black patches identified as long-term effects, which correct all future outputs. [Figure 5] This figure shows an example of voltage and current as two channels in a time series of sensor data for a rechargeable battery, and the state of health (SoH) as an estimated time series of the battery's physical parameters. [Figure 6] This diagram schematically illustrates the limitations of conventional attention mechanisms when long-term impact sensor data is present in addition to normal sensor data, i.e., short-term impact sensor data. [Figure 7] This diagram schematically illustrates conventional depth mixing (MoD) technology, and the long-term effects attention in this invention can be interpreted as a modified version thereof. [Figure 8A] This figure schematically illustrates the time-series estimation of physical parameters when instantaneous sensor data shows long-term effects. [Figure 8B] This figure schematically shows the time-series estimation of physical parameters when instantaneous sensor data does not show long-term effects, but past sensor data does. [Figure 9] This figure schematically shows the pseudocode and NN system architecture components for implementing the method shown in Figure 1. [Figure 10A] This figure schematically illustrates the improvement when using the long-term effect attention of the present invention disclosed herein, compared to the case of using only the conventional mechanism, for an example of color or pattern in Figure 4. [Figure 10B] This figure schematically illustrates the improvement when using the long-term effect attention of the present invention disclosed herein, compared to the case of using only the conventional mechanism, for an example of color or pattern in Figure 4. [Figure 11A] Extending the example in Figure 4, Figure 11A illustrates a further time series with a color or pattern for each row as input, showing the input data. [Figure 11B] Extending the example in Figure 4, Figure 11B illustrates a further time series with a color or pattern for each row as input, showing ground truth. [Figure 11C] Extending the example in Figure 4, Figure 11C illustrates a further time series with a color or pattern for each row as input, and shows estimates obtained by an NN system such as the NN system in Figure 2.
[0114] No reference numeral in the claims should be construed as limiting its scope. [Modes for carrying out the invention]
[0115] Figure 1 schematically illustrates an exemplary flowchart of Method 100 (particularly a computer implementation) for providing an estimated time series of physical parameters based on a time series of sensor data showing long-term effects using a neural network (NN) system.
[0116] Method 100 includes step S102 of receiving input data including a time series in at least a first channel of sensor data. Method 100 further includes step S106 of determining, for each point in the time series, whether the instantaneous sensor data associated with that point in time exhibits a predetermined long-term effect. Method 100 further includes step S108 of selectively storing the instantaneous sensor data that has been determined to exhibit a predetermined long-term effect in S106. Method 100 further includes step S110 of estimating a time series of at least one physical parameter based on the input data received in S102. Estimating in S110 includes applying long-term effect attention to the selectively stored instantaneous sensor data for all time points after the time the instantaneous sensor data was selectively stored in S108. Method 100 further includes step S112 of providing the estimated time series in S110 as output data.
[0117] Optionally, method 100 includes step S103 of preprocessing the input data received S102. Preprocessing S103 may include providing a position encoding for each of the instantaneous sensor data.
[0118] Method 100 may include step S104 of determining an attention weight associated with instantaneous sensor data for each point in time in the time series. Determining whether the instantaneous sensor data exhibits a predetermined long-term effect S106 may include determining whether the associated attention weight exceeds a predetermined threshold. Estimating a time series of at least one physical parameter S110 may further include applying the attention weight determined in S104 to all instantaneous sensor data, in particular including instantaneous sensor data exhibiting a predetermined long-term effect.
[0119] Method 100 may include step S107 of routing instantaneous sensor data that has been determined to exhibit a predetermined long-term effect to a long-term effect memory.
[0120] Figure 2 schematically shows an exemplary architecture of the NN system 200 for providing estimated time series of physical parameters based on time series of sensor data showing long-term effects.
[0121] The NN system 200 includes an input layer 202 configured to receive input data including a time series of sensor data in at least a first channel. The NN system 200 further includes a first set of hidden layers 206 configured to determine, for each point in the time series, whether the instantaneous sensor data associated with that point in time exhibits a predetermined long-term effect. The NN system 200 further includes a long-term effect memory 208 configured to selectively store instantaneous sensor data that has been determined to exhibit a predetermined long-term effect. The NN system 200 further includes a second set of hidden layers 210 configured to estimate a time series of at least one physical parameter based on the received input data. Estimation includes applying long-term effect attention to the selectively stored instantaneous sensor data for all time points after the point in time when the instantaneous sensor data was selectively stored. The NN system 200 further includes an output layer 212 configured to provide the estimated time series as output data.
[0122] Optionally, the NN system 200 includes a third set of hidden layers 203 configured to preprocess the received input data. Preprocessing includes providing a position encoding for each of the instantaneous sensor data.
[0123] The NN system 200 may include a fourth set 204 of hidden layers configured to determine attention weights associated with instantaneous sensor data for each point in time in the time series. Determining whether instantaneous sensor data exhibits a predetermined long-term effect may include determining whether the associated attention weight exceeds a predetermined threshold. Estimating a time series of at least one physical parameter may further include applying the determined attention weights to all instantaneous sensor data, in particular including instantaneous sensor data exhibiting a predetermined long-term effect.
[0124] The NN system 200 may include a router 207 configured to route instantaneous sensor data that has been determined to exhibit a predetermined long-term impact to a long-term impact memory.
[0125] The NN system 200 may be configured to carry out method 100.
[0126] The NN system 200 may be embodied by a computing device. The computing device may include an input / output interface 220, a processor 222, and memory 224. The input / output interface 220 can embody an input layer 202 and an output layer 212. Alternatively or additionally, the processor 222 can embody any one of the following: a hidden layer 214 (e.g., a first set of hidden layers 206, a second set of hidden layers 210, a third set of hidden layers 203, and / or a fourth set of hidden layers 204) and / or a router 207.
[0127] Memory 224 can embody the long-term impact memory 208.
[0128] Further systems may include an NN system 200 and sensors, which can acquire time series in one or more channels of sensor data. Alternatively or additionally, further systems may include a GUI-like UI for displaying the estimated time series output of the time series of at least one physical parameter.
[0129] The system may be configured to carry out method 100.
[0130] The techniques disclosed herein (including, for example, Method 100 and / or Computing Device 200) may also be referred to as solutions to traumatic testing and / or novel benchmarks designed to abstract the challenge of improving time series forecasting. Both empirical and theoretical evidence has shown that conventional self-attention layers struggle with this test. To overcome these limitations, the techniques of the disclosure utilize a novel traumatic memory mechanism and leverage conventional mixture-of-depths techniques to effectively capture long-term effects. Empirical results have demonstrated that the techniques enable attention layers to successfully pass traumatic testing, thereby demonstrating the potential of the techniques for improving model performance in scenarios with persistent effects.
[0131] To evaluate the ability of the techniques disclosed herein to handle scenarios with lasting effects, a traumatic test has been proposed, which is an abstraction of the problem, namely, a test of whether a model (e.g., an NN system) can effectively handle traumatic data. It has been shown experimentally and theoretically by using the techniques of the present invention that existing attention mechanisms are not adequately suited to such tasks. Intuitively, this problem arises because conventional self-attention mechanisms impose constraints on how vectors should relate to each other. Specifically, conventional mechanisms compel certain vectors to be close to each other while simultaneously compelling them to be far apart from each other, which creates a contradiction.
[0132] In experiments, single-layer attention mechanisms have been evaluated by comparison with predictions using identity functions, demonstrating a significant degradation in performance when handling long-term impact events (also known as traumatic data). It can be theoretically demonstrated that achieving the desired attention pattern for normalized keys and queries is impossible. This can be proven using Norm's triangle inequality and the Cauchy-Schwarz inequality. These results highlight the limitations of conventional (e.g., network) architectures and motivate the need for alternative approaches.
[0133] To address the limitations of self-attention when handling traumatic data, the techniques disclosed herein extend the self-attention mechanism using a component called long-term impact memory (also referred to as traumatic memory). This traumatic memory explicitly stores the long-term impact events (also referred to as traumatic events) themselves, ensuring that these long-term impact events are always retained and accessible throughout the estimation (and / or prediction) process. By explicitly storing these critical events, the traumatic memory reduces the burden on the attention mechanism, which no longer needs to repeatedly focus on these events at each computation step. This directly resolves the conventional contradictory constraints on the relationships between vectors, which were recognized as a major problem with conventional self-attention mechanisms.
[0134] The contents of the long-term impact memory (and / or traumatic memory) are dynamically determined using a modified form of depth blending techniques, which identifies and stores the most core events (and / or long-term impact events) in the sequence (and / or time series). This design ensures that the long-term impact memory reliably captures long-term impact events (also referred to as critical events), eliminating the need for the attention mechanism to repeatedly highlight long-term impact events. Furthermore, because the long-term impact memory explicitly stores long-term impact events (and / or critical events) that affect predictions, it provides a significant level of interpretability. Practitioners can directly examine the contents of the long-term impact memory to understand which events the model (and / or NN system) considers critical, which is a particularly valuable feature in domains where reliability and transparency are essential.
[0135] By integrating long-term impact (and / or traumatic) memory with self-attention, the techniques of this disclosure, particularly including NN system architectures, overcome the inherent limitations of conventional self-attention when processing long-term impact data (and / or traumatic data). The key improvement lies in how long-term impact memory complements attention. Specifically, long-term impact memory ensures that long-term impact events (and / or central events) remain persistently accessible and that their impacts are preserved, thereby allowing the attention mechanism to focus on other aspects of the sequence (and / or time series). This separation of roles not only resolves the contradictory constraints of conventional self-attention but also streamlines the computation of the NN system (and / or model) by eliminating the need to repeatedly direct attention to long-term impact events (and / or traumatic events).
[0136] Prior to the technologies disclosed herein, to the best of our knowledge, neural networks (NNs) specifically designed to handle long-term impact data (and / or “traumatic” data) had not been studied, despite the fact that such long-term impact data occurs in various types of time-series data.
[0137] Data can be defined as having long-term impact (also referred to as traumatic) if an event is decisive in accurately predicting all future outcomes. For example, in the context of batteries, the objective is to predict the state of health (SoH) of a battery. If a battery is improperly discharged, that battery may have a significant long-term impact on its SoH. Alternatively or additionally, in the medical field, a stroke is an event that may have lasting repercussions on a patient's condition when predicting their state of health. Further alternative or additionally, in natural language processing (NLP), certain commands may influence all subsequent conversations. For example, if you want responses to be of a certain type (such as light, academic, or professional), these commands may have a lasting impact.
[0138] The technologies disclosed herein introduce novel NN system architectures, such as novel transformer architectures, specifically designed for long-term impact data (also referred to as traumatic data). Novel tasks are introduced that highlight the unique characteristics of traumatic data, and the limitations of conventional transformers when applied to traumatic data are examined. The technologies disclosed include innovative architectures specifically tailored to effectively handle traumatic data. Empirical comparisons were performed between the original attention mechanisms and the novel architectures for exemplary novel tasks, demonstrating improvements ranging from 5 to 100 times on specific datasets.
[0139] The primary benefit of the technology disclosed herein is its improved predictive power. A secondary benefit is the improved interpretability of the NN system architecture. This is achieved by introducing a novel component that identifies and highlights specific coordinates with significant global impact, thereby providing additional insights without compromising the primary goal of predictive performance of the NN system (also referred to as the model).
[0140] Another advantage of the technology disclosed herein is its ability to identify the difficulties inherent in conventional transformers when dealing with traumatic data. This insight provides an understanding of how novel attention mechanisms should be designed to be better suited for such data. This challenge is demonstrated by introducing a new task.
[0141] When conducting a "traumatic task," long-term impact attention can be imposed.
[0142] Figure 4 schematically illustrates a first example of a long-term effects attention (and / or traumatic task) for a time series with one channel of sensor data as input, where the physical parameters of the output are sensor data of the same type as the input.
[0143] In the example in Figure 4, each input consists of a series of colors (in particular, corresponding to the sensor data received in step S102), with one color being black. The positions of black and the other colors are uniformly randomly selected. Each color is represented in RGB format, consisting of three integers ranging from 0 to 255. For example, black is represented as (0,0,0), while white is represented as (255,255,255). In the time series of input data in Figure 4, the sensor data 401-I;402-I;403-I;404-I at the first four time points correspond to light shades of blue, yellow, pink, and green, respectively. At the fifth time point, sensor data 405-I corresponds to black. The subsequent sensor data 406-I;407-I;408-I;409-I;410-I;411-I;412-I;413-I correspond to blue, blue, orange, pink, yellow, pink, green, and green, respectively, with the same lightness of color as the sensor data 401-I;402-I;403-I;404-I before the occurrence of black 405-I.
[0144] In the example in Figure 4, the output colors 401-O;402-O;403-O;404-O at the first four time points (in particular, corresponding to the physical parameters provided in step S112) are identical to the input colors (and / or sensor data) 401-I;402-I;403-I;404-I. At the fifth time point, black is output 405-O.
[0145] The objective of the example in Figure 4 is to reproduce the exact color from the input before the black square appears, as illustrated by 401-I;402-I;403-I;404-I and 401-O;402-O;403-O;404-O. After the black square appears in the input time series at reference code 405-I and in the output time series at reference code 405-O, the task (also called the objective) is to return a similar color, but in a darker shade. Following black 405-O, reference codes 406-O;407-O;408-O;409-O;410-O;411-O;412-O;413-O provide blue, blue, orange, pink, yellow, pink, green, and green as outputs, each in a darker tone than the corresponding inputs 406-I;407-I;408-I;409-I;410-I;411-I;412-I;413-I. To achieve darker tones, a darker version of the color can be created by multiplying each of the three RGB coordinates by, for example, 0.6.
[0146] In the example in Figure 4, the “traumatic task” has the objective of minimizing the mean squared error (MSE) between the output data and the input data at each point in time, under the condition of a long-term effect of corrected color tones in the output time series after the appearance of black.
[0147] Figures 11A, 11B, and 11C provide further illustrative time series of examples of color (or pattern) as input data (and / or sensor data) and examples of color (or pattern) as output data (and / or physical parameters), where black is used as an indicator of a predetermined long-term effect of the change from lighter to darker colors.
[0148] In Figure 11A, each row represents a new time series of the input data. Figure 11B shows the ground truth following a general rule of converting each color to a darker shade after the appearance of black, and Figure 11C shows the actual estimated output by the NN system, which agrees very well with the ground truth.
[0149] Examples in Figures 4 and 11A, 11B, and 11C include a single channel in the time series of the input data.
[0150] An example using two channels of time-series input data (and / or sensor data) is shown in Figure 5. In Figure 5, the first channel of input data includes voltage values (in volts), the second channel of input data includes current values (in amperes) of a rechargeable battery, and the SoH value (as a percentage) is used as output data (and / or physical parameters).
[0151] Reference numerals 502-1; 504-1; and 506-1 show the voltage, current, and SoH values before the occurrence of the long-term effect, respectively. Reference numeral 508 indicates when the long-term effect occurs. The long-term effect 508 is visible as a sudden drop in voltage, current, and SoH. As shown in reference numerals 502-2; and 504-2, the voltage and current values recover at least partially after the moment 508 when the long-term effect occurs, respectively. Despite the voltage 502-2 and current 504-2 increasing again, the SoH value 506-2 after the occurrence of the long-term effect 508 remains permanently low (and / or does not recover even partially).
[0152] The example in Figure 5 utilizes a multivariate time series of sensor data. Multivariate time series (MTS) have long been used for MTS prediction involving interdimensional dependencies between variables (e.g., between voltage and current values before long-term effects occur in the example in Figure 5). Model architectures for MTS prediction, and / or time series-based models, can be based, for example, on the crossformer model architecture described in [1]. Alternatively or additionally, an NN system (such as NN system 200) for implementing the techniques described herein can be based on a conventional MTS prediction model such as a crossformer architecture, to which routing of predetermined long-term effect data via a long-term effect memory is added.
[0153] Figure 6 schematically illustrates the limitations of conventional transformers, such as crossformers, when applied to long-term impact data (and / or traumatic data).
[0154] Conventional attention mechanisms for traumatic data present inherent difficulties. Understanding these difficulties is crucial for designing a novel NN system architecture for the technology of this disclosure.
[0155] For illustrative purposes, using the color (or pattern) examples in Figures 4 and 11A to 11C, the ideal attention should be high for both the key of each color (or pattern) and the key of black. This is because both of these colors are precisely the two quantities required by the present invention in order to decode the values of each color. In other words,
number
[0156] In Figure 6, this requirement is examined from a geometric perspective. When all keys and queries are viewed geometrically, the following can be observed for each non-black color:
[0157] (1) Queries should be positioned close to their color key in order to attract high attention, i.e.,
number
number
[0158] Unfortunately, it is impossible to satisfy all three requirements simultaneously. If a query for a non-black color is located close to both the black key and the key for that color, then according to the triangle inequality, the query for a non-black color will not be located far from the keys for all non-black colors. This contradicts requirement (3).
[0159] From the above considerations, we can conclude that there are challenges in having many different queries located close together under the same key. This finding is crucial for designing new NN system architectures for the techniques disclosed herein.
[0160] The new NN system architecture is designed to effectively process long-term impact data (and / or traumatic data). This is achieved through a two-step process: firstly, by incorporating a dedicated memory component (e.g., the long-term impact memory 208 of the NN system 200) that is always accessible to an attention mechanism (in particular, including long-term impact attention according to the present invention); and secondly, by developing a method for learning the contents of this memory.
[0161] In the first step, long-term impact memory (also known as traumatic memory) is incorporated into the attention mechanism.
[0162] To prevent attention dispersion, where multiple queries cannot simultaneously focus on the same key, a new component called long-term impact memory is introduced. This long-term impact memory contains a subset of data that is guaranteed to receive full attention from the moment it occurs. More formally, memory M⊆[n] is introduced, where n is the length of the input (and / or the length of the time series), and this memory M contains a subset of the input. The inputs contained in M are guaranteed to receive full attention at every point in time since they occurred. More precisely, equation (1) is,
number
number
[0163] There are multiple possible options for the function f.
[0164] (1)
number
[0165] (2)
number
number
[0166] Value function for traumatic data
number
number
[0167] (3) It uses a nonlinear function, such as a small-scale neural network.
[0168] In the second step, the contents of the traumatic memory M are learned using a modified (and / or generalized) depth blending technique.
[0169] The concept of depth mixing (MoD) (reference [3]) is modified and selected by the techniques of this disclosure by a novel method for facilitating the learning of the contents of long-term impact memory (also known as traumatic memory). MoD techniques have traditionally been used to reduce computational requirements. Originally, MoD techniques were proposed to mitigate the squarely increasing complexity of attention mechanisms. Rather than requiring all inputs to pass through the attention mechanism, as schematically shown on the right side of Figure 7, reproduced from Figure 1 of reference [3], MoD techniques restrict the inputs processed by this mechanism to a subset of size k smaller than the total input size. The remaining inputs completely bypass the attention mechanism, as schematically shown on the left side of Figure 7.
[0170] More formally, the modding method is:
number
number
[0171] The top k elements according to this ranking are P={x i :x i This is calculated as} which is one of the top k elements according to r. Then, the attention mechanism h is applied as shown in Figure 7. Specifically, the result for the i-th element by the MoD technique is:
number
[0172] The long-term impact memory of the technology of the present invention disclosed herein is learned in several steps. The best elements according to the router are used as the contents of the long-term impact memory. Specifically, in the first step, the functions of the router are determined (and / or calculated). Equation (3) from conventional MoD technology is adapted to the technology disclosed herein,
number
[0173] Multiple options are possible for g. (1) g can be assumed to be the identity function, which leads back to equation (3) in equation (4). (2) Use a nonlinear function such as a small neural network. The inventors have found that this option yields excellent results.
[0174] In the second step, the top k values P are inserted into the long-term impact memory M.
[0175] In the third step, the long-term effect attention mechanism of the present invention is implemented using the long-term effect memory M. This operation is represented by C in the following equation (5). By using a modified form of the idea of the MoD technology,
number
[0176] Similar to the ModD technique, facilitating gradient flow is beneficial for effectively learning the router's parameters. As shown in equation (5), the router weights
number
[0177] Long-term impact attention (and / or the new paradigm) is schematically shown in Figures 8A and 8B, where Figure 8A represents the inputs (and / or sensor data indicating long-term impacts) that are input to the long-term impact memory, and Figure 8B represents all other inputs (and / or sensor data that do not indicate long-term impacts).
[0178] The technology of this disclosure introduces a new parameter called the long-term effects memory size. In experiments, this long-term effects memory size was set to 1 (e.g., corresponding to one instant of sensor data). However, the memory size is a hyperparameter that can be adjusted using a validation set. In other words, the long-term effects memory size may be greater than 1. This would be preferable when multiple different long-term effects are known for a particular combination of sensor data and the resulting estimated physical parameters.
[0179] Exemplary pseudocode for implementing the technologies disclosed herein is as follows:
[0180] Step 1: Learn about memory • Use equation (4) to calculate x_trauma, which is the result of the router; ·Values,traumatic_memory:=topk(x_trauma); Use equation (5) to find the result of the calculation. Step 2: Calculate normal attention (also called conventional attention). • Calculate the key, query, value, and attention weight according to formula (1). Step 3: Add the new long-term impact memory to regular attention. • Add the element values calculated in Step 1 to the above section, i.e., corresponding to equation (2).
[0181] Figure 9 further illustrates pseudocode for implementing the technology of this disclosure and NN system architecture components. Reference numeral 902 indicates linear token embeddings for a time series of received sensor data (e.g., voltage and current for estimating the SoH of a rechargeable battery, or the input colors in Figure 4). Reference numeral 903 indicates a location encoding (e.g., according to a learned table). The location encoding can refer to a point in time (also referred to as a time step) of the sensor data. Sensor data at any particular point in time can also be referred to as instantaneous sensor data. Sensor data exhibiting a predetermined long-term effect may be a subset of instantaneous sensor data, i.e., a subset associated with one (or a few) points in time where the long-term effect occurred.
[0182] In Figure 9, reference numeral 904 indicates a feedforward layer. Reference numeral 906 indicates a head (including a first set of hidden layers 206 that can determine, for example, a conventional attention mechanism, a router 207, and / or the weights of the MLP layer). Reference numeral 908 indicates a linear projection layer. The linear projection layer may represent a second set of hidden layers 210 that perform a time-point estimate of at least one physical parameter (e.g., the State of Height of a rechargeable battery).
[0183] An empirical comparison was performed for the color examples in Figure 4. Both the conventional attention mechanism and the technology with long-term effect attention in the present invention disclosed herein were tested using the following parameters: batch size = 16, sequence length = 32, maximum iterations = 100,000, learning_rate = 1e-3, n_embd = 4, n_head = 1, n_layer = 1, and n_examples = 2048.
[0184] The overall test process scheme is shown in Figure 9. Head 906 may be considered to correspond to the attention diagrams in Figures 8A and 8B, spanning the block from reference numerals 207, 208 to 210.
[0185] Exemplary empirical comparison results are shown in Figures 10A and 10B. The y-axis represents the MSE error in both cases, and the x-axis corresponds to the model's performance on both the training and validation datasets. Reference numerals 100 and 200 illustrate the techniques of the present invention (for example, as illustrated in Figure 9). Reference numeral 1002 indicates that only a conventional attention mechanism was used.
[0186] In Figure 10A, as explained in relation to Figure 4, the MSE error was determined when black was used for the long-term effect (also called a traumatic event). In Figure 10B, the results show a scenario in which the traumatic event is represented as a white square (RGB: 255, 255, 255) instead of a black square (RGB: 0, 0, 0). From Figures 10A and 10B, it is clear that the training performance and validation performance are equivalent for each model. Notably, when the traumatic event is represented as a black square, an improvement of more than (5) times is observed in the MSE, and when the traumatic event is represented as a white square, an impressive improvement of (100) times is observed.
[0187] Figure 11A schematically shows multiple time series of color (or pattern) as input, according to the scheme described in relation to Figure 4. Figure 11B shows the corresponding ground truth as output. In Figure 11C, the estimation output by a (in particular) trained NN system (e.g., NN system 200 using the architecture of Figure 9 in particular) using long-term influence attention as described in the present invention is shown. As can be seen, the output estimation in Figure 11C and the ground truth in Figure 11B show excellent agreement.
[0188] The techniques disclosed herein are applicable to the development and training of time-series-based models and pre-trained time-series models.
[0189] The prior art referenced below is incorporated herein by reference. [1] Yunhao Zhang and Junchi Yan, “CROSSFORMER: TRANSFORMER UTILIZING CROSSDIMENSION DEPENDENCY FOR MULTIVARIATE TIME SERIES FORECASTING”, ICLR 2023 [2] Ashish Vaswani et al., “Attention Is All You Need”, 31st Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA, arXiv:1706.03762v7 [cs.CL], August 2, 2023. [3] David Raposo et al., “Mixture-of-Depths: Dynamically allocating compute in transformer-based language models”, 2024 Google DeepMind, arXiv:2404.02258v1 [cs.LG], April 2, 2024.
Claims
1. A computer-implemented method (100) for providing a time series of estimated physical parameters based on a time series of sensor data showing long-term effects, using a neural network (NN) system, The aforementioned method, - The step of receiving input data including a time series in at least a first channel of sensor data (S102), - For each point in the time series, the step (S106) is to determine whether the instantaneous sensor data associated with that point in time shows a predetermined long-term effect, - A step (S108) of selectively storing instantaneous sensor data that has been determined to exhibit the predetermined long-term effects (S106), - A step (S110) of estimating a time series of at least one physical parameter based on the received (S102) input data, wherein the estimation (S110) includes applying long-term influence attention to the selectively stored (S108) instantaneous sensor data for all time points after the time when the instantaneous sensor data was selectively stored (S106), - The step of providing the estimated time series (S110) as output data (S112), Method (100), including the method (100).
2. The sensor data channels, particularly the first channel, include sensor data representing voltage, current, power, resistance, capacitance, temperature, humidity, gas concentration, pressure, speed, force, torque, rotational speed, color, and / or brightness. The method according to claim 1 (100).
3. The above method (100) is, - A step (S107) in which the instantaneous sensor data that has been determined to exhibit the predetermined long-term effect (S104) is routed to the long-term effect memory. Further including, The method according to claim 1 or 2 (100).
4. The NN system includes an encoder and a decoder, and / or The NN system includes a transformer architecture, a recurrent neural network (RNN) architecture, and / or a convolutional neural network (CNN) architecture. The method according to any one of claims 1 to 3 (100).
5. The time series included in the received input data (S102) includes a second channel of sensor data, Optionally, the first channel includes sensor data indicating the voltage of a rechargeable battery. The second channel includes sensor data indicating the current of the rechargeable battery, The method according to any one of claims 1 to 4 (100).
6. The aforementioned sensor data indicates the physical state of the physical object. The time series of the at least one physical parameter encodes the physical state of the physical object. The method according to any one of claims 1 to 5 (100).
7. The at least one physical parameter includes the state of health (SoH) of the rechargeable battery. The method according to any one of claims 1 to 6 (100).
8. The above method (100) is, - Step (S103) of preprocessing the received (S102) input data, wherein the preprocessing (S103) includes providing a position encoding for each of the instantaneous sensor data. Further including, The method according to any one of claims 1 to 7 (100).
9. The above method (100) is, - A step (S104) to determine the attention weight associated with the instantaneous sensor data for each point in time within the aforementioned time series. It further includes, Determining whether the instantaneous sensor data exhibits a predetermined long-term effect (S106) includes determining whether the associated attention weight exceeds a predetermined threshold, Estimating the time series of at least one physical parameter (S110) further includes applying the determined (S104) attention weight to all instantaneous sensor data, in particular including the instantaneous sensor data showing a predetermined long-term effect. The method according to any one of claims 1 to 8 (100).
10. Applying the aforementioned long-term impact attention means - Applying a predetermined projection matrix to the linear function of the instantaneous sensor data that exhibits a predetermined long-term effect, Or, - Applying a nonlinear function to the instantaneous sensor data that shows a predetermined long-term effect. including, The method according to any one of claims 1 to 9 (100).
11. The NN system is trained by supervised learning based on a database of training datasets that include a time series in at least a first channel of sensor data and a time series of at least one physical parameter as ground truth. The method according to any one of claims 1 to 10 (100).
12. The instantaneous sensor data that is determined to exhibit the predetermined long-term effects (S106) is selectively stored in the long-term effects memory (S108). The size of the aforementioned long-term impact memory is parameterized by an adjustable hyperparameter. The method according to any one of claims 1 to 11 (100).
13. A neural network (NN) system (200) for providing a time series in which physical parameters are estimated based on a time series of sensor data showing long-term effects, The aforementioned neural network (NN) system (200) is - An input layer (202) configured to receive input data including a time series in at least one channel of sensor data, - A first set (206) of hidden layers configured to determine whether the instantaneous sensor data associated with each point in time within the aforementioned time series exhibits a predetermined long-term effect, - A long-term impact memory (208) configured to selectively store the instantaneous sensor data that has been determined to exhibit the predetermined long-term impact, - A second set of hidden layers (210) configured to estimate a time series of at least one physical parameter based on the received input data, wherein the estimation includes applying long-term influence attention to the selectively stored instantaneous sensor data for all time points after the time the instantaneous sensor data was selectively stored, - An output layer (212) configured to provide the estimated time series as output data, A neural network (NN) system equipped with [the following features].
14. The invention further comprises any one of the features described in any one of claims 2 to 12, or is configured to carry out any one of the steps described in any one of claims 2 to 12. The NN system (200) according to claim 13.
15. A computer program product that includes program elements, The program element, when loaded into the memory of the computing device, causes the computing device to perform the steps of the method described in any one of claims 1 to 12 for providing a time series in which physical parameters are estimated based on a time series of sensor data showing long-term effects. Computer program products.
