AUTOMATIC CLASSIFICATION OF PLUTONIC ROCKS WITH MACHINE LEARNING APPLIED TO DOMINANT COLORS ON IOS DEVICES
This research extracts dominant shades and colors from plutonic rock images to train several machine learning algorithms and deploy the best model in an iOS app for the automatic classification of four classes of plutonic rocks in order from darker to lighter: gabbro, diorite, granodiorite, and granite. We used pictures from plutonic rocks that were classified by using petrography and chemistry data.
First, the dominant colors of plutonic rock images were extracted with the k-means algorithm by grouping the image pixels according to the RGB and CIELAB color spaces. Then, the data of the four dominant colors were used to create and evaluate several machine learning models with the following algorithms: Logistic Regression, K-Nearest Neighbors (KNN), Decision Trees, Support Vector Machine, and Convolutional Neural Networks. The experiments were executed first with the dominant colors in RGB and then in CIELAB. The best model was deployed after validation on an iOS application that classifies the extracted colors in new images of the four rock types.
The best results during validation were for the model generated with KNN trained with 283 images in the CIELAB color space. Results gave accuracy, precision, recall, and F-score average values of 93%. The application running the KNN model was tested in the field with 34 images, and the following average accuracy results were obtained: 70% for gabbro, 28.5% for diorite, 20% for granodiorite, and 85.7% for granite. The high accuracy when classifying gabbro samples was because they are noticeable darker than samples of the other 3 classes. Similarly, granites were noticeably lighter. In contrast, diorite and granodiorite share characteristics of the other rock types closest to them in the dark-light sequence; therefore, it is more difficult to automatically classify them based on their dominant colors.