Machine Learning and Biomechanical Sensing Toward Real-Time In-The-Loop Gait and Joint Health Optimization