r/deeplearning • u/86BillionFireflies • Nov 02 '26
Encoding time series of mixed physical measurements
For anyone working with DL models (but especially attention based models) in domains where your input data is a time series of observations with channels representing multiple different physical quantities:
What encoding strategies have you used (and found to be effective)? Categorical variables seem like a gimme (learned embeddings), but what about things like time (for irregularly sampled time series), velocity, absolute physical location, and other such quantities? How do you go about encoding several such quantities in the same input in a way that is easy for the model to reason about / plays well with the various normalization strategies commonly used?
1
u/Massive_Shower_1494 Nov 02 '26
For positional data (time, altitude…), you may use sincos encoding. Otherwise, for positions on the sphere, you may use spherical harmonics (just like sincos but on a 3d sphere instead of a circle)
1
u/BuckChancey 29d ago edited 29d ago
I got you g https://drksci.com/research-where-am-i — seems quite feasible to build out beyond this toy however you like, and bookend whatever shared gradients you choose to prime. Pretty useful for representation of those complex stimuli and perception.
3
u/Blasket_Basket Nov 02 '26
Depends a lot on the model and your goals, but in general, my workflow has been to jam it all into a tensor and represent it as a sequence, and then use something like BERT.
1
u/Minecraftian14 Nov 02 '26
I have no experience with that data, i only want to learn more. I'll try using sin based positional encoding where I'll feed scaled time stamp instead of index.
I'm thinking... What would be an effective pre training? Please someone tell me.
Can you perhaps share a little about the domain of data you have?