Fill the Gap: EDDI for Multivariate Time Series Missing Value Imputation

Published Apr 27 2022 05:30 PM 959 Views
Microsoft

This blog provides some guidance on using a recent deep generative model developed by Microsoft researchers at Cambridge for missing-value imputation and shares the best practices to impute missing values in multivariate time-series datasets.

 

Background on Missing Value Preprocessing (MVP)

Unlike the datasets available in research, data in the wild is messy, and for various reasons, it may be incomplete. Collection infrastructure (sensors) fail, files--sometimes paper records--get corrupted, and respondents do not answer every question. Some data is, by its nature, sparse; a clinical examination may cover only a fraction of the possible questions. The circumstances require novel techniques to restore the data to a form usable in conventional machine learning models. The good news is the missing value imputation package developed by Microsoft Research, Cambridge UK, automates this by creating a deep learning-based model of missing data.

 

To model "missingness," one needs to ask, "why is the data missing?" Consider the case of "Missing Completely At Random" (MCAR), where the fact a datum is missing does not depend -- and hence is not predictable -- from the rest of the data. It's as if darts were thrown at random to eliminate some data. Of course, we believe that the missing values are predictable in the rest of the data; that's why imputation makes sense. Imputation solves this problem by learning a model of the missing values from the existing data.

In other cases, the fact that the data is missing is meaningful and can be considered a separate binary-valued variable. See [Koller, 2009] Chapter 19 for a complete discussion. But back to MCAR.

 

A common practice in tabular data is filling the gaps in each column with zeromean, or median of that data column. In time-series datasets, repeating or interpolating forwardbackward, or both directions is also common. These algorithms, along with more advanced methods such as MICE, are suitable for a handful of cases, especially for missing-completely-at-random (MCAR) and missing-at-random (MAR) patterns.

 

EDDI – A Deep Learning for Missing Value Imputation

Microsoft's research team at Cambridge developed a technology based on a partial VAE algorithm, allowing Missing Value Prediction by using probabilistic Deep Learning. The code is open source as a part of the Data-Efficient Decision-Making project on this link.

The team also developed an easy-to-use API, which is currently in private preview. If you are interested in evaluating the API for your scenario, please email the team at azua-request@microsoft.comThe API is easy to use, thus speeding up the process, it is scalable, and it eases the requirement to have deep domain expertise. It also works with different types of data (e.g., continuous values and categorical data) and can handle different missingness patterns.

Applying EDDI to Multivariate Timeseries

Multivariate time series data consist of multiple concurrent time-dependent variables, and each variable depends not only on its past values but also on the present and past values of other variables. We need to model this temporal aspect explicitly as predictive features. Comparing EDDI and linear imputation for multivariate timeseries, EDDI is a great choice when our use-case meets the following conditions:

  • There is strong inter-variable predictability between input features
  • The time series data can be characterized by time embedding/fold representations
  • The missing type is either missing-completely-at-random (MCAR) or missing-at-random (MAR)

 

Showcase: Soft Sensor Modeling

Soft sensor modeling is an interesting multimodal time series use case that aims to model the behavior of a physical sensor network mathematically. A solution template for soft-sensor modeling on Azure is discussed in this blog post. In this section, we add missingness to their scenario and use EDDI to do the imputation. The dataset originated from a sulfur recovery unit (SRU) of a refinery plant in Italy [paper]. You can find the complete explanation of the use-case and dataset on this post and download the datasets from this link. The values are per-minute samples captured from five sensors.

 

 

matavako_1-1652418720175.png

 

Data missingness

The dataset we are working on is clean, with no missing parts. We intentionally selected that to have a clear ground truth for our experiments and evaluation. The following two are likely scenarios in a real sensor environment:

  • Missing random values: a value is not captured due to an interruption, or the sensor reads a corrupted value. We randomly masked the sensor values at a 0.007 rate to imitate that.
  • Missing a chunk: a sensor is corrupted for a period of time; on top of prior random masking, we discuss this scenario using a chunk mask for one of the sensors.

The missing type in the above scenarios are typically MCAR or MAR, which justifies the usability of EDDI. There are other missingness scenarios that we are not discussing here; for example, when values are not saved due to compression or when sensor readings are not aligned or have different reading rates. EDDI helps us impute the missingness and have a nice full dataset for the downstream task.

 

 

EDDI API

