IP Library › Granted Patent US 12,639,577
Granted Patent B2
US 12,639,577 · App. 17/479,565 · Granted May 26, 2026

Systems and methods for self supervised multi-view representation learning for time series

Inventors: Gerald Woo (Singapore, SG); Doyen Sahoo (Singapore, SG); Chu Hong Hoi (Singapore, SG)
Assignee: Salesforce, Inc.
G06N3/084G06N3/04G06N20/00G06N3/045
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,639,577
App. No.
17/479,565
Filed
Sep 20, 2021
Granted
May 26, 2026
Kind
B2
Art Unit
2141
USPC
706/25
Abstract

A multi-view contrastive relational learning framework is provided. In the multi-view contrastive relational learning framework, contrastive learning is augmented with a multi-view learning signal. The auxiliary views guide an encoder of the underlying time series data's main view, by using an inter-sample similarity structure as a learning signal to learn representations which encode information from multiple views.

Claims (76)

1 . A method for multi-view contrastive relational learning for time-series prediction, the method comprising:

receiving, via a data interface, a training dataset of data samples of a plurality of time-series sequences;

generating a first set of samples with each sample corresponding to a respective time-step by transforming a time-series sequence of the plurality of time-series sequences via a first transformation;

generating a first set of pairs of random augmentations based on the first set of samples, wherein each pair of the first set of pairs of random augmentations includes random augmentations from the same time-step;

generating, by a main encoder, a set of pairs of representations of the first set of pairs of random augmentations;

generating a second set of samples by transforming the time-series sequence via a second transformation different from the first transformation;

generating a second set of pairs of random augmentations based on the second set of samples, wherein each pair of the second set of pairs of random augmentations includes random augmentations from the same time-step;

generating, by one or more auxiliary encoders, one or more sets of pairs of auxiliary representations of at least the second set of pairs of random augmentations;

computing a contrastive loss component based on similarities between representations from the set of pairs of representations;

computing a relational loss component by:

computing a first value based on a comparison of a random augmentation from the first set of pairs of random augmentations associated with a first time-step, and a random augmentation from the first set of pairs of random augmentations associated with a second time-step,

computing a second value based on a comparison of a random augmentation from the second set of pairs of random augmentations associated with the first time-step, and a random augmentation from the second set of pairs of random augmentations associated with the second time-step, and

using the second value as a soft-label for the first value in a cross-entropy loss;

computing a combined loss objective by combining the contrastive loss component and the relational loss component;

updating the main encoder based on the combined loss objective via backpropagation;

generating, via the updated main encoder, encoded data based on a measured set of time-series data; and

generating a prediction based on the encoded data.

2 . The method of claim 1 , further comprising:

generating, at each of a one or more auxiliary encoders, a respective contrastive loss objective based on similarities between representations from the one or more set of pairs of auxiliary representations; and

updating each of the one or more auxiliary encoders based on the respective contrastive loss respectively.

3 . The method of claim 1 , wherein each of the one or more auxiliary encoders corresponds to a specific view.

4 . The method of claim 1 , wherein the first transformation is identity transformation.

5 . The method of claim 1 , wherein the second transformation includes at least one of moving average, n-th order differencing, or discrete Fourier transformation.

6 . The method of claim 1 , wherein the contrastive loss component is generated by a non-parametric softmax function.

7 . The method of claim 1 , wherein the relational loss component is further based on a cross-entropy between intra-symbol pairs from the set of pairs of representations and intra-symbol pairs from the one or more sets of pairs of auxiliary representations.

8 . A system for multi-view contrastive relational learning for time-series prediction, the system comprising:

a non-transitory memory; and

one or more processors coupled to the non-transitory memory and configured to read instructions from the non-transitory memory to cause the system to perform operations comprising:

receiving, via a data interface, a training dataset of data samples of a plurality of time-series sequences;

generating a first set of samples with each sample corresponding to a respective time-step by transforming a time-series sequence of the plurality of time-series sequences via a first transformation;

generating a first set of pairs of random augmentations based on the first set of samples, wherein each pair of the first set of pairs of random augmentations includes random augmentations from the same time-step;

generating, by a main encoder, a set of pairs of representations of the first set of pairs of random augmentations;

