Behavior classification of goats using 9-axis multi sensors: The effect of imbalanced datasets on classification performance

•Goat behaviors were classified using 9-axis multi sensor data.•Two machine learning algorithms were used in the classification.•The effect of imbalanced datasets on classification performance was assessed.•In addition to acceleration, magnetism was useful in classifying the behaviors.•Data balancin...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:Computers and electronics in agriculture 2019-11, Vol.166, p.105027, Article 105027
Hauptverfasser: Sakai, Koki, Oishi, Kazato, Miwa, Masafumi, Kumagai, Hajime, Hirooka, Hiroyuki
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:•Goat behaviors were classified using 9-axis multi sensor data.•Two machine learning algorithms were used in the classification.•The effect of imbalanced datasets on classification performance was assessed.•In addition to acceleration, magnetism was useful in classifying the behaviors.•Data balancing slightly improved the classification of behavior with low prevalence. Recent developments of small electronic instruments have enabled the classification of animal behavior using simultaneous measurements of various bio-logging data such as acceleration, magnetism, and angular velocity. Following technological progress, studies on the behavioral classification of ruminants combining measurements based on accelerometers, magnetometers, and gyroscopes have received attention. However, while the issue of class imbalance has recently become a serious challenge in classification by machine learning, few behavioral classification studies on livestock animals have focused on the effect of equalizing the prevalence of each behavior to improve the problem caused by the imbalance of data on classification performance. The aims of this study were to classify the behaviors of goats using a back-mounted 9-axis multi sensor (a tri-axial accelerometer, a tri-axial gyroscope, and a tri-axial magnetometer) with machine learning algorithms, and to evaluate changes in the predictive scores by equalizing the prevalence of each behavior. The behaviors of three goats grazing on an experimental pasture were logged for approximately 12 h with the multi sensors. The behaviors were recorded at 1-second intervals with time-lapse cameras throughout the experimental period. Three behaviors were classified: lying, standing, and grazing. Over 100 different variables were extracted from the raw sensor data, and classification was executed by inputting the variables into two supervised machine learning algorithms: K-nearest neighbors (KNN) and decision tree (DT). Moreover, because the prevalence of standing was low compared to that of grazing, the number of observations of each behavior in the training datasets for classification models was equalized by undersampling. As expected, the results indicated that the overall accuracies of both algorithms using all variables derived from the three sensors were higher than those using only variables from the acceleration data. Furthermore, both the algorithms using the variables from the acceleration and magnetism data could classify the behaviors as
ISSN:0168-1699
1872-7107
DOI:10.1016/j.compag.2019.105027