Interpreting ML in Ecology: A RAG-Based Approach to Explainability in Species Distribution Modeling
Species Distribution Modeling (SDM) relies increasingly on Machine Learning (ML), but many models remain opaque, limiting their usability for non-experts. While SHAP and LIME improve interpretability, they still require technical expertise. This study proposes an agentic Retrieval-Augmented Generation (RAG) framework, integrating ML models (Logistic Regression, Random Forests, MLP), XAI techniques (SHAP, LIME), and a LLM-powered explanation system to enhance explainability. Using GoAmazon 2014/15 environmental data and GBIF species occurrences, we evaluated explanations based on completeness, and context-awareness, achieving a significant improvement in this study case. Results indicate that LLMs combined with XAI can significantly enhance explainability in SDM.
Authors
- Pedro Luiz Pizzigatti Corrêa (ORCID: https://orcid.org/0000-0002-8743-4244)
- Renato O. Miyaji (ORCID: https://orcid.org/0000-0002-7279-4546)
Institutions
- Universidad San Pedro (PE)
Publication Details
- Published
- 2025-07-20
- DOI
- https://doi.org/10.5753/wcama.2025.8219
- Primary Topic
- Species Distribution and Climate Change
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Fundação de Amparo à Pesquisa do Estado de São Paulo
- Coordenação de Aperfeiçoamento de Pessoal de Nível Superior