Skip to main content

Automatic Classification of Plutonic Rocks with Machine Learning Applied to Extracted Shades and Colors on iOS Devices

  • Conference paper
  • First Online:
Proceedings of the Future Technologies Conference (FTC) 2021, Volume 1 (FTC 2021)

Part of the book series: Lecture Notes in Networks and Systems ((LNNS,volume 358))

Included in the following conference series:

Abstract

Light/dark shades and color are some properties used for the classification of plutonic rocks but are difficult to measure because they depend on the experience of the observer. Moreover, the classification of plutonic rocks using various instrumental techniques tends to be expensive and time-consuming. To address this situation, we extracted dominant shades and colors from 283 plutonic rock images in RGB and CIELAB formats to train several machine learning models. The best model was deployed on an iOS application that identifies four classes of plutonic rocks from darkest to lightest: gabbro, diorite, granodiorite, and granite. The best results were for the K-Nearest Neighbors model using CIELAB dominant colors data with accuracy, precision, recall, and F-score of 93%.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 229.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 299.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://www.scikit-learn.org.

  2. 2.

    https://www.tensorflow.org.

  3. 3.

    https://www.tensorflow.org/lite.

  4. 4.

    https://swift.org.

  5. 5.

    https://cocoapods.org.

  6. 6.

    https://bit.ly/2P9JLEc.

  7. 7.

    http://bit.ly/3pyh3JL.

  8. 8.

    https://github.com/sarah-hs/Color-extraction/blob/main/colors_RGB.csv.

  9. 9.

    https://github.com/sarah-hs/Color-extraction/blob/main/colors_LAB.csv.

  10. 10.

    https://github.com/sarah-hs/Color-extraction/blob/main/train-RGB.ipynb.

  11. 11.

    https://github.com/sarah-hs/Color-extraction/blob/main/train-LAB.ipynb.

  12. 12.

    https://github.com/indragiek/DominantColor.

  13. 13.

    https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/swift.

References

  1. Abadi, M., et al.: TensorFlow: large-scale machine learning on heterogeneous distributed systems (2016). arXiv:n1603.04467 [cs.DC]

  2. Apple. Swift. The powerful programming language that is also easy to learn. Available: https://developer.apple.com/swift/

  3. Cheng, G., Guo, W.: Rock images classification by using deep convolution neural network. In: Journal of Physics: Conference Series, vol. 887, pp. 012089, August 2017

    Google Scholar 

  4. CocoaPods: What is CocoaPods. Available: https://guides.cocoapods.org/using/getting-started.html

  5. Encyclopædia Britannica: Diorite, January 2009. Available: https://www.britannica.com/science/ diorite

  6. Fan, G., Chen, F., Chen, D., Dong, Y.: Recognizing multiple types of rocks quickly and accurately based on lightweight CNNs model. IEEE Access 8, 55269–55278 (2020)

    Article  Google Scholar 

  7. Fan, G., Chen, F., Chen, D., Li, Y., Dong, Y.: A deep learning model for quick and accurate rock recognition with smartphones. Mob. Inf. Syst. 2020, 1–14 (2020)

    Google Scholar 

  8. Géron, A.: Hands-on Machine Learning with Scikit-Learn, Keras, and TensorFlow. O’Reilly UK Ltd., Farnham (2019)

    Google Scholar 

  9. Harrington, P.: Machine Learning in Action. Manning Pubn, Shelter Island (2012)

    Google Scholar 

  10. Lary, D.J., et al.: Machine learning applications for Earth observation. In: Mathieu, P.P., Aubrecht, C. (eds.) Earth Observation Open Science and Innovation. ISRS, vol. 15, pp. 165–218. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-65633-5_8

    Chapter  Google Scholar 

  11. Maitre, J., Bouchard, K., Bédard, L.P.: Mineral grains recognition using computer vision and machine learning. Comput. Geosci. 130, 84–93 (2019)

    Article  Google Scholar 

  12. Natural resources conservation service. part 631: Geology. In: National Engineering Handbook, number 210-VI, vol. 4, p. 7 (2012)

    Google Scholar 

  13. Pedregosa, F., et al.: Scikit-learn: machine learning in Python. J. Mach. Learn. Res. 12(85), 2825–2830 (2011)

    MathSciNet  MATH  Google Scholar 

  14. Ran, X., Xue, L., Zhang, Y., Liu, Z., Sang, X., He, J.: Rock classification from field image patches analyzed using a deep convolutional neural network. Mathematics 7(8), 755 (2019)

    Article  Google Scholar 

  15. Reinders, C., Ackermann, H., Yang, M.Y., Rosenhahn, B.: Chapter 4 - Learning convolutional neural networks for object detection with very little training data. In: Yang, M.Y., Rosenhahn, B., Murino, V. (eds.) Multimodal Scene Understanding, pp. 65–100. Academic Press (2019)

    Google Scholar 

  16. Scikit-learn. Nearest neighbors. Available: https://scikit-learn.org/stable/modules/neighbors.html#id5

  17. Tan, L.: Chapter 17 - Code comment analysis for improving software quality. In: Bird, C., Menzies, T., Zimmermann, T. (eds.) The Art and Science of Analyzing Software Data, pp. 493–517. Morgan Kaufmann, Boston (2015)

    Google Scholar 

  18. TensorFlow: TensorFlow Lite guide, March 2020. Available: https://www.tensorflow.org/lite/guide

  19. Vera, J., et al.: RACEFEN Glosario de geología. Available: http://www.ugr.es/~agcasco/personal/rac_geologia/0_ rac.htm

  20. Zhang, Y., Li, M., Han, S., Ren, Q., Shi, J.: Intelligent identification for rock-mineral microscopic images using ensemble machine learning algorithms. Sensors 19(18), 3914 (2019)

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Germán H. Alférez .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Alférez, G.H., Hernández Serrano, S., Martínez Ardila, A.M., Clausen, B.L. (2022). Automatic Classification of Plutonic Rocks with Machine Learning Applied to Extracted Shades and Colors on iOS Devices. In: Arai, K. (eds) Proceedings of the Future Technologies Conference (FTC) 2021, Volume 1. FTC 2021. Lecture Notes in Networks and Systems, vol 358. Springer, Cham. https://doi.org/10.1007/978-3-030-89906-6_6

Download citation

Publish with us

Policies and ethics