# US 2025/0156689 A1 · Method and system for multiple time series classification on tiny edge devices using lightweight attention

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0156689 A1
- Document ID: US20250156689A1
- Status: Published application
- Kind: A1
- Application number: 18/898,842
- Filed: 2024-09-27
- Published: 2025-05-15
- Earliest claimed: 2023-11-09
- Assignees: Tata Consultancy Services Limited
- Applicants: Tata Consultancy Services Limited
- Inventors: Shalini MUKHOPADHYAY; Swarnava DEY; Avik GHOSE; Arijit MUKHERJEE; Arpan PAL; Ashwin SEKHAR
- Web page: https://patentgrep.com/patent/US20250156689A1

## CPC

- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/0985: Hyperparameter optimisation; Meta-learning; Learning-to-learn
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

This disclosure relates generally to time series signal classification, and, more particularly, to a method and system for multiple time series classification on tiny edge devices using lightweight attention. Transformer based techniques, sequential deep neural network and the like are utilized for performing time series signal classification. Also, time series classification techniques suitable for tiny edge devices are limited. The method discloses a lightweight attention network comprising attention condenser modules for time series classification on tiny edge device. The method defines a search space which is being used for performing a neural architecture search space that helps to optimize the lightweight attention network to obtain a final lightweight attention network model with high accuracy, low resource and fast inference.

## Claims

### Claim 1

A processor implemented method comprising:
receiving, via one or more hardware processors, a lightweight attention network template for time series classification, the lightweight attention network template comprising a set of layers, and wherein the set of layers comprising an embedding network layer, a plurality of lightweight attention modules connected with a scaling layer, and an output network;
determining, via the one or more hardware processors, a search space associated with the lightweight attention network template, wherein the search space includes a set of search parameters comprising type of the set of layers, configuration of the set of layers, configuration of the plurality of lightweight attention modules, connectivity between the set of layers;
generating, via the one or more hardware processors, a final lightweight attention network model for deploying in a tiny edge device for the time series classification based on one of (i) a k-set of lightweight attention modules, or (ii) a set of m-clones of the k-set of lightweight attention modules, by performing a neural architecture search on the lightweight attention network template based on an optimization technique utilizing the search space and a set of constraints of the tiny edge device, wherein the step of generating the final lightweight attention network model using the k-set of lightweight attention modules comprises:
randomly sampling a pre-defined set of lightweight attention modules from the plurality of lightweight attention modules using the configuration of the set of layers to obtain a sampled set of lightweight attention modules;
optimizing the sampled set of attention modules to obtain a k-set of lightweight attention modules based on a module optimization reward, wherein the module optimization reward for each lightweight attention module amongst the k-set of lightweight attention modules is greater than a pre-defined threshold module reward; and
optimizing the lightweight attention network template using the k-set of lightweight attention modules, the configuration of the set of layers, and a labelled input data by maximizing a model optimization reward to obtain the final lightweight attention network model in accordance with the task, wherein the final lightweight attention network model attains a maximum model optimization reward, and wherein the labelled input data is one of (i) a univariate time series signal or (ii) a multivariate time series signal.

### Claim 2 (depends on 1)

The method of claim 1, wherein each lightweight attention module amongst the plurality of lightweight attention modules,
(a) comprises a max pooling layer, a lightweight convolution network, and an unpooling layer;
(b) is depicted as any one of (i) a sequential branched connection, (ii) a parallel branched connection, or (iii) a combination thereof.

### Claim 3 (depends on 1)

The method of claim 1, wherein,
the type of the set of layers comprises a convolution layer, the max pooling layer, a dense layer, a lightweight attention module, and a softmax layer,
the configuration of the set of layers comprises a kernel size, an embedding dimension, number of filters, a pool size, and a dense size,
the configuration of the plurality lightweight attention modules comprises a set of sub-layers such as the convolution layer, a separable convolution layer, and the dense layer, and
the connectivity between the set of layers comprises a sequential connectivity, a single branch connectivity, a double branch connectivity and a combined connectivity.

### Claim 4 (depends on 1)

The method of claim 1, wherein the module optimization reward is a function of a module length, a module accuracy, and number of multiply-accumulate operations in the lightweight attention module.

### Claim 5 (depends on 1)

