{
  "id": 286677,
  "title": "Transformer-based Multivariate Time Series Representation Learning",
  "url": "/competitions/g-research-crypto-forecasting/discussion/286677",
  "author_name": "",
  "post_date": "2021-11-10T08:12:40.631500Z",
  "votes": 17,
  "comment_count": 1,
  "views": 0,
  "content": "<h4></h4>\n<blockquote>\n  <p><strong>TL;DR:</strong> <a href=\"https://www.kaggle.com/yamqwe/time-series-modeling-multivariate-transformer\" target=\"_blank\">Here is the code</a></p>\n</blockquote>\n<p>Hi Guys, </p>\n<p>I just finished converting <a href=\"https://www.kaggle.com/yamqwe/keras-time-series-transformer\" target=\"_blank\">my implementation</a> of the paper \"Transformer-based Multivariate Time Series Representation Learning\" from the google ventilators competition earlier this year. </p>\n<p>The notebook is <a href=\"https://www.kaggle.com/yamqwe/time-series-modeling-multivariate-transformer\" target=\"_blank\">right here</a>.</p>\n<p>It supports training as a supervised model end2end. based on the same architecture as the original paper. You can pay around with the code and get it to be training self-supervised pretty easily [the generator for the masking noise of the paper is there and tested] but as of this moment, it is at end2end mode. </p>\n<p>I was also not 100% sure if I should have included the masking while supervised training since it can be treated as an augmentation, anyway it is still there at the moment and plugged in. </p>\n<p>Basically, it is a notebook demonstrating the use case of extracting unsupervised representation vectors or transfer learning from a pretrained transformer for time-series data.</p>\n<p>Hope it helps someone, probably some fellow Kagglers.</p>\n<p><img src=\"https://storage.googleapis.com/kaggle-markpeng/GoogleBrainVentilator/mvts_transformer_architecture.png\" alt=\"\"></p>\n<p><strong>Multivariate Time Series Transformer Framework</strong></p>\n<p>Source: <a href=\"https://arxiv.org/abs/2010.02803\" target=\"_blank\">https://arxiv.org/abs/2010.02803</a></p>\n<p><strong>Reference:</strong><br>\nGeorge Zerveas et al. (2021). \"A transformer-based Framework for Multivariate Time Series Representation Learning,\" Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD '21).</p>\n<p>This notebook follows the ideas presented in my <a href=\"https://www.kaggle.com/c/g-research-crypto-forecasting/discussion/284903\" target=\"_blank\">Initial Thoughts</a>.</p>\n<p>Happy Kaggling! <br>\nCheers ^^</p>",
  "messages": [
    {
      "id": "1577604",
      "postDate": "11/10/2021 08:12:40",
      "content": "<h4></h4>\n<blockquote>\n  <p><strong>TL;DR:</strong> <a href=\"https://www.kaggle.com/yamqwe/time-series-modeling-multivariate-transformer\" target=\"_blank\">Here is the code</a></p>\n</blockquote>\n<p>Hi Guys, </p>\n<p>I just finished converting <a href=\"https://www.kaggle.com/yamqwe/keras-time-series-transformer\" target=\"_blank\">my implementation</a> of the paper \"Transformer-based Multivariate Time Series Representation Learning\" from the google ventilators competition earlier this year. </p>\n<p>The notebook is <a href=\"https://www.kaggle.com/yamqwe/time-series-modeling-multivariate-transformer\" target=\"_blank\">right here</a>.</p>\n<p>It supports training as a supervised model end2end. based on the same architecture as the original paper. You can pay around with the code and get it to be training self-supervised pretty easily [the generator for the masking noise of the paper is there and tested] but as of this moment, it is at end2end mode. </p>\n<p>I was also not 100% sure if I should have included the masking while supervised training since it can be treated as an augmentation, anyway it is still there at the moment and plugged in. </p>\n<p>Basically, it is a notebook demonstrating the use case of extracting unsupervised representation vectors or transfer learning from a pretrained transformer for time-series data.</p>\n<p>Hope it helps someone, probably some fellow Kagglers.</p>\n<p><img src=\"https://storage.googleapis.com/kaggle-markpeng/GoogleBrainVentilator/mvts_transformer_architecture.png\" alt=\"\"></p>\n<p><strong>Multivariate Time Series Transformer Framework</strong></p>\n<p>Source: <a href=\"https://arxiv.org/abs/2010.02803\" target=\"_blank\">https://arxiv.org/abs/2010.02803</a></p>\n<p><strong>Reference:</strong><br>\nGeorge Zerveas et al. (2021). \"A transformer-based Framework for Multivariate Time Series Representation Learning,\" Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD '21).</p>\n<p>This notebook follows the ideas presented in my <a href=\"https://www.kaggle.com/c/g-research-crypto-forecasting/discussion/284903\" target=\"_blank\">Initial Thoughts</a>.</p>\n<p>Happy Kaggling! <br>\nCheers ^^</p>",
      "rawMarkdown": "#### <span class=\"title-section w3-xxlarge\" id=\"codebook\">Transformer-based Multivariate Time Series Representation Learning</span>\n\n> **TL;DR:** [Here is the code](https://www.kaggle.com/yamqwe/time-series-modeling-multivariate-transformer)\n\nHi Guys, \n\nI just finished converting [my implementation](https://www.kaggle.com/yamqwe/keras-time-series-transformer) of the paper \"Transformer-based Multivariate Time Series Representation Learning\" from the google ventilators competition earlier this year. \n\nThe notebook is [right here](https://www.kaggle.com/yamqwe/time-series-modeling-multivariate-transformer).\n\n\nIt supports training as a supervised model end2end. based on the same architecture as the original paper. You can pay around with the code and get it to be training self-supervised pretty easily [the generator for the masking noise of the paper is there and tested] but as of this moment, it is at end2end mode. \n\nI was also not 100% sure if I should have included the masking while supervised training since it can be treated as an augmentation, anyway it is still there at the moment and plugged in. \n\nBasically, it is a notebook demonstrating the use case of extracting unsupervised representation vectors or transfer learning from a pretrained transformer for time-series data.\n\nHope it helps someone, probably some fellow Kagglers.\n\n![](https://storage.googleapis.com/kaggle-markpeng/GoogleBrainVentilator/mvts_transformer_architecture.png)\n\n**Multivariate Time Series Transformer Framework**\n\nSource: https://arxiv.org/abs/2010.02803\n\n**Reference:**\nGeorge Zerveas et al. (2021). \"A transformer-based Framework for Multivariate Time Series Representation Learning,\" Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD '21).\n\n\nThis notebook follows the ideas presented in my [Initial Thoughts](https://www.kaggle.com/c/g-research-crypto-forecasting/discussion/284903).\n\nHappy Kaggling! \nCheers ^^",
      "votes": null
    },
    {
      "id": "2485176",
      "postDate": "10/17/2023 02:15:32",
      "content": "<p>The links you provided for the notebook or implementation, are not working.<br>\nSharing the implementation would be appritiated.</p>",
      "rawMarkdown": "The links you provided for the notebook or implementation, are not working.\nSharing the implementation would be appritiated.",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 2485176,
      "author_name": "itzzsayeed",
      "author_url": "",
      "post_date": "10/17/2023 02:15:32",
      "content": "<p>The links you provided for the notebook or implementation, are not working.<br>\nSharing the implementation would be appritiated.</p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1577604": "#### <span class=\"title-section w3-xxlarge\" id=\"codebook\">Transformer-based Multivariate Time Series Representation Learning</span>\n\n> **TL;DR:** [Here is the code](https://www.kaggle.com/yamqwe/time-series-modeling-multivariate-transformer)\n\nHi Guys, \n\nI just finished converting [my implementation](https://www.kaggle.com/yamqwe/keras-time-series-transformer) of the paper \"Transformer-based Multivariate Time Series Representation Learning\" from the google ventilators competition earlier this year. \n\nThe notebook is [right here](https://www.kaggle.com/yamqwe/time-series-modeling-multivariate-transformer).\n\n\nIt supports training as a supervised model end2end. based on the same architecture as the original paper. You can pay around with the code and get it to be training self-supervised pretty easily [the generator for the masking noise of the paper is there and tested] but as of this moment, it is at end2end mode. \n\nI was also not 100% sure if I should have included the masking while supervised training since it can be treated as an augmentation, anyway it is still there at the moment and plugged in. \n\nBasically, it is a notebook demonstrating the use case of extracting unsupervised representation vectors or transfer learning from a pretrained transformer for time-series data.\n\nHope it helps someone, probably some fellow Kagglers.\n\n![](https://storage.googleapis.com/kaggle-markpeng/GoogleBrainVentilator/mvts_transformer_architecture.png)\n\n**Multivariate Time Series Transformer Framework**\n\nSource: https://arxiv.org/abs/2010.02803\n\n**Reference:**\nGeorge Zerveas et al. (2021). \"A transformer-based Framework for Multivariate Time Series Representation Learning,\" Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD '21).\n\n\nThis notebook follows the ideas presented in my [Initial Thoughts](https://www.kaggle.com/c/g-research-crypto-forecasting/discussion/284903).\n\nHappy Kaggling! \nCheers ^^",
    "2485176": "The links you provided for the notebook or implementation, are not working.\nSharing the implementation would be appritiated."
  },
  "source": "meta"
}