In the production of polymeric drug delivery devices, dissolution profile and mechanical properties of the drug loaded polymeric matrix are considered important Critical Quality Attributes (CQA) for quality assurance. However, currently the industry relies on offline testing methods which are destructive, slow, labour intensive, and costly. In this work, a real-time method for predicting these CQAs in a Hot Melt Extrusion (HME) process is explored using in-line NIR and temperature sensors together with Machine Learning (ML) algorithms. The mechanical and drug dissolution properties were found to vary significantly with changes in processing conditions, highlighting that real-time methods to accurately predict product properties are highly desirable for process monitoring and optimisation. Nonlinear ML methods including Random Forest (RF), K-Nearest Neighbours (KNN) and Recursive Feature Elimination with RF (RFE-RF) outperformed commonly used linear machine learning methods. For the prediction of tensile strength RFE-RF and KNN achieved R