Language model applications for environmental geochemical analysis of soils in the Antofagasta region

Authors

DOI:

https://doi.org/10.64966/ingeniare.v33.36

Keywords:

environmental geochemistry, soil analysis, Language models

Abstract

This work describes the development of a prototype system utilizing large language models (LLMs) for environmental geochemical analysis of soils in the Antofagasta Region, Chile. The system integrates Retrieval Augmented Generation (RAG) techniques, structured prompt engineering principles based on DSPy, and a self-evaluation mechanism employing an LLM-as-a-judge approach. A total of 94 soil samples were processed, each containing data from 12 chemical elements (B, Co, Fe, Zn, Mn, Pb, As, Cu, Cr, Ni, V, Al). The methodology included UTM-to-WGS84 coordinate transformation, 2 principal component analysis (PCA), percentile 95-based anomaly detection for critical elements (As, Pb, Cu), and automatic generation of technical reports. The self-evaluation system applies six specific criteria, each rated on a 1-5 scale, and uses a temperature setting of 0.2 to ensure consistency. The developed system demonstrates the technical feasibility of specializing generic LLMs to the scientific domain of environmental geochemical analysis by incorporating a contextual knowledge base and regional geological characteristics via Ollama. Although the system successfully generates structured reports containing relevant environmental information and implements a functional automated evaluation prototype, its quantitative effectiveness requires systematic validation by comparing its analyses with those conducted by a human expert. This study establishes the methodological and technical foundations for adapting LLMs to specialized scientific domains without costly retraining, while also identifying the approach’s potential and current limitations.

 

Downloads

Download data is not yet available.

Author Biographies

Benjamín Ibarra-Campillay, Universidad Católica del Norte

Universidad Católica del Norte. Departamento de Ingeniería Industrial

Elizabeth Lam-Esquenazi, Universidad Católica del Norte

Universidad Católica del Norte. Departamento de Ingeniería Química y Medio Ambiente

Brian Keith-Norambuena, Universidad Católica del Norte

Universidad Católica del Norte. Departamento de Ingeniería de Sistemas y Computación

Published

2026-05-04

How to Cite

[1]
B. Ibarra-Campillay, E. Lam-Esquenazi, and B. Keith-Norambuena, “Language model applications for environmental geochemical analysis of soils in the Antofagasta region”, Ingeniare, Rev. chil. ing., vol. 33, May 2026.

Similar Articles

1 2 3 4 5 6 7 8 9 10 > >> 

You may also start an advanced similarity search for this article.