Trajectory prediction with Closest Point of Approach (CPA) concept is a fundamental element of aircraft Conflict Detection (CD) problem. Conventional motion-based CPA prediction model generally assumes that aircraft is flying in straight line with constant speed. But due to environment uncertainties and ground speed changes, this conventional method frequently lacks accuracy in the real world with a high rate of false alarms and missed detections. In this paper, we introduce a novel automated data-driven CD framework with Machine Learning (ML) for 3D CPA prediction in a lookahead time of less than 20 minutes. Firstly, a 3D CPA model with cylindrical norm is proposed as the baseline. Then, data preparation with Mode-S observation data in France is explained, including data collection and data processing, to convert raw Mode-S data to the closeto-reality dataset. Furthermore, feature engineering is applied to build up a feature set with 16 features. Finally, four prevailing ML models are used to predict the time, horizontal distance and vertical distance of CPA in 3D airspace. CD is conducted based on the predicted values. The prediction and CD results show that all proposed ML models outperform the baseline model. Especially, GBM and FFNNs could strongly enhance the performance of CD.