Skip to main navigation Skip to search Skip to main content

A RAG-Based Sentiment Analysis Proposal: Classifying a Dataset About Citizen Security

  • Víctor Carrión-Correa
  • , Janneth Chicaiza
  • , Ruth Reategui
  • , Henry N. Roa
  • , Daniel Pulla-Sánchez

    Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

    Abstract

    The paper presents an approach to sentiment analysis with a focus on citizen security. The analyzer is based on the Retrieval-Augmented Generation (RAG) to enhance the performance of an unsupervised approach and leverage the ability of LLMs to understand domain-specific language. Via prompt engineering, the analyzer can estimate two levels of analysis: aspect-level and sentence-level, providing a response that includes the sentiment and the reason for that classification. The proposal is supported by the development of a web application that facilitates the creation of a knowledge base for other contexts and the monitoring of related areas, enabling informed decision-making in security policies. During the proposal evaluation, a dataset of Ecuadorian citizen security demonstrated that both the knowledge base and the information retrieval component assist the language models in better interpreting the text under analysis. The results reveal that LLMs exhibit outstanding performance in detecting negative sentiments, e.g., the analyzer based on Llama3-8B-Instruct achieves 95% accuracy in this category.

    Original languageEnglish
    Title of host publicationRecent Trends and Challenges in Information Systems and Technologies - WorldCIST 2026
    EditorsAlvaro Rocha, Hojjat Adeli, Fernando Moreira
    PublisherSpringer Science and Business Media Deutschland GmbH
    Pages427-441
    Number of pages15
    ISBN (Print)9783032320254
    DOIs
    StatePublished - 2027
    Event14th World Conference on Information Systems and Technologies, WorldCIST 2026 - Funchal, Portugal
    Duration: Mar 31 2026 → Apr 2 2026

    Publication series

    NameLecture Notes in Networks and Systems
    Volume2093 LNNS
    ISSN (Print)2367-3370
    ISSN (Electronic)2367-3389

    Conference

    Conference14th World Conference on Information Systems and Technologies, WorldCIST 2026
    Country/TerritoryPortugal
    CityFunchal
    Period03/31/26 → 04/2/26

    Keywords

    • citizen security
    • Ecuador
    • LLMs
    • RAG
    • sentiment analysis

    Fingerprint

    Dive into the research topics of 'A RAG-Based Sentiment Analysis Proposal: Classifying a Dataset About Citizen Security'. Together they form a unique fingerprint.

    Cite this