Structure, Fluctuations And Transport In Active Matter Systems: Insights From Stochastic Thermodynamics And Machine Learning