The method of claim 1, wherein the model optimization reward is a function of size of the model, accuracy of the model, number of layers in the model and number of multiply-accumulate operations in the model.

### Claim 6 (depends on 1)

The method of claim 1, wherein the step of generating the final lightweight attention network model using the set of m-clones of the k-set of lightweight attention modules comprises:
generating a set of m-clones of the k-set of lightweight attention modules to serve as multiple attention heads; and
optimizing the lightweight attention network template using the set of m-clones of the k-set of lightweight attention modules, the configuration of the set of layers, and the labelled input data, to obtain the final lightweight attention network model in accordance with the task by maximizing the model optimization reward, wherein the final lightweight attention network model attains a maximum model optimization reward.

### Claim 7 (depends on 1)

The method of claim 1, wherein the final lightweight attention network model is deployed in a tiny edge device for real-time series classification using real-time series signal data during an inferencing stage.

### Claim 8

A system, comprising:
a memory storing instructions;
one or more communication interfaces; and
one or more hardware processors coupled to the memory via the one or more communication interfaces, wherein the one or more hardware processors are configured by the instructions to:
receive a lightweight attention network template for time series classification, the lightweight attention network template comprising a set of layers, and wherein the set of layers comprising an embedding network layer, a plurality of lightweight attention modules connected with a scaling layer, and an output network;
determine a search space associated with the lightweight attention network template, wherein the search space includes a set of search parameters comprising type of the set of layers, configuration of the set of layers, configuration of the plurality of lightweight attention modules, connectivity between the set of layers;
generate a final lightweight attention network model for deploying in a tiny edge device for time series classification based on one of (i) a k-set of lightweight attention modules, or (ii) a set of m-clones of the k-set of lightweight attention modules, by performing a neural architecture search on the lightweight attention network template based on an optimization technique utilizing the search space and a set of constraints of the tiny edge device, wherein the step of generating the final lightweight attention network model using the k-set of lightweight attention modules comprises:
randomly sampling a pre-defined set of lightweight attention modules from the plurality of lightweight attention modules using the configuration of the set of layers to obtain a sampled set of lightweight attention modules;
optimizing the sampled set of attention modules to obtain a k-set of lightweight attention modules based on a module optimization reward, wherein the module optimization reward for each lightweight attention module amongst the k-set of lightweight attention modules is greater than a pre-defined threshold module reward; and
optimizing the lightweight attention network template using the k-set of lightweight attention modules, the configuration of the set of layers, and a labelled input data by maximizing a model optimization reward to obtain the final lightweight attention network model in accordance with the task, wherein the final lightweight attention network model attains a maximum model optimization reward, and wherein the labelled input data is one of (i) a univariate time series signal or (ii) a multivariate time series signal.

### Claim 9 (depends on 8)

The system of claim 8, wherein each lightweight attention module amongst the plurality of lightweight attention modules,
(a) comprises a max pooling layer, a lightweight convolution network, and an unpooling layer;
(b) is depicted as any one of (i) a sequential branched connection, (ii) a parallel branched connection, or (iii) a combination thereof.

### Claim 10 (depends on 8)

The system of claim 8, wherein,
the type of the set of layers comprises a convolution layer, the max pooling layer, a dense layer, a lightweight attention module, and a softmax layer,
the configuration of the set of layers comprises a kernel size, an embedding dimension, number of filters, a pool size, and a dense size,
the configuration of the plurality lightweight attention modules comprises a set of sub-layers such as the convolution layer, a separable convolution layer, and the dense layer, and
the connectivity between the set of layers comprises a sequential connectivity, a single branch connectivity, a double branch connectivity and a combined connectivity.

### Claim 11 (depends on 8)

The system of claim 8, wherein the module optimization reward is a function of a module length, a module accuracy, and number of multiply-accumulate operations in the lightweight attention module.

### Claim 12 (depends on 8)

The system of claim 8, wherein the model optimization reward is a function of size of the model, accuracy of the model, number of layers in the model and number of multiply-accumulate operations in the model.

### Claim 13 (depends on 8)

