Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
How effectively can AI be applied to extract ESG-related KPIs from annual reports?
KTH, School of Electrical Engineering and Computer Science (EECS).
KTH, School of Electrical Engineering and Computer Science (EECS).
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesisAlternative title
Hur effektivt kan AI användas för att extrahera ESG-relaterade nyckeltal från årsrapporter? (Swedish)
Abstract [en]

As ESG (Environmental, Social and Governance) reporting becomes more mandated by EU regulations such as SFDR and CSRD, many organizations face challenges in obtaining, structuring and verifying this data. This report explores the feasibility of using locally deployed large language models (LLMs) to extract ESG-related KPIs from company annual reports in XHTML format with some data being present within the iXBRL tags. The study was carried out in collaboration with Captor, a fund management company, which aims to replace the dependence on costly third-party ESG data providers, whose data can be outdated at times. A Python based pipeline was developed with the use of the Ollama framework to run three open-sourced Large Language Models (LLMs) Mistral, Deep Seek and Command on Apple silicon hardware. Through Retrieval Augmented Generation (RAG) and semantic chunking the XHTML files were parsed and JSON files containing scope 1,2 and 3 as well as revenue and LEI codes were outputted. The overall accuracy in extracting data from the preprocessed data was shown to be between 79 and 91%. However, the observation that extracting from iXBRL tags had a promising 100% accuracy compared to extracting from free text. The results suggest that small-scale local AI deployment can support accurate and scalable ESG data extraction, supporting compliance with EU regulations. The project also sheds light on broader challenges within reporting, including inconsistent XHTML formatting and regulatory frameworks that variate highly between financial and non-financial reporting. Inspired by an interview conducted with the company as well as Mario Draghi’s 2024 EU report, the thesis also argues the importance for a centralization system for ESG as well as financial data, directing focus on the build up of data infrastructure. These insights could contribute to technical advancements and act as a catalyst for innovation within data disclosure.

Abstract [sv]

I takt med att ESG rapportering (Environmental, Social and Governance) blir allt mer obligatorisk enligt EU lagar såsom SFDR och CSRD, så står många organisationer inför utmaningar med att få ut, strukturera och verifiera den datan. Denna rapport undersöker möjligheten att använda lokala large language models (LLMs) för att extrahera ESG relaterade nyckeltal (KPI:er) från företags årsrapporter i XHTML format, där viss data finns i iXBRL taggar. Studien genomfördes i samarbete med Captor, ett fondförvaltningsbolag, som strävar efter att ersätta beroendet av kostsamma tredjepartsleverantörer av ESG data, vars data ibland kan vara utdaterade. En Python baserad pipeline utvecklades med hjälp av Ollama ramverket för att köra tre open-sourced LLM modeller, Mistral, Deep Seek och Command på Apple Silicon hårdvara. Genom Retrieval Augmented Generation (RAG) och semantisk segmentering analyserades XHTML filerna och JSON filer med scope 1, 2 och 3 samt omsättning och LEI koder genererades. Den totala noggrannheten för att extrahera data från det förbehandlade materialet visade sig ligga mellan 79 och 91%. Dock observerades att extraktion från iXBRL taggar hade en lovande träffsäkerhet på 100% jämfört med extraktion från fri text. Resultaten antyder att småskalig lokal AI-användning kan stödja noggrann och skalbar ESG dataextraktion i linje med EU:s regelverk. Projektet belyser även bredare utmaningar inom rapportering, inklusive inkonsekvent XHTML formatering och regulatoriska ramverk som varierar kraftigt mellan företag inom finans och icke finans. Inspirerat av en intervju med företaget samt Mario Draghis EU-rapport från 2024, motiverar uppsatsen för ett centraliserat systemet för både ESG-och finansiell data, med fokus på uppbyggnaden av datainfrastruktur. Dessa insikter kan bidra till tekniska framsteg och fungera som motivationer för innovation inom datarapportering.

Place, publisher, year, edition, pages
2025. , p. 8
Series
TRITA-EECS-EX ; 2025:215
Keywords [en]
ESG, artificial intelligence, KPI extraction, large language models, Ollama, local ai, XHTML, iXBRL, SFDR, sustainability reporting, EU legislation, ESEF, GAAP
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-367615OAI: oai:DiVA.org:kth-367615DiVA, id: diva2:1985641
Supervisors
Examiners
Available from: 2025-07-29 Created: 2025-07-25 Last updated: 2025-07-29Bibliographically approved

Open Access in DiVA

fulltext(425 kB)625 downloads
File information
File name FULLTEXT01.pdfFile size 425 kBChecksum SHA-512
73c30153d8d45c1ad0dc54f1f82aed234b8f3f3349963b04dabbfd13297c2ac7219734f0da54e5aa6f8f50f16c6df11583e2d0ae877b579e3a1617ba5bc61000
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 630 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 719 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf