Andrey Shternshis
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Andrey Shternshis has a total of 16 co-authors. Here are the top co-authors by number of shared publications:
- Luisa Warchavchik Hugerth
Department of Medical Biochemistry and Microbiology, Science for Life Laboratory, Uppsala University, Uppsala, Sweden
2 shared publications - Piero Mazzarisi
University of Siena Italy
2 shared publications - Prashant Singh
Department of Information Technology, Uppsala University, Box 337, Uppsala, 75105, Sweden
2 shared publications - Stefano Marmi
Scuola Normale Superiore, Pisa, Italy
2 shared publications Alkistis Skalkidou
Department of Women’s and Children’s Health, Uppsala University, Uppsala, Sweden
1 shared publication- Alkistis Skalkidou
Department of Women's and Children's Health, Uppsala University, Uppsala, Sweden
1 shared publication
Latest Publications
- Open Access
Imputing relative abundances via Gaussian random fields
Longitudinal studies with human participants frequently face the challenge of missing samples, which lead to incomplete trajectories of participant biomarkers and a reduction in data size. Existing approaches focus on single-variable imputation or model features one at a time, while neural networks typically require a large number of parameters and substantial training data. To address these challenges, we present an explainable model for multiple imputation of compositional samples based on a Gaussian random field (GRF). The model is specifically designed for longitudinal data: it incorporates participant-specific information and accounts for both temporal dependence across repeated observations and within-sample correlations, while using a moderate number of parameters. By coupling the GRF with sparse activation functions, the framework outputs sum-constrained compositions and explicitly models zero inflation. Under the Aitchison and Jensen–Shannon distances, our framework achieves imputation accuracy comparable to that of an observation-carrying baseline, while overcoming its static nature by modeling temporal trajectories and multivariate correlations. The resulting multiple imputations allow us to reconstruct complete datasets for downstream analysis and uncertainty quantification. We demonstrate the practical utility of our framework on gut microbiome datasets, restoring incomplete time series and achieving a balanced accuracy of 0.72 in predicting food allergy in infants (sensitivity 0.8) and of 0.64 in forecasting postpartum depression.
Open AccessImputing relative abundances via Gaussian random fields
Longitudinal studies with human participants frequently face the challenge of missing samples, which lead to incomplete trajectories of participant biomarkers and a reduction in data size. Existing approaches focus on single-variable imputation or model features one at a time, while neural networks typically require a large number of parameters and substantial training data. To address these challenges, we present an explainable model for multiple imputation of compositional samples based on a Gaussian random field (GRF). The model is specifically designed for longitudinal data: it incorporates participant-specific information and accounts for both temporal dependence across repeated observations and within-sample correlations, while using a moderate number of parameters. By coupling the GRF with sparse activation functions, the framework outputs sum-constrained compositions and explicitly models zero inflation. Under the Aitchison and Jensen–Shannon distances, our framework achieves imputation accuracy comparable to that of an observation-carrying baseline, while overcoming its static nature by modeling temporal trajectories and multivariate correlations. The resulting multiple imputations allow us to reconstruct complete datasets for downstream analysis and uncertainty quantification. We demonstrate the practical utility of our framework on gut microbiome datasets, restoring incomplete time series and achieving a balanced accuracy of 0.72 in predicting food allergy in infants (sensitivity 0.8) and of 0.64 in forecasting postpartum depression.
- Open Access
- 6 December 2025
- Published by Springer Nature in BMC Genomics
- Vol. 26 (1)
Predicting allergy and postpartum depression from an incomplete compositional microbiome
Time series of compositional data are a common format for many high-throughput studies of biological molecules, e.g., analyzing the response to a treatment or with the aim of predicting an outcome. However, data from some time points may be missing, which reduces the size of the complete dataset. We propose a method for binary classification that includes imputation for missing values, dimensionality reduction, and logarithmic transformation of compositional data. Imputation approaches entail models that incorporate artificial data alongside true measurements, thereby supplementing the dataset. In the application part, we consider two case studies with longitudinal data and associated target labels, aiming to improve prediction accuracy. We predict infants’ food allergies from their gut microbiome with a balanced accuracy of 0.72. We forecast postpartum depression based on gut microbiome data collected during pregnancy, with a balanced accuracy of 0.62. Features extracted from the microbiome time series, specifically ratios of bacterial abundance, are statistically significant indicators of depression.
- 6 December 2025
- Published by Springer Nature in BMC Genomics
- Vol. 26 (1)
Open AccessPredicting allergy and postpartum depression from an incomplete compositional microbiome
Time series of compositional data are a common format for many high-throughput studies of biological molecules, e.g., analyzing the response to a treatment or with the aim of predicting an outcome. However, data from some time points may be missing, which reduces the size of the complete dataset. We propose a method for binary classification that includes imputation for missing values, dimensionality reduction, and logarithmic transformation of compositional data. Imputation approaches entail models that incorporate artificial data alongside true measurements, thereby supplementing the dataset. In the application part, we consider two case studies with longitudinal data and associated target labels, aiming to improve prediction accuracy. We predict infants’ food allergies from their gut microbiome with a balanced accuracy of 0.72. We forecast postpartum depression based on gut microbiome data collected during pregnancy, with a balanced accuracy of 0.62. Features extracted from the microbiome time series, specifically ratios of bacterial abundance, are statistically significant indicators of depression.
- Open Access
Emergence of Randomness in Temporally Aggregated Financial Tick Sequences
Markets efficiency implies that the stock returns are intrinsically unpredictable, a property that makes markets comparable to random number generators. We present a novel methodology to investigate ultra-high frequency financial data and to evaluate the extent to which tick by tick returns resemble random sequences. We extend the analysis of ultra high-frequency stock market data by applying comprehensive sets of randomness tests, beyond the usual reliance on serial correlation or entropy measures. Our purpose is to extensively analyze the randomness of these data using statistical tests from standard batteries that evaluate different aspects of randomness. We illustrate the effect of time aggregation in transforming highly correlated high-frequency trade data to random streams. More specifically, we use many of the tests in the NIST Statistical Test Suite and in the TestU01 battery (in particular the Rabbit and Alphabit sub-batteries), to prove that the degree of randomness of financial tick data increases together with the increase of the aggregation level in transaction time. Additionally, the comprehensive nature of our tests also uncovers novel patterns, such as non-monotonic behaviors in predictability for certain assets. This study demonstrates a model-free approach for both assessing randomness in financial time series and generating pseudo-random sequences from them, with potential relevance in several applications.
Open AccessEmergence of Randomness in Temporally Aggregated Financial Tick Sequences
Markets efficiency implies that the stock returns are intrinsically unpredictable, a property that makes markets comparable to random number generators. We present a novel methodology to investigate ultra-high frequency financial data and to evaluate the extent to which tick by tick returns resemble random sequences. We extend the analysis of ultra high-frequency stock market data by applying comprehensive sets of randomness tests, beyond the usual reliance on serial correlation or entropy measures. Our purpose is to extensively analyze the randomness of these data using statistical tests from standard batteries that evaluate different aspects of randomness. We illustrate the effect of time aggregation in transforming highly correlated high-frequency trade data to random streams. More specifically, we use many of the tests in the NIST Statistical Test Suite and in the TestU01 battery (in particular the Rabbit and Alphabit sub-batteries), to prove that the degree of randomness of financial tick data increases together with the increase of the aggregation level in transaction time. Additionally, the comprehensive nature of our tests also uncovers novel patterns, such as non-monotonic behaviors in predictability for certain assets. This study demonstrates a model-free approach for both assessing randomness in financial time series and generating pseudo-random sequences from them, with potential relevance in several applications.
- Open Access
Predicting allergy and postpartum depression from an incomplete compositional microbiome
Time series of compositional data are a common format for many high-throughput studies of biological molecules, e.g., analyzing the response to a treatment or with the aim of predicting an outcome. However, data from some time points may be missing, which reduces the size of the complete dataset. We propose a method for binary classification that includes imputation for missing values and logarithmic transformation of compositional data. Imputation approaches entail models that incorporate artificial data alongside true measurements, thereby supplementing the dataset. We consider two datasets from prospective analyses with as-sociated target labels, aiming to improve prediction accuracy. We predict infants’ food allergies from their gut microbiome with a balanced accuracy of 0.72. We forecast postpartum depression based on gut microbiome data collected during pregnancy, with a balanced accuracy of 0.62. Features extracted from the microbiome time series, specifically ratios of bacterial abundance, are statistically significant indicators of depression.
Open AccessPredicting allergy and postpartum depression from an incomplete compositional microbiome
Time series of compositional data are a common format for many high-throughput studies of biological molecules, e.g., analyzing the response to a treatment or with the aim of predicting an outcome. However, data from some time points may be missing, which reduces the size of the complete dataset. We propose a method for binary classification that includes imputation for missing values and logarithmic transformation of compositional data. Imputation approaches entail models that incorporate artificial data alongside true measurements, thereby supplementing the dataset. We consider two datasets from prospective analyses with as-sociated target labels, aiming to improve prediction accuracy. We predict infants’ food allergies from their gut microbiome with a balanced accuracy of 0.72. We forecast postpartum depression based on gut microbiome data collected during pregnancy, with a balanced accuracy of 0.62. Features extracted from the microbiome time series, specifically ratios of bacterial abundance, are statistically significant indicators of depression.
- Open Access
- 22 November 2024
- Published by Elsevier in Communications in Nonlinear Science and Numerical Simulation
- Vol. 141
Price predictability at ultra-high frequency: Entropy-based randomness test
- 22 November 2024
- Published by Elsevier in Communications in Nonlinear Science and Numerical Simulation
- Vol. 141
Open AccessPrice predictability at ultra-high frequency: Entropy-based randomness test
- Open Access
- 5 January 2024
- Published by Springer Nature in Decisions in Economics and Finance
- Vol. 47 (1) , 215-258
Variance of entropy for testing time-varying regimes with an application to meme stocks
Shannon entropy is the most common metric for assessing the degree of randomness of time series in many fields, ranging from physics and finance to medicine and biology. Real-world systems are typically non-stationary, leading to entropy values fluctuating over time. This paper proposes a hypothesis testing procedure to test the null hypothesis of constant Shannon entropy in time series data. The alternative hypothesis is a significant variation in entropy between successive periods. To this end, we derive an unbiased sample entropy variance, accurate up to the order $$O(n^{-4})$$ with n the sample size. To characterize the variance of the sample entropy, we first provide explicit formulas for the central moments of both binomial and multinomial distributions describing the distribution of the sample entropy. Second, we identify the optimal rolling window length to estimate time-varying Shannon entropy. We optimize this choice using a novel self-consistent criterion based on counting significant entropy variations over time. We corroborate our findings using the novel methodology to assess time-varying regimes of entropy for stock price dynamics by presenting a comparative analysis between meme and IT stocks in 2020 and 2021. We show that low entropy values correspond to periods when profitable trading strategies can be devised starting from the symbolic dynamics used for entropy computation, namely periods of market inefficiency.- 5 January 2024
- Published by Springer Nature in Decisions in Economics and Finance
- Vol. 47 (1) , 215-258
Open AccessVariance of entropy for testing time-varying regimes with an application to meme stocks
Shannon entropy is the most common metric for assessing the degree of randomness of time series in many fields, ranging from physics and finance to medicine and biology. Real-world systems are typically non-stationary, leading to entropy values fluctuating over time. This paper proposes a hypothesis testing procedure to test the null hypothesis of constant Shannon entropy in time series data. The alternative hypothesis is a significant variation in entropy between successive periods. To this end, we derive an unbiased sample entropy variance, accurate up to the order $$O(n^{-4})$$ with n the sample size. To characterize the variance of the sample entropy, we first provide explicit formulas for the central moments of both binomial and multinomial distributions describing the distribution of the sample entropy. Second, we identify the optimal rolling window length to estimate time-varying Shannon entropy. We optimize this choice using a novel self-consistent criterion based on counting significant entropy variations over time. We corroborate our findings using the novel methodology to assess time-varying regimes of entropy for stock price dynamics by presenting a comparative analysis between meme and IT stocks in 2020 and 2021. We show that low entropy values correspond to periods when profitable trading strategies can be devised starting from the symbolic dynamics used for entropy computation, namely periods of market inefficiency. - Open Access
Efficiency of the Moscow Stock Exchange before 2022
This paper investigates the degree of efficiency for the Moscow Stock Exchange. A market is called efficient if prices of its assets fully reflect all available information. We show that the degree of market efficiency is significantly low for most of the months from 2012 to 2021. We calculate the degree of market efficiency by (i) filtering out regularities in financial data and (ii) computing the Shannon entropy of the filtered return time series. We developed a simple method for estimating volatility and price staleness in empirical data in order to filter out such regularity patterns from return time series. The resulting financial time series of stock returns are then clustered into different groups according to some entropy measures. In particular, we use the Kullback–Leibler distance and a novel entropy metric capturing the co-movements between pairs of stocks. By using Monte Carlo simulations, we are then able to identify the time periods of market inefficiency for a group of 18 stocks. The inefficiency of the Moscow Stock Exchange that we have detected is a signal of the possibility of devising profitable strategies, net of transaction costs. The deviation from the efficient behavior for a stock strongly depends on the industrial sector that it belongs to.
Open AccessEfficiency of the Moscow Stock Exchange before 2022
This paper investigates the degree of efficiency for the Moscow Stock Exchange. A market is called efficient if prices of its assets fully reflect all available information. We show that the degree of market efficiency is significantly low for most of the months from 2012 to 2021. We calculate the degree of market efficiency by (i) filtering out regularities in financial data and (ii) computing the Shannon entropy of the filtered return time series. We developed a simple method for estimating volatility and price staleness in empirical data in order to filter out such regularity patterns from return time series. The resulting financial time series of stock returns are then clustered into different groups according to some entropy measures. In particular, we use the Kullback–Leibler distance and a novel entropy metric capturing the co-movements between pairs of stocks. By using Monte Carlo simulations, we are then able to identify the time periods of market inefficiency for a group of 18 stocks. The inefficiency of the Moscow Stock Exchange that we have detected is a signal of the possibility of devising profitable strategies, net of transaction costs. The deviation from the efficient behavior for a stock strongly depends on the industrial sector that it belongs to.