EDDI API is similar to the next best question API discussed in this blogpost before. It only involves the first two steps for an imputation task:

  • Train: Using a sample dataset (with its missing values):
    1. Input: training data file (features, CSV format) and control file (JSON format)
    2. Output: model-id
  •  Batch Inference: Impute the missing values for the full dataset
    1. Input: model id, inference datafile (features, CSV format)
    2. Output: dataset with imputation on missing cells (CSV format)

In this repository, we have shared the code to use EDDI API in two ways:

  • EDDI Service API – This option requires a minimum environment and hardware setup, and since it runs on an Azure server, it can be integrated with any production application easily. [This is in private preview, contact azua-request@microsoft.com for access]

 

  • Azua Package [git-repo] – Using this code repository involves one to setup required libraries, and when running locally, the performance surely depends on your local memory/processor. However, this option would be more useful for the developers who want to have full control over the code to review and modify internal processes per their needs.

 

[GitHub Repo: Softsensor_MVP_with_EDDI]: This code repository walks you through data preparation, train and batch-inference steps for using EDDI API for the soft sensor modeling show case.

 

 

Best Practices on using EDDI for Multivariate Timeseries

If you decide to use EDDI for multivariate timeseries MVP to prepare filled-in data for a subsequent prediction task, here is a list of best-practices:

  • How To Prevent Information LeakageA typical ML prediction task involves input features predicting the output targets where a test set is left out for evaluation. When you do imputation prior to a prediction task, the prediction model learns the pattern in the imputed data, not the original data. Therefore, you should be mindful of error interpretation as well as any data leakage. You can think of "imputation" followed by "prediction" as a pipeline. Therefore, you can choose to either a) evaluate the pipeline component-by-component or b) evaluate the pipeline end-to-end. We choose the first one in this post to focus on evaluating the imputation component. Thus, you need to seal the prediction evaluation by:
    1. Training EDDI with the same data you are going to train your prediction model. EDDI-inference can impute missingness in the test data.
    2. Impute input and output columns Independently. The problem here is that imputation applied to the Target values is effectively a "prediction" if the input features are used during imputation – a kind of data leakage. You can remove the contribution of the imputation step to the predictive evaluation by running separate imputation tasks for the set of input and each of the output columns, treating them as separate datasets.

matavako_0-1650417963536.png

 

  • How Imputation works with Temporal Features: We observed that by augmenting the dataset with a window of feature values, the model could capture temporal relationships. A simple yet sufficient solution for many use-cases is adding an immediate previous and next value of each feature as separate features:

matavako_1-1650417963549.png

 

 

matavako_2-1650417963556.png

 

matavako_3-1650417963567.png

 

                              

matavako_4-1650417963570.png

 

Using the above setting to impute given our random 0.7% missingness, one can see EDDI performs better than a linear imputation [Note: lower MAPE error is better]:

matavako_5-1650417963574.png

 

 

In-depth insight: in the above example, we are using immediately adjacent neighbors due to the fine-grain dependency of the sensor values. We could choose a larger window-size, i.e., Xt-k, …, Xt+k, if the temporal dependencies are expected to be more extensive. Also, if we need to capture coarser dependencies, we could use larger k, e.g., Xt-5, Xt+5Mutual information would give an initial insight into the data predictabilities.

 

  • Use EDDI to Impute Missed Chunks: Using EDDI is more interesting when we lose a chunk of data. In the sensor network example, a sensor may get corrupted or go offline for a while. To test this, we masked feature IN3 on a chunk of 2500 consecutive records (which is around two days). As shown below, EDDI recovered the missing chunk much better than linear interpolation. Figures from left to right are and EDDI & Linear imputation, respectively:

matavako_6-1650417963585.png

 

matavako_7-1650417963589.png

 

In-depth insight: Here, the 2500 element chunk-length is chosen intentionally to showcase EDDI. The relative performance of EDDI vs. linear imputation depends on the signal shape and the predictability of the features within the missed chunk by other features. Linear imputation performs well for signals with linear dependence on last and next seen values, which is likely in smaller chunks, while better predictability increases EDDI's performance but is slightly harder to know in advance. Domain knowledge is a key component in this case.

 

Summary

Machine Learning with missing values is an old challenge, and EDDI is a novel deep learning-based solution for missing value imputation on multivariate datasets. However, the imputation of a multivariate time-series dataset requires some tweaks to take advantage of both temporal and multivariate signals, which we discussed in this post. Note that one imputation solution does not fit all the missing problems! :smiling_face_with_smiling_eyes: For example, if predictability among variables is very limited or there is too much noise in the data, simpler imputation solutions may work better. Yet, EDDI works well if the missing values usually co-occur with the visible ones that have some predictive signal.

 

 

