JEDI (joint evaluation and diagnostic) system is a smart optical sensor that combines photonics with machine learning for live prediction of tissue integrity during joint surgery.