1,1,1,2,3,3,3-Heptafluoropropane (R227ea) is a good refrigerant that reduces greenhouse effects and ozone depletion. In practical applications, we usually have to know the compressed liquid densities at different temperatures and pressures. However, the measurement requires a series of complex apparatus and operations, wasting too much manpower and resources. To solve these problems, here, Song and Mason equation, support vector machine (SVM), and artificial neural networks (ANNs) were used to develop theoretical and machine learning models, respectively, in order to predict the compressed liquid densities of R227ea with only the inputs of temperatures and pressures. Results show that compared with the Song and Mason equation, appropriate machine learning models trained with precise experimental samples have better predicted results, with lower root mean square errors (RMSEs) (e.g., the RMSE of the SVM trained with data provided by Fedele et al.[1] is 0.11, while the RMSE of the Song and Mason equation is 196.26). Compared to advanced conventional measurements, knowledge-based machine learning models are proved to be more time-saving and user-friendly.