generating a second set of samples by transforming the time-series sequence via a second transformation different from the first transformation;

generating a second set of pairs of random augmentations based on the second set of samples, wherein each pair of the second set of pairs of random augmentations includes random augmentations from the same time-step;

generating, by one or more auxiliary encoders, one or more sets of pairs of auxiliary representations of at least the second set of pairs of random augmentations;

computing a contrastive loss component based on similarities between representations from the set of pairs of representations;

computing a relational loss component by:

computing a first value based on a comparison of a random augmentation from the first set of pairs of random augmentations associated with a first time-step, and a random augmentation from the first set of pairs of random augmentations associated with a second time-step different from the first time-step,

computing a second value based on a comparison of a random augmentation from the second set of pairs of random augmentations associated with the first time-step, and a random augmentation from the second set of pairs of random augmentations associated with the second time-step, and

using the second value as a soft-label for the first value in a cross-entropy loss;

computing a combined loss objective by combining the contrastive loss component and the relational loss component;

updating the main encoder based on the combined loss objective via backpropagation;

generating, via the updated main encoder, encoded data based on a measured set of time-series data; and

generating a prediction based on the encoded data.

9 . The system of claim 8 , wherein the one or more processor is further configured to cause the system to perform operations comprising:

generating, at each of a one or more auxiliary encoders, a respective contrastive loss objective based on similarities between representations from the one or more set of pairs of auxiliary representations; and

updating each of the one or more auxiliary encoders based on the respective contrastive loss respectively.

10 . The system of claim 8 , wherein each of the one or more auxiliary encoders corresponds to a specific view.

11 . The system of claim 8 , wherein the first transformation is identity transformation.

12 . The system of claim 8 , wherein second transformation includes at least one of moving average, n-th order differencing, or discrete Fourier transformation.

13 . The system of claim 8 , wherein the contrastive loss component is generated by a non-parametric softmax function.

14 . The system of claim 8 , wherein the relational loss component is further based on a cross-entropy between intra-symbol pairs from the set of pairs of representations and intra-symbol pairs from the one or more sets of pairs of auxiliary representations.

15 . A non-transitory, machine-readable medium having stored thereon machine-readable instructions executable to cause a system to perform operations comprising:

receiving, via a data interface, a training dataset of data samples of a plurality of time-series sequences;

generating a first set of samples with each sample corresponding to a respective time-step by transforming a time-series sequence of the plurality of time-series sequences via a first transformation;

generating a first set of pairs of random augmentations based on the first set of samples, wherein each pair of the first set of pairs of random augmentations includes random augmentations from the same time-step;

generating, by a main encoder, a set of pairs of representations of the first set of pairs of random augmentations;

generating a second set of samples by transforming the time-series sequence via a second transformation different from the first transformation;

generating a second set of pairs of random augmentations based on the second set of samples, wherein each pair of the second set of pairs of random augmentations includes random augmentations from the same time-step;

generating, by one or more auxiliary encoders, one or more sets of pairs of auxiliary representations of at least the second set of pairs of random augmentations;

computing a contrastive loss component based on similarities between representations from the set of pairs of representations;

computing a relational loss component by:

computing a first value based on a comparison of a random augmentation from the first set of pairs of random augmentations associated with a first time-step, and a random augmentation from the first set of pairs of random augmentations associated with a second time-step different from the first time-step,

computing a second value based on a comparison of a random augmentation from the second set of pairs of random augmentations associated with the first time-step, and a random augmentation from the second set of pairs of random augmentations associated with the second time-step, and

computing the relational loss component by using the second value as a soft-label for the first value in a cross-entropy loss;

computing a combined loss objective by combining the contrastive loss component and the relational loss component;

updating the main encoder based on the combined loss objective via backpropagation;

generating, via the updated main encoder, encoded data based on a measured set of time-series data; and

generating a prediction based on the encoded data.

16 . The non-transitory, machine-readable medium of claim 15 , further having stored thereon machine-readable instructions executable to cause the system to perform operations comprising:

generating, at each of a one or more auxiliary encoders, a respective contrastive loss objective based on similarities between representations from the one or more set of pairs of auxiliary representations; and