The system of claim 8, wherein the step of generating the final lightweight attention network model using the set of m-clones of the k-set of lightweight attention modules comprises:
generate a set of m-clones of the k-set of lightweight attention modules to serve as multiple attention heads; and
optimize the lightweight attention network template using the set of m-clones of the k-set of lightweight attention modules, the configuration of the set of layers, and the labelled input data, to obtain the final lightweight attention network model in accordance with the task by maximizing the model optimization reward, wherein the final lightweight attention network model attains a maximum model optimization reward.

### Claim 14 (depends on 8)

The system of claim 8, wherein the final lightweight attention network model is deployed in a tiny edge device for real-time series classification using real-time series signal data during an inferencing stage.

### Claim 15

One or more non-transitory machine-readable information storage mediums comprising one or more instructions which when executed by one or more hardware processors cause:
receiving a lightweight attention network template for time series classification, the lightweight attention network template further comprising a set of layers, and wherein the set of layers comprising an embedding network layer, a plurality of lightweight attention modules connected with a scaling layer, and an output network;
determining a search space associated with the lightweight attention network template, wherein the search space includes a set of search parameters further comprising type of the set of layers, configuration of the set of layers, configuration of the plurality of lightweight attention modules, connectivity between the set of layers;
generating a final lightweight attention network model for deploying in a tiny edge device for the time series classification based on one of (i) a k-set of lightweight attention modules, or (ii) a set of m-clones of the k-set of lightweight attention modules, by performing a neural architecture search on the lightweight attention network template based on an optimization technique utilizing the search space and a set of constraints of the tiny edge device, wherein the step of generating the final lightweight attention network model using the k-set of lightweight attention modules comprises:
randomly sampling a pre-defined set of lightweight attention modules from the plurality of lightweight attention modules using the configuration of the set of layers to obtain a sampled set of lightweight attention modules;
optimizing the sampled set of attention modules to obtain a k-set of lightweight attention modules based on a module optimization reward, wherein the module optimization reward for each lightweight attention module amongst the k-set of lightweight attention modules is greater than a pre-defined threshold module reward; and
optimizing the lightweight attention network template using the k-set of lightweight attention modules, the configuration of the set of layers, and a labelled input data by maximizing a model optimization reward to obtain the final lightweight attention network model in accordance with the task, wherein the final lightweight attention network model attains a maximum model optimization reward, and wherein the labelled input data is one of (i) a univariate time series signal or (ii) a multivariate time series signal.

### Claim 16 (depends on 15)

The one or more non-transitory machine-readable information storage mediums of claim 15, wherein each lightweight attention module amongst the plurality of lightweight attention modules,
(c) comprises a max pooling layer, a lightweight convolution network, and an unpooling layer;
(d) is depicted as any one of (i) a sequential branched connection, (ii) a parallel branched connection, or (iii) a combination thereof.

### Claim 17 (depends on 15)

The one or more non-transitory machine-readable information storage mediums of claim 15, wherein,
the type of the set of layers comprises a convolution layer, the max pooling layer, a dense layer, a lightweight attention module, and a softmax layer,
the configuration of the set of layers comprises a kernel size, an embedding dimension, number of filters, a pool size, and a dense size, the configuration of the plurality lightweight attention modules comprises a set of sub-layers such as the convolution layer, a separable convolution layer, and the dense layer, and
the connectivity between the set of layers comprises a sequential connectivity, a single branch connectivity, a double branch connectivity and a combined connectivity.

### Claim 18 (depends on 15)

The one or more non-transitory machine-readable information storage mediums of claim 15, wherein the module optimization reward is a function of a module length, a module accuracy, and number of multiply-accumulate operations in the lightweight attention module.

### Claim 19 (depends on 15)

The one or more non-transitory machine-readable information storage mediums of claim 15, wherein the model optimization reward is a function of size of the model, accuracy of the model, number of layers in the model and number of multiply-accumulate operations in the model.

### Claim 20 (depends on 15)

The one or more non-transitory machine-readable information storage mediums of claim 15, wherein the step of generating the final lightweight attention network model using the set of m-clones of the k-set of lightweight attention modules comprises:
generating a set of m-clones of the k-set of lightweight attention modules to serve as multiple attention heads; and
optimizing the lightweight attention network template using the set of m-clones of the k-set of lightweight attention modules, the configuration of the set of layers, and the labelled input data, to obtain the final lightweight attention network model in accordance with the task by maximizing the model optimization reward, wherein the final lightweight attention network model attains a maximum model optimization reward.
