The feeding, ruminating(standing, lying down), running, being still (standing, lying down), head-shaking, drinking, and walking behaviors of dairy cows can reflect their health status. In this study, a multi-sensor was used to collect data of cow's multi-behaviors for research on behavior recognition. Firstly, a collar style data acquisition system was designed using geomagnetic and acceleration sensors to collect the behavioral data of dairy cows during their daily activities. Secondly, the dairy cow behavioral recognition fusion model based on K-Nearest-Neighbors (KNN) and Random Forest (RF) models were used for behavior classification. To verify the accuracy of the fusion model, the algorithms of KNN, RF, Gradient Boosting Decision Tree (GBDT), Support Vector Machine (SVM), and Learning Vector Quantization (LVQ) were introduced for comparative recognition experiments among different algorithms. The KNN-RF fusion model had the highest average recognition accuracy of 98.51%, followed by the KNN model with an average recognition accuracy of 95.37%, and the LVQ model had the lowest average recognition accuracy of 80.81%. For the recognition and verification of each behavior, the KNN-RF fusion model had the most obvious improvement in the recognition of dairy cow feeding behavior, with a recognition accuracy of 99.34%, followed by the KNN model with a recognition accuracy of 95.07%. All six models had the lowest recognition accuracy for cow head-shaking behavior: a recognition accuracy of 89.11% with the KNN-RF model followed by the RF model with a recognition accuracy of 85.14%. The system can quickly and continuously collect cow behavior information, accurately recognize individual behaviors, and provide a scientific basis for the optimal design and efficient management of digital facilities and equipment for dairy cows.