updating each of the one or more auxiliary encoders based on the respective contrastive loss respectively.

17 . The non-transitory, machine-readable medium of claim 15 , wherein each of the one or more auxiliary encoders corresponds to a specific view.

18 . The non-transitory, machine-readable medium of claim 15 , wherein the first transformation is identity transformation.

19 . The non-transitory, machine-readable medium of claim 15 , wherein second transformation includes at least one of moving average, n-th order differencing, or discrete Fourier transformation.

20 . The non-transitory, machine-readable medium of claim 15 , wherein the relational loss component is further based on a cross-entropy between intra-symbol pairs from the set of pairs of representations and intra-symbol pairs from the one or more sets of pairs of auxiliary representations.

Assignments (2)
CHANGE OF NAME Recorded Aug 4, 2026
From: SALESFORCE.COM, INC.
To: SALESFORCE, INC.
Reel/Frame 076118/0548 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 11, 2022
From: WOO, GERALD; SAHOO, DOYEN; HOI, CHU HONG
To: SALESFORCE.COM, INC.
Reel/Frame 058990/0918 →
Continuity (2)
Provisional Application 63146906 · Feb 8, 2021
Related Publication 20220261651A1 · Aug 18, 2022
References Cited (16)
US 20210319266A1 · Chen · 2021 [cited by examiner]
US 20210374570A1 · Cheng · 2021 [cited by examiner]
US 20210383225A1 · Grill · 2021 [cited by examiner]
US 20220164585A1 · Ayvaci · 2022 [cited by examiner]
Hassani, K. et al., Contrastive Multi-view Representation Learning on Graphs, 2020, arXiv 2006.05582 (Year: 2020). [cited by examiner]
Tian Y. et al., Contrastive Multiview Coding, 2020, arXiv 1906.05849 (Year: 2020). [cited by examiner]
Tian, X., Deep Multi-View Feature Learning for EEG-Based Epileptic Seizure Detection, Sep. 2019, IEEE, Transactions on Neural Systems and Rehabilitation Engineering, pp. 1962-1972 (Year: 2019). [cited by examiner]
Zhang, C., Improving multiview face detection with multi-task deep convolutional neural networks, 2014, IEEE, Winter Conference on Applications of Computer Vision (Year: 2014). [cited by examiner]
Jing, X., Intra-view and Inter-view Supervised Correlation Analysis for Multi-view Feature Learning, 2014, Association for the Advancement of Artificial Intelligence, pp. 1-8 (Year: 2014). [cited by examiner]
Chen, T. et al., A Simple Framework for Contrastive Learning of Visual Representations, 2020, Proceedings of the 37th International Conference on Machine Learning, PMLR 119, pp. 1-11 (Year: 2020). [cited by examiner]
Khosla, P. et al., Supervised Contrastive Learning, 2020, 34th Conference on Neural Information Processing Systems NeurIPS 2020, pp. 1-13 (Year: 2020). [cited by examiner]
Caron, M. et al., Unsupervised Learning of Visual Features by Contrasting Cluster Assignments, Jan. 2021, 34th Conference on Neural Information Processing Systems NeurIPS 2020, pp. 1-23 (Year: 2021). [cited by examiner]
Haoyl Fan, et al., Self-Supervised Time Series Representation Learning by Inter-Intra Relational Reasoning, arXiv:2011.13548 [cs.LG], Nov. 27, 2020, pp. 1-19. [cited by applicant]
Jean-Yves Franceshi et al., Unsupervised Scalable Reprsentation Learning for Multivariate Time Series, 33rd Conference on Neural Informational Processing Systems (NeurIPS 2019), pp. 1-12, Vancouver Canada. [cited by applicant]
Dani Klyasseh et al., CLOCS: Contrastive Learning of Cardiac Signals Across Space, Time, and Patients, arXiv:2005.13249v2 [cs.LG], pp. 1-39. [cited by applicant]
Sana Tonekaboni et al., Unsupervised Representation Learning for Time Series with Temporal Neighborhood Coding, In International Conference on Learning Representations, http://www.cs.toronoto.edu/˜stonekaboni/, pp. 1-17. [cited by applicant]