GitHub RepositorySoftsensor_MVP_with_EDDI

 

Reference

  1. Koller and N. Friedman, (2009) "Probabilistic Graphical Models," MIT Press.
%3CLINGO-SUB%20id%3D%22lingo-sub-3289782%22%20slang%3D%22en-US%22%3EFill%20the%20Gap%3A%20EDDI%20for%20Multivariate%20Time%20Series%20Missing%20Value%20Imputation%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3289782%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EThis%20blog%20provides%20some%20guidance%20on%20using%20a%20recent%20deep%20generative%20model%20developed%20by%20Microsoft%20researchers%20at%20Cambridge%20for%26nbsp%3B%3C%2FSPAN%3E%3CEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Emissing-value%20imputation%3C%2FSPAN%3E%3C%2FEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Band%20shares%20the%20best%20practices%20to%20impute%20missing%20values%20in%20multivariate%20time-series%20datasets.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--2103182544%22%20id%3D%22toc-hId--2079295088%22%3E%3CFONT%20size%3D%225%22%3EBackground%20on%20Missing%20Value%20Preprocessing%20(MVP)%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EUnlike%20the%20datasets%20available%20in%20research%2C%20data%20in%20the%20wild%20is%20messy%2C%20and%20for%20various%20reasons%2C%20it%20may%20be%20incomplete.%20Collection%20infrastructure%20(sensors)%20fail%2C%20files--sometimes%20paper%20records--get%20corrupted%2C%20and%20respondents%20do%20not%20answer%20every%20question.%20Some%20data%20is%2C%20by%20its%20nature%2C%20sparse%3B%20a%20clinical%20examination%20may%20cover%20only%20a%20fraction%20of%20the%20possible%20questions.%20The%20circumstances%20require%20novel%20techniques%20to%20restore%20the%20data%20to%20a%20form%20usable%20in%20conventional%20machine%20learning%20models.%20The%20good%20news%20is%20the%26nbsp%3B%3C%2FSPAN%3E%3CEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Emissing%20value%20imputation%3C%2FSPAN%3E%3C%2FEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bpackage%20developed%20by%20Microsoft%20Research%2C%20Cambridge%20UK%2C%20automates%20this%20by%20creating%20a%20deep%20learning-based%20model%20of%20missing%20data.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ETo%20model%20%22missingness%2C%22%20one%20needs%20to%20ask%2C%20%22why%20is%20the%20data%20missing%3F%22%20Consider%20the%20case%20of%20%22Missing%20Completely%20At%20Random%22%20(MCAR)%2C%20where%20the%20fact%20a%20datum%20is%20missing%20does%20not%20depend%20--%20and%20hence%20is%20not%20predictable%20--%20from%20the%20rest%20of%20the%20data.%20It's%20as%20if%20darts%20were%20thrown%20at%20random%20to%20eliminate%20some%20data.%20Of%20course%2C%20we%20believe%20that%20the%20missing%20values%20are%20predictable%20in%20the%20rest%20of%20the%20data%3B%20that's%20why%20imputation%20makes%20sense.%20Imputation%20solves%20this%20problem%20by%20learning%20a%20model%20of%20the%20missing%20values%20from%20the%20existing%20data.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EIn%20other%20cases%2C%20the%20fact%20that%20the%20data%20is%20missing%20is%20meaningful%20and%20can%20be%20considered%20a%20separate%20binary-valued%20variable.%20See%20%5BKoller%2C%202009%5D%20Chapter%2019%20for%20a%20complete%20discussion.%20But%20back%20to%20MCAR.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EA%20common%20practice%20in%26nbsp%3B%3C%2FSPAN%3E%3CEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Etabular%3C%2FSPAN%3E%3C%2FEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bdata%20is%20filling%20the%20gaps%20in%20each%20column%20with%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Ezero%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%2C%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Emean%2C%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Eor%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Emedian%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Eof%20that%20data%20column.%20In%26nbsp%3B%3C%2FSPAN%3E%3CEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Etime-series%3C%2FSPAN%3E%3C%2FEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bdatasets%2C%20repeating%20or%20interpolating%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Eforward%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%2C%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Ebackward%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%2C%20or%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Eboth%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bdirections%20is%20also%20common.%20These%20algorithms%2C%20along%20with%20more%20advanced%20methods%20such%20as%20MICE%2C%20are%20suitable%20for%20a%20handful%20of%20cases%2C%20especially%20for%20missing-completely-at-random%20(MCAR)%20and%20missing-at-random%20(MAR)%20patterns.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-384330289%22%20id%3D%22toc-hId-408217745%22%3E%3CFONT%20size%3D%225%22%3EEDDI%20%E2%80%93%20A%20Deep%20Learning%20for%20Missing%20Value%20Imputation%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EMicrosoft's%20research%20team%20at%20Cambridge%20developed%20a%20technology%20based%20on%20a%20partial%20VAE%20algorithm%2C%20allowing%20Missing%20Value%20Prediction%20by%20using%20probabilistic%20Deep%20Learning.%20The%20code%20is%20open%20source%20as%20a%20part%20of%20the%20Data-Efficient%20Decision-Making%20project%20on%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fproject-azua%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Ethis%20link%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EThe%20team%20also%20developed%20an%20easy-to-use%20API%2C%20which%20is%20currently%20in%20private%20preview.%20If%20you%20are%20interested%20in%20evaluating%20the%20API%20for%20your%20scenario%2C%20please%20email%20the%20team%20at%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22mailto%3Aazua-request%40microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Eazua-request%40microsoft.com%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FA%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E.%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EThe%20API%20is%20easy%20to%20use%2C%20thus%20speeding%20up%20the%20process%2C%20it%20is%20scalable%2C%20and%20it%20eases%20the%20requirement%20to%20have%20deep%20domain%20expertise.%20It%20also%20works%20with%20different%20types%20of%20data%20(e.g.%2C%20continuous%20values%20and%20categorical%20data)%20and%20can%20handle%20different%20missingness%20patterns.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1423124174%22%20id%3D%22toc-hId--1399236718%22%3E%3CFONT%20size%3D%225%22%3EApplying%20EDDI%20to%20Multivariate%20Timeseries%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EMultivariate%20time%20series%20data%20consist%20of%20multiple%20concurrent%20time-dependent%20variables%2C%20and%20each%20variable%20depends%20not%20only%20on%20its%20past%20values%20but%20also%20on%20the%20present%20and%20past%20values%20of%20other%20variables.%20We%20need%20to%20model%20this%20temporal%20aspect%20explicitly%20as%20predictive%20features.%20Comparing%20EDDI%20and%20linear%20imputation%20for%20multivariate%20timeseries%2C%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fresearch%2Fpublication%2Feddi-efficient-dynamic-discovery-of-high-value-information-with-partial-vae%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EEDDI%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bis%20a%20great%20choice%20when%20our%20use-case%20meets%20the%20following%20conditions%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EThere%20is%20strong%26nbsp%3B%3C%2FSPAN%3E%3CU%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Einter-variable%20predictability%3C%2FSPAN%3E%3C%2FU%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bbetween%20input%20features%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EThe%20time%20series%20data%20can%20be%20characterized%20by%20time%20embedding%2Ffold%20representations%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EThe%20missing%20type%20is%20either%20missing-completely-at-random%20(MCAR)%20or%20missing-at-random%20(MAR)%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH1%20id%3D%22toc-hId-1064388659%22%20id%3D%22toc-hId-1088276115%22%3E%26nbsp%3B%3C%2FH1%3E%0A%3CH1%20id%3D%22toc-hId--743065804%22%20id%3D%22toc-hId--719178348%22%3E%3CFONT%20size%3D%225%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EShowcase%3A%20Soft%20Sensor%20Modeling%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ESoft%20sensor%20modeling%20is%20an%20interesting%20multimodal%20time%20series%20use%20case%20that%20aims%20to%20model%20the%20behavior%20of%20a%20physical%20sensor%20network%20mathematically.%20A%20solution%20template%20for%20soft-sensor%20modeling%20on%20Azure%20is%20discussed%20in%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fai-customer-engineering-team%2Fa-solution-template-for-soft-sensor-modeling-on-azure-part-1%2Fba-p%2F3265959%22%20target%3D%22_blank%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Ethis%20blog%20post%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E.%20In%20this%20section%2C%20we%20add%20missingness%20to%20their%20scenario%20and%20use%20EDDI%20to%20do%20the%20imputation.%20The%20dataset%20originated%20from%20a%20sulfur%20recovery%20unit%20(SRU)%20of%20a%20refinery%20plant%20in%20Italy%20%5B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Fwww.sciencedirect.com%2Fscience%2Farticle%2Fpii%2FS0020025521002504%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Epaper%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%5D.%20You%20can%20find%20the%20complete%20explanation%20of%20the%20use-case%20and%20dataset%20on%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fai-customer-engineering-team%2Fa-solution-template-for-soft-sensor-modeling-on-azure-part-1%2Fba-p%2F3265959%22%20target%3D%22_blank%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Ethis%20post%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Band%20download%20the%20datasets%20from%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Fdata.mendeley.com%2Fdatasets%2Fkcpnnrn67p%2F1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Ethis%20link%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E.%20The%20values%20are%20per-minute%20samples%20captured%20from%20five%20sensors.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22matavako_1-1652418720175.png%22%20style%3D%22width%3A%20674px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F371350i782A24CBE8D34DB5%2Fimage-dimensions%2F674x152%3Fv%3Dv2%22%20width%3D%22674%22%20height%3D%22152%22%20role%3D%22button%22%20title%3D%22matavako_1-1652418720175.png%22%20alt%3D%22matavako_1-1652418720175.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1744447029%22%20id%3D%22toc-hId-1768334485%22%3E%3CFONT%20size%3D%225%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EData%20missingness%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EThe%20dataset%20we%20are%20working%20on%20is%20clean%2C%20with%20no%20missing%20parts.%20We%20intentionally%20selected%20that%20to%20have%20a%20clear%20ground%20truth%20for%20our%20experiments%20and%20evaluation.%20The%20following%20two%20are%20likely%20scenarios%20in%20a%20real%20sensor%20environment%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EMissing%20random%20values%3A%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Ba%20value%20is%20not%20captured%20due%20to%20an%20interruption%2C%20or%20the%20sensor%20reads%20a%20corrupted%20value.%20We%20randomly%20masked%20the%20sensor%20values%20at%20a%200.007%20rate%20to%20imitate%20that.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EMissing%20a%20chunk%3A%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Ba%20sensor%20is%20corrupted%20for%20a%20period%20of%20time%3B%20on%20top%20of%20prior%20random%20masking%2C%20we%20discuss%20this%20scenario%20using%20a%20chunk%20mask%20for%20one%20of%20the%20sensors.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EThe%20missing%20type%20in%20the%20above%20scenarios%20are%20typically%20MCAR%20or%20MAR%2C%20which%20justifies%20the%20usability%20of%20EDDI.%20There%20are%20other%20missingness%20scenarios%20that%20we%20are%20not%20discussing%20here%3B%20for%20example%2C%20when%20values%20are%20not%20saved%20due%20to%20compression%20or%20when%20sensor%20readings%20are%20not%20aligned%20or%20have%20different%20reading%20rates.%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3E%3CEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EEDDI%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FSTRONG%3E%3CEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bhelps%20us%20impute%20the%20missingness%20and%20have%20a%20nice%20full%20dataset%20for%20the%20downstream%20task.%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--63007434%22%20id%3D%22toc-hId--39119978%22%3E%3CFONT%20size%3D%225%22%3EEDDI%20API%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EEDDI%20API%20is%20similar%20to%20the%20next%20best%20question%20API%20discussed%20in%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fai-customer-engineering-team%2Fusing-ai-to-know-which-question-to-ask-and-when-to-ask-it%2Fba-p%2F2768799%22%20target%3D%22_blank%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Ethis%20blogpost%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bbefore.%20It%20only%20involves%20the%20first%20two%20steps%20for%20an%20imputation%20task%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ETrain%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3A%20Using%20a%20sample%20dataset%20(with%20its%20missing%20values)%3A%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3COL%3E%0A%3COL%3E%0A%3CLI%20class%3D%22ql-indent-1%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EInput%3A%20training%20data%20file%20(features%2C%20CSV%20format)%20and%20control%20file%20(JSON%20format)%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20class%3D%22ql-indent-1%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EOutput%3A%20model-id%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FOL%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3BBatch%20Inference%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3A%20Impute%20the%20missing%20values%20for%20the%20full%20dataset%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3COL%3E%0A%3COL%3E%0A%3CLI%20class%3D%22ql-indent-1%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EInput%3A%20model%20id%2C%20inference%20datafile%20(features%2C%20CSV%20format)%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20class%3D%22ql-indent-1%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EOutput%3A%20dataset%20with%20imputation%20on%20missing%20cells%20(CSV%20format)%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FOL%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EIn%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmry-tvk%2FSoftsensor_MVP_with_EDDI%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%20repository%3C%2FA%3E%2C%20we%20have%20shared%20the%20code%20to%20use%20EDDI%20API%20in%20two%20ways%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EEDDI%20Service%20API%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%E2%80%93%20This%20option%20requires%20a%20minimum%20environment%20and%20hardware%20setup%2C%20and%20since%20it%20runs%20on%20an%20Azure%20server%2C%20it%20can%20be%20integrated%20with%20any%20production%20application%20easily.%20%5BThis%20is%20in%20private%20preview%2C%20contact%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22mailto%3Aazua-request%40microsoft.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Eazua-request%40microsoft.com%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bfor%20access%5D%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EAzua%20Package%3C%2FSTRONG%3E%20%5B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fproject-azua%2Ftree%2Fmain%2Fazua%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Egit-repo%3C%2FA%3E%5D%20%E2%80%93%20Using%20this%20code%20repository%20involves%20one%20to%20setup%20required%20libraries%2C%20and%20when%20running%20locally%2C%20the%20performance%20surely%20depends%20on%20your%20local%20memory%2Fprocessor.%20However%2C%20this%20option%20would%20be%20more%20useful%20for%20the%20developers%20who%20want%20to%20have%20full%20control%20over%20the%20code%20to%20review%20and%20modify%20internal%20processes%20per%20their%20needs.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%5BGitHub%20Repo%3A%26nbsp%3B%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fmry-tvk%2FSoftsensor_MVP_with_EDDI%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ESoftsensor_MVP_with_EDDI%3C%2FSPAN%3E%3C%2FA%3E%5D%3A%20This%20code%20repository%20walks%20you%20through%20data%20preparation%2C%20train%20and%20batch-inference%20steps%20for%20using%20EDDI%20API%20for%20the%20soft%20sensor%20modeling%20show%20case.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1870461897%22%20id%3D%22toc-hId--1846574441%22%3E%3CFONT%20size%3D%225%22%3EBest%20Practices%20on%20using%20EDDI%20for%20Multivariate%20Timeseries%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3EIf%20you%20decide%20to%20use%20EDDI%20for%20multivariate%20timeseries%20MVP%20to%20prepare%20filled-in%20data%20for%20a%20subsequent%20prediction%20task%2C%20here%20is%20a%20list%20of%20best-practices%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EHow%20To%20Prevent%20Information%20Leakage%3C%2FSTRONG%3E%3A%26nbsp%3B%3CSPAN%20data-preserver-spaces%3D%22true%22%3EA%20typical%20ML%20prediction%20task%20involves%20input%20features%20predicting%20the%20output%20targets%20where%20a%20test%20set%20is%20left%20out%20for%20evaluation.%20When%20you%20do%20imputation%20prior%20to%20a%20prediction%20task%2C%20the%20prediction%20model%20learns%20the%20pattern%20in%20the%20imputed%20data%2C%20not%20the%20original%20data.%20Therefore%2C%20you%20should%20be%20mindful%20of%20error%20interpretation%20as%20well%20as%20any%20data%20leakage.%20You%20can%20think%20of%20%22imputation%22%20followed%20by%20%22prediction%22%20as%20a%20pipeline.%20Therefore%2C%20you%20can%20choose%20to%20either%20a)%20evaluate%20the%20pipeline%20component-by-component%20or%20b)%20evaluate%20the%20pipeline%20end-to-end.%20We%20choose%20the%20first%20one%20in%20this%20post%20to%20focus%20on%20evaluating%20the%26nbsp%3B%3C%2FSPAN%3E%3CEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Eimputation%20component%3C%2FSPAN%3E%3C%2FEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E.%20Thus%2C%20you%20need%20to%20seal%20the%20prediction%20evaluation%20by%3A%3C%2FSPAN%3E%3COL%3E%0A%3CLI%20class%3D%22ql-indent-1%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ETraining%20EDDI%20with%20the%20same%20data%20you%20are%20going%20to%20train%20your%20prediction%20model.%20EDDI-inference%20can%20impute%20missingness%20in%20the%20test%20data.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%20class%3D%22ql-indent-1%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EImpute%20input%20and%20output%20columns%20Independently.%20The%20problem%20here%20is%20that%20imputation%20applied%20to%20the%20Target%20values%20is%20effectively%20a%20%22prediction%22%20if%20the%20input%20features%20are%20used%20during%20imputation%20%E2%80%93%20a%20kind%20of%20data%20leakage.%20You%20can%20remove%20the%20contribution%20of%20the%20imputation%20step%20to%20the%20predictive%20evaluation%20by%20running%20separate%20imputation%20tasks%20for%20the%20set%20of%20input%20and%20each%20of%20the%20output%20columns%2C%20treating%20them%20as%20separate%20datasets.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22matavako_0-1650417963536.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F365412i2B9AB57695DBDDF7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22matavako_0-1650417963536.png%22%20alt%3D%22matavako_0-1650417963536.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EHow%20Imputation%20works%20with%20Temporal%20Features%3A%26nbsp%3B%3C%2FSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EWe%20observed%20that%20by%20augmenting%20the%20dataset%20with%20a%20window%20of%20feature%20values%2C%20the%20model%20could%20capture%20temporal%20relationships.%20A%20simple%20yet%20sufficient%20solution%20for%20many%20use-cases%20is%20adding%20an%20immediate%20previous%20and%20next%20value%20of%20each%20feature%20as%20separate%20features%3A%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22matavako_1-1650417963549.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F365413iE66B5340C1723BE0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22matavako_1-1650417963549.png%22%20alt%3D%22matavako_1-1650417963549.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22matavako_2-1650417963556.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F365414iD4A1808CFD311448%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22matavako_2-1650417963556.png%22%20alt%3D%22matavako_2-1650417963556.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22matavako_3-1650417963567.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F365415iC7E5AA1AC5048498%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22matavako_3-1650417963567.png%22%20alt%3D%22matavako_3-1650417963567.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22matavako_4-1650417963570.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F365416iE24CF2C100AF6DFE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22matavako_4-1650417963570.png%22%20alt%3D%22matavako_4-1650417963570.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUsing%20the%20above%20setting%20to%20impute%20given%20our%20random%200.7%25%20missingness%2C%20one%20can%20see%20EDDI%20performs%20better%20than%20a%20linear%20imputation%20%5BNote%3A%20lower%20MAPE%20error%20is%20better%5D%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22matavako_5-1650417963574.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F365418i54BCC7439F59FFF1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22matavako_5-1650417963574.png%22%20alt%3D%22matavako_5-1650417963574.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EIn-depth%20insight%3A%20%3C%2FEM%3Ein%20the%20above%20example%2C%20we%20are%20using%20immediately%20adjacent%20neighbors%20due%20to%20the%20fine-grain%20dependency%20of%20the%20sensor%20values.%20We%20could%20choose%20a%20larger%20window-size%2C%20i.e.%2C%20X%3CSUB%3Et-k%3C%2FSUB%3E%2C%20%E2%80%A6%2C%20X%3CSUB%3Et%2Bk%3C%2FSUB%3E%2C%20if%20the%20temporal%20dependencies%20are%20expected%20to%20be%20more%20extensive.%20Also%2C%20if%20we%20need%20to%20capture%20coarser%20dependencies%2C%20we%20could%20use%20larger%20k%2C%20e.g.%2C%20X%3CSUB%3Et-5%3C%2FSUB%3E%2C%20X%3CSUB%3Et%2B5%3C%2FSUB%3E.%26nbsp%3B%3CSTRONG%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EMutual%20information%26nbsp%3B%3C%2FSPAN%3E%3C%2FSTRONG%3Ewould%20give%20an%20initial%20insight%20into%20the%20data%20predictabilities.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EUse%20EDDI%20to%20Impute%20Missed%20Chunks%3C%2FSTRONG%3E%3A%20Using%20EDDI%20is%20more%20interesting%20when%20we%20lose%20%3CEM%3Ea%20chunk%20of%20data%3C%2FEM%3E.%20In%20the%20sensor%20network%20example%2C%20a%20sensor%20may%20get%20corrupted%20or%20go%20offline%20for%20a%20while.%20To%20test%20this%2C%20we%20masked%20feature%20%3CEM%3EIN3%3C%2FEM%3E%20on%20a%20chunk%20of%202500%20consecutive%20records%20(which%20is%20around%20two%20days).%20As%20shown%20below%2C%20EDDI%20recovered%20the%20missing%20chunk%20much%20better%20than%20linear%20interpolation.%20Figures%20from%20left%20to%20right%20are%20and%20EDDI%20%26amp%3B%20Linear%20imputation%2C%20respectively%3A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22matavako_6-1650417963585.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F365419iCDA8D89194B0E269%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22matavako_6-1650417963585.png%22%20alt%3D%22matavako_6-1650417963585.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22matavako_7-1650417963589.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F365420i0ED5BF39FDD50E4F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22matavako_7-1650417963589.png%22%20alt%3D%22matavako_7-1650417963589.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%26nbsp%3B%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3EIn-depth%20insight%3A%20Here%2C%20the%202500%20element%20chunk-length%20is%20chosen%20intentionally%20to%26nbsp%3Bshowcase%20EDDI.%20The%20relative%20performance%20of%20EDDI%20vs.%20linear%20imputation%20depends%20on%20the%20signal%20shape%20and%20the%20predictability%20of%20the%20features%20within%20the%20missed%20chunk%20by%20other%20features.%20Linear%20imputation%20performs%20well%20for%20signals%20with%20linear%20dependence%20on%20last%20and%20next%20seen%20values%2C%26nbsp%3Bwhich%20is%20likely%20in%20smaller%20chunks%2C%20while%20better%20predictability%20increases%20EDDI's%20performance%20but%20is%20slightly%20harder%20to%20know%20in%20advance.%20Domain%20knowledge%20is%20a%20key%20component%20in%20this%20case.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-617050936%22%20id%3D%22toc-hId-640938392%22%3E%3CFONT%20size%3D%225%22%3ESummary%3C%2FFONT%3E%3C%2FH1%3E%0A%3CP%3EMachine%20Learning%20with%20missing%20values%20is%20an%20old%20challenge%2C%20and%20EDDI%20is%20a%20novel%20deep%20learning-based%20solution%20for%20missing%20value%20imputation%20on%20multivariate%20datasets.%20However%2C%20the%20imputation%20of%20a%20multivariate%20time-series%20dataset%20requires%20some%20tweaks%20to%20take%20advantage%20of%20both%20temporal%20and%20multivariate%20signals%2C%20which%20we%20discussed%20in%20this%20post.%20Note%20that%20one%20imputation%20solution%20does%20not%20fit%20all%20the%20missing%20problems!%20%3Asmiling_face_with_smiling_eyes%3A%26nbsp%3B%3CSPAN%20data-preserver-spaces%3D%22true%22%3EFor%20example%2C%20if%20predictability%20among%20variables%20is%20very%20limited%20or%20there%20is%20too%20much%20noise%20in%20the%20data%2C%20simpler%20imputation%20solutions%20may%20work%20better.%20Yet%2C%20EDDI%20works%20well%20if%20the%20missing%20values%20usually%20co-occur%20with%20the%20visible%20ones%20that%20have%20some%20predictive%20signal.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CSTRONG%3EGitHub%20Repository%3C%2FSTRONG%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22editor-rtfLink%22%20href%3D%22https%3A%2F%2Fgithub.com%2Fmry-tvk%2FSoftsensor_MVP_with_EDDI%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ESoftsensor_MVP_with_EDDI%3C%2FSPAN%3E%3C%2FA%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1190403527%22%20id%3D%22toc-hId--1166516071%22%3E%26nbsp%3B%3C%2FH1%3E%0A%3CH1%20id%3D%22toc-hId-1044844967%22%20id%3D%22toc-hId-1068732423%22%3E%3CFONT%20size%3D%225%22%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EReference%3C%2FSPAN%3E%3C%2FFONT%3E%3C%2FH1%3E%0A%3COL%3E%0A%3CLI%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EKoller%20and%20N.%20Friedman%2C%20(2009)%20%22Probabilistic%20Graphical%20Models%2C%22%20MIT%20Press.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3289782%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EThis%20blog%20provides%20some%20guidance%20on%20using%20a%20recent%20deep%20generative%20model%20developed%20by%20Microsoft%20researchers%20at%20Cambridge%20for%26nbsp%3B%3C%2FSPAN%3E%3CEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Emissing-value%20imputation%3C%2FSPAN%3E%3C%2FEM%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Band%20shares%20the%20best%20practices%20to%20impute%20missing%20values%20in%20multivariate%20time-series%20datasets.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3289782%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMissing%20Value%20Imputation%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EML%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMVP%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETime%20Series%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎May 12 2022 10:13 PM
Updated by: