# Feeding multiple time-series into a neural net - configuration?

I've been looking at how to use neural nets for time-series analysis. The examples I've seen mostly rely on a sliding window to feed the slice of the data into the input layer - which has as many input neurons as there are elements within that window.

Suppose I wanted to feed two "parallel" time-series into the same network - ie. I would like to make a prediction based not just on one time-series, but two time-synchronized series - how should I configure the inputs?

My gut feeling is that I should just give the input layer twice as many inputs to accommodate two windows, one from each series, and let the network sort things out by itself. is this correct? Or should I configure the input layer some other way? Thanks.

From my brief understanding on the subject, I believe you should add the extra time series in the following manner: Say you want to predict $X = (x_0,...,x_t)$. What you say you are doing with sliding window is correct thus start by

Features | target

$x_{t-4}, x_{t-3} | x_{t-2}$

$x_{t-3}, x_{t-2} |x_{t-1}$

$x_{t-2}, x_{t-1} | x_t$

But you also want another time series used as input, say $Z=(z_0,...,z_t)$ so I would imagine you should do it like this:

Features | target

$x_{t-4}, x_{t-3}, z_{t-3} | x_{t-2}$

$x_{t-3}, x_{t-2}, z_{t-2} |x_{t-1}$

$x_{t-2}, x_{t-1}, z_{t-1} | x_t$
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.46703383326530457, "perplexity": 487.076430911358}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-30/segments/1563195531106.93/warc/CC-MAIN-20190724061728-20190724083728-00472.warc.gz"}