The widespread use of drones raises security, environmental, privacy, and ethical issues; therefore, effective detection by drones is important. There are several methods for detecting drones, such as wireless signal detection, photoelectric detection, radar detection, and sound detection. However, these detection methods are not accurate enough to identify drones for use. To solve this question, more robust drone detection method are needed. In addition, for different types of drones and application scenarios, different technical means need to be used for detection and identification. Based on 2-class ,4-class and 10-class problems on an open ratio frequency (RF) signal dataset, we compared the drone detection and classification performances of different machine learning with deep learning models and multi-task models which is proposed by combining different RF methods with Convolutional neural networks (CNNs). Our experimental results show that the XGBoost model achieved the latest results on this groundbreaking dataset, with 99.96% accuracy for 2-class problem, 92.31% accuracy for 4-class problem, and 74.81% accuracy for 10-class problem, which exhibits the best performance for drone detection and classification.