Text this: Multivariate temperature-series analysis of stress-induced ferroelectricity in SrTiO3: a machine learning approach with K-shape clustering and hierarchical Bayesian estimation