Skip to main content
Have a personal or library account? Click to login
Leveraging Large Language Models for Aspect-Based Sentiment Analysis: A Restaurant Recommendation System for Entrepreneurs in Lisbon Cover

Leveraging Large Language Models for Aspect-Based Sentiment Analysis: A Restaurant Recommendation System for Entrepreneurs in Lisbon

By:  and    
Open Access
|Aug 2026

Full Article

Introduction

1

Online user-generated content (UGC) is pivotal in the contemporary digital landscape, particularly within the restaurant industry. Platforms dedicated to restaurant reviews and reservations enable potential customers to access detailed information drawn from previous patrons’ experiences, significantly influencing their dining choices (Asani et al., 2021). This digital word-of-mouth (WOM) constitutes a valuable resource for consumers and restaurant entrepreneurs seeking to understand customer perceptions and monitor competitors (Amaral et al., 2014). By analysing online reviews, business owners and potential investors can identify strengths and weaknesses in the competitive landscape, potentially uncovering service aspects that customers highly value but that existing establishments overlook.

However, the sheer volume of online reviews presents a significant challenge. Manually analysing thousands of comments to gauge sentiment and extract meaningful insights is often impractical and requires considerable cognitive effort and time. The evolution of computational technology, particularly in natural language processing (NLP) and generative artificial intelligence, offers robust methodologies for largescale sentiment analysis (Jim et al., 2024). Sentiment analysis techniques aim to identify the polarity (positive, neutral, or negative) expressed within text (Ahmed et al., 2023), enabling businesses to process vast amounts of feedback efficiently.

To effectively analyse customer perceptions as reflected in online reviews, structured frameworks are beneficial. Models like DINESERV (Dining Service Quality) were developed to assess service quality across dimensions such as tangibility, reliability, responsiveness, assurance, and empathy (Stevens et al., 1995). While traditionally used with direct customer questionnaires, adapting such models is crucial for analysing the often more concise and varied nature of online feedback found on modern platforms. This adaptation is necessary to capture the specific aspects mentioned by users in digital reviews.

This study’s primary objective is to develop and implement a restaurant recommendation system specifically designed for entrepreneurs and investors considering ventures in the Lisbon Metropolitan Area (AML). The system leverages Large Language Models (LLMs) to analyse customer sentiment in reviews from the DIG-IN online platform (formerly Zomato Portugal), a significant player in the Portuguese market. Specifically, the research aims to: (a) interpret and prepare restaurant and review data from DIG-IN; (b) develop an adapted sentiment analysis model based on existing literature (specifically refining DINESERV dimensions) and apply different LLMs (including versions of GPT and Mistral) for comparative analysis; and (c) present the results through a prototype tool designed to support investment decision-making in the restaurant sector.

The structure of this article proceeds logically through the research process. Section 2 provides a review of relevant literature, establishing the context regarding data-driven hospitality management, underlying technologies like Machine Learning and Large Language Models, sentiment analysis techniques including Aspect-Based Sentiment Analysis (ABSA), and established service quality frameworks such as DINESERV, alongside the rationale for adaptation. Section 3 outlines the research methodology employed, detailing the data source and pre-processing, the construction of the adapted sentiment analysis framework and attributes, the implementation and prompt engineering strategies for the LLMs, and the evaluation procedures, including concordance testing. Subsequently, Section 4 presents the key quantitative and qualitative results derived from the analyses of keyword identification, LLM performance metrics, aggregate sentiment findings for the target category, and the development of the prototype’s functionalities. These results are then interpreted and contextualised in the literature and practical implications for restaurant investment within the Discussion (Section 5). Finally, Section 6 concludes the paper by summarising the primary contributions and findings, acknowledging the inherent limitations of the study, and proposing specific directions for future research in this domain.

Literature Review

2

The Ascendance of Data-Driven Management in Hospitality

2.1

Historically, business decisions, including those in the restaurant sector, often relied heavily on managerial intuition and market perception. However, technological evolution has led in an era where data-driven insights provide concrete support for strategic decision-making. Machine learning, a subset of artificial intelligence, has emerged as a powerful tool that complements human intuition by enabling analysis of vast volumes of data, surpassing the limitations of manual processing (Kozyrkov, 2018). While technology facilitates efficient data processing, human expertise remains crucial for selecting relevant data sources, interpreting results within the business context, and communicating findings effectively (Kozyrkov, 2018). Experts such as Siegel (2018) propose structured processes for implementing predictive models, emphasising collaboration between human analysts and machine capabilities, from defining objectives to operational deployment. This humanmachine symbiosis is central to leveraging data science for effective management, though the increasing autonomy of AI suggests a future point where machines might play a more integrated role in governance (Schwab, 2017). Currently, however, understanding how machines process data is fundamental for utilising these paradigms effectively (Pinski et al., 2024).

Enabling Technologies: Machine Learning, NLP, and LLMs

2.2

Machine Learning (ML) encompasses computational techniques for extracting knowledge from large datasets, situated at the intersection of statistics, artificial intelligence, and computer science (Muller & Guido, 2016). It forms the foundation for more advanced AI applications, requiring human intervention initially to define objectives and finally to interpret results, highlighting a cooperative process (Santos, 2023). Building upon ML, Natural Language Processing (NLP) focuses on enabling computers to understand and process human language. Originating from early machine translation efforts, NLP has evolved significantly, particularly with the integration of ML techniques, enhancing its capacity for tasks like text analysis (Nadkarni et al., 2011). This capability is crucial for analysing customer sentiment expressed in reviews.

The latest advancement in this domain is the Large Language Models (LLMs), AI systems designed for direct interaction using human language. Trained on massive text datasets using deep learning techniques, LLMs like OpenAI’s ChatGPT can engage in fluid conversations, interpret context, identify nuances like sarcasm, and even generate creative text (Törnberg, 2023; Huang et al., 2022). LLMs represent a significant step towards simulating human cognitive capabilities in language understanding and generation (Oliveira, 2019). Their potential to automate analytical tasks previously reliant on human interpretation is a key value proposition (Santos, 2023). The rapid adoption of generative AI across industries underscores its perceived value, with significant organisational investment expected (Chui et al., 2023). However, their use requires careful supervision to mitigate potential biases and ensure the quality of outputs (Rodrigues & Rodrigues, 2023).

Contextualising Restaurant Investment Research with Online Data

2.3

Recent academic literature demonstrates a growing interest in using digital data to inform restaurant location and management strategies. Studies frequently leverage data extracted from popular platforms such as Yelp.com, Koubei.com, Zomato (now DIG-IN in Portugal), and Facebook.com (Shihab & Oishi, 2018; Kim et al., 2022; Wang & Yan, 2017; Lin et al., 2016). These platforms aggregate vast amounts of user-generated reviews and restaurant information, providing rich datasets for analysis. Research spans diverse geographical locations, including major cities in the US (Wang et al., 2016), China (Wang & Yan, 2017), India (Sushmitha, 2020), Bangladesh (Ahmed et al., 2021), Singapore (Lin et al., 2016), and Portugal (Branco et al., 2024). Various analytical techniques have been employed, ranging from traditional ML algorithms like Support Vector Machines (SVM), Decision Trees, and various regression models to more advanced deep learning approaches like Deep Neural Networks (DNN) and transformer models such as BERT and RoBERTa for NLP tasks (Anmoldeep et al., 2020; Shihab & Oishi, 2018; Lin et al., 2016; Wang et al., 2016; Branco et al., 2024). Notably, the literature reviewed prior to this study indicated limited use of the latest generation of LLMs (such as GPT models) for these specific tasks, suggesting an opportunity for investigation (Törnberg, 2023).

Sentiment Analysis and Aspect-Based Sentiment Analysis (ABSA)

2.4

The proliferation of online review platforms has amplified the phenomenon of electronic word-of-mouth (eWOM), significantly impacting restaurant positioning and customer acquisition (Camilo, 2021; Kim et al., 2022). Sentiment analysis is a key NLP task focused on identifying the affective orientation (positive, negative, neutral) within text (Hua et al., 2023). While general sentiment analysis classifies the overall tone of a review, customer feedback is often multifaceted, expressing different sentiments towards various aspects of the experience within a single comment. For instance, a reviewer might praise the location (“lovely”) but criticise the service (“a little slow”), making a single overall sentiment score insufficient for deep understanding. Aspect-Based Sentiment Analysis (ABSA) addresses this limitation by identifying sentiments associated with specific attributes or aspects mentioned in the text (Ahmed et al., 2023; Hua et al., 2024). This technique allows for a more granular analysis, decomposing reviews into specific components (e.g., food, service, ambience, price) and determining the sentiment polarity for each. ABSA provides a richer, more detailed understanding of customer perceptions, highlighting specific areas for improvement or reinforcement (Simmering & Huoviala, 2023). Given the recent advances in LLM capabilities for understanding context and nuance, they present a promising approach to performing ABSA on restaurant reviews.

Service Quality Models and Adaptation for Online Reviews

2.5

Measuring customer satisfaction is complex, involving subjective judgments about service experiences (Uslu & Eren, 2020). Academic research has sought to develop consistent models for this purpose. Early work by Parasuraman et al. (1988) introduced the GAP model, identifying discrepancies between customer expectations and service delivery. Subsequently, the SERVQUAL model proposed five core dimensions for service quality assessment across industries: Tangibility, Reliability, Responsiveness, Assurance, and Empathy (Parasuraman et al., 1988). Recognising the specific context of the restaurant industry, Stevens et al. (1995) adapted SERVQUAL to create DINESERV. This model retains the five core dimensions but refines the associated attributes (originally 29 items) to better reflect the dining experience. The dimensions include physical facilities and appearance (Tangibility), ability to perform the promised service dependably (Reliability), willingness to help customers and provide prompt service (Responsiveness), employee knowledge and courtesy, and their ability to inspire trust (Assurance), and caring, individualised attention (Empathy). Table 1 summarises these dimensions and illustrative criteria.

Table 1:

Dimensions and main attributes

DimensionCriteria
TangibilityPhysical appearance of facilities and equipment;
Staff uniforms and appearance;
Menu presentation.
ReliabilityPreparation and service times;
Accuracy of orders and billing;
Consistency of dishes, flavour, and service.
ResponsivenessStaff availability;
Fast service;
Handling of special requests.
AssuranceAccurate and transparent information;
Staff training and experience;
Ease of interaction with staff.
EmpathySensitivity to customer needs;
Ability to anticipate needs;
Support in case of problems.

[i] Adapted from (Stevens et al.,1995)

However, DINESERV was originally designed for data collection via detailed questionnaires administered immediately post-experience. Online reviews, in contrast, tend to be more concise and variable, often focusing on overall impressions or specific salient points rather than systematically addressing all 29 DINESERV items. For example, multiple DINESERV items relating to physical aspects (e.g., attractive décor, comfortable seating, cleanliness) might be condensed into a single general comment about the “ambience” or “cleanliness” in an online review. Therefore, for effective analysis using LLMs on online review data, adapting the DINESERV framework is necessary. This involves consolidating the original items into broader, more representative criteria that capture the essence of each dimension while aligning with the language typically used in online comments. This study undertook such an adaptation, drawing on the DINESERV dimensions and related literature on key restaurant choice attributes (e.g., Choi et al., 2009; Haghighi, 2012; Alves, 2017; Silva et al., 2009; Alhelalat et al., 2017). The goal was to create a synthesized set of attributes linked to the core DINESERV dimensions, suitable for guiding the LLM-based ABSA process. This adapted framework (to be presented in section 3.4) provides a structured yet flexible approach to analysing sentiment expressed in concise online reviews, forming the basis for the methodology employed in this research.

Methodology

3

This study implements a restaurant recommendation system for the Lisbon Metropolitan Area (AML) using sentiment analysis of online reviews, designed as a decisionsupport tool for potential investors. The methodology detailed below outlines the data acquisition, pre-processing, sentiment analysis framework development, Large Language Model (LLM) implementation strategies, and the model evaluation procedures.

Data Source and Acquisition

3.1

The primary data for this research were provided by ZMTEUROPE, LDA, the company operating the DIG-IN digital restaurant discovery platform (previously Zomato Portugal). Data were obtained through the company’s Datalab initiative. The dataset encompasses two main components pertinent to this study: (1) information on restaurants located within the AML, including characteristics like cuisine type, location, and pricing, and (2) user-generated content associated with these restaurants, specifically numerical ratings and textual reviews (comments). This collaboration provided access to a substantial and relevant dataset reflecting real-world customer experiences within the target geographical area.

Data Characteristics and Pre-processing

3.2

The initial dataset contained information on 15,892 restaurants within the AML and 1,043,806 associated user ratings, of which 474,470 included written comments. Given the large volume and potential for inconsistencies (e.g., null values, inconsistent geographical definitions, and varied cuisine classifications), data pre-processing was performed using the Python programming language and associated data analysis libraries. This phase involved cleaning the data, ensuring correct geographical delimitation of the AML, and standardising restaurant information. Two primary datasets resulted from this process:

– A restaurant dataset containing unique identifiers (restaurant_id), name, cuisine type(s), average rating, price level, location coordinates, operational features (e.g., outdoor seating, takeaway), and review count.

– A reviews dataset linking user comments (original_text) to specific restaurants (restaurant_id) and including the overall rating assigned by the user (general_rating).

Sample Selection for Prototype Development

3.3

Due to the potential diversity and inconsistency in how restaurants self-classify their cuisine types on the platform, an initial analysis identified the ten most frequent cuisine categories within the AML dataset. To ensure a focused yet representative analysis for the prototype development and manage computational costs associated with LLM processing, a specific cuisine category was selected. The ‘Italian’ category was chosen based on three key factors derived from analyzing restaurants offering only one cuisine type: (1) a favorable comment-to-restaurant ratio (average 38.82 comments per restaurant), indicating sufficient opinion density; (2) a substantial number of establishments (115 restaurants), ensuring reasonable representativeness; and (3) a manageable total number of comments (4,464 written comments) that allowed for complete processing within practical resource constraints, unlike categories with significantly higher comment volumes (e.g., ‘Burger’). This selection provided an ideal balance between data richness and processing feasibility for demonstrating the prototype’s capabilities.

Defining a Framework for Sentiment Analysis

3.4

To guide the sentiment analysis, a framework was developed by adapting established service quality models to the specific context of online reviews. Building upon the five dimensions of the DINESERV model (Tangibility, Reliability, Responsiveness, Assurance, Empathy)(Stevens et al., 1995), which are often too detailed for concise online comments, the twenty-nine original items were consolidated into a set of ten attributes frequently discussed in restaurant-selection literature and relevant to customer experience(Choi et al.,2009). An exploratory assessment of the present dataset showed that the average comment contains approximately sixty words, confirming that reviewers rarely address all twenty-nine items systematically and thereby reinforcing the need for aggregation.

The resulting attributes are Food Taste, Food Portion, Service, Price, Ambience / Atmosphere, Food Presentation, Nutritious Food, Restaurant Reputation, Cleanliness and Variety of Healthy Meals (Table 2). This structure preserves the theoretical alignment with the five core dimensions while adopting labels that mirror the vocabulary commonly found in user-generated content.

Table 2:

Consolidated attributes for Aspect-Based Sentiment Analysis

AttributeDescription
1. Food TasteAssesses the quality of food flavour, including authenticity and balance of ingredients.
2. Food PortionRefers to the quantity served, considering appropriateness in terms of price and expectations.
3. ServiceSeeks speed, efficiency, courtesy, and professionalism of the staff.
4. PriceEvaluates the adequacy of prices in relation to the quality of dishes and service.
5. Ambiance/AtmosphereConsiders decoration, lighting, music, and spatial arrangement.
6. Food PresentationObserves visual preparation, care, and creativity in the presentation of dishes.
7. Nutritious FoodAnalyses the nutritional quality of food options, such as the use of fresh ingredients and preparation methods.
8. Restaurant ReputationBased on reviews, recommendations, awards received, and public recognition of the restaurant.
9. CleanlinessAssess the hygiene of the restaurant, including dining and food preparation areas.
10. Variety of Healthy MealsMeasures the diversity of healthy options available on the menu, as well as other menu alternatives.

[i] Adapted from (Choi et al., 2009)

Then, an LLM (ChatGPT 3.5) was utilised via a specific prompt to assist in mapping these ten attributes to the expanded ten attributes, ensuring that the analysis framework captured the essence of service quality while focusing on aspects commonly mentioned by online reviewers. This adapted framework provides the structure for the aspect-based sentiment analysis (ABSA).

LLM Implementation and Prompt Engineering

3.5

The core sentiment analysis was performed using LLMs accessed via the openrouter.ai platform (https://openrouter.ai), which provides a unified API for interacting with various models.

Keyword Identification

3.5.1

To aid attribute identification within online reviews, an initial methodological step involved using an LLM (ChatGPT 3.5) to analyse a sample of 1,000 comments. This was guided by Prompt A (see Appendix 1), designed specifically to elicit relevant keywords associated with each of the ten defined attributes. The list of keywords and their frequencies generated by this process served as input to the subsequent attribute classification process. The specific keywords identified and their resulting frequencies are presented in the Results section (Section 4.1).

LLM Selection and Prompt Design

3.5.2

Three LLMs were selected for processing and evaluation based on their capabilities, accessibility, and cost-effectiveness:

– ChatGPT 3.5 Turbo (openai/gpt-3.5-turbo): A widely used paid model known for its balance of efficiency and cost.

– ChatGPT 4o_2024-05-13 (openai/gpt-4o-2024-05-13): A more advanced paid model recognised for higher precision, particularly in complex tasks.

– Mistral 7B Instruct (mistralai/mistral-7b-instruct: free): A freely available model demonstrating competitive performance in testing, offering a cost-effective alternative.

A detailed prompt was engineered to instruct the LLMs on performing the ABSA task consistently. The prompt (presented in Appendix 2 – Prompt B) specified the objective (classify experience based on written comments), defined the ten attributes of evaluation with associated keywords and descriptions, and outlined the instructions for analysis. Key instructions included: assigning a 1-5 Likert scale score (1=very dissatisfied, 5=very satisfied) to each attribute identified in the comment, using adjectives and keywords to infer satisfaction levels, assigning ‘N/A’ if an attribute was not mentioned, and providing the output in a specific structured format listing the classification for each attribute. This structured prompt aimed to ensure consistent and comparable outputs across different models and comments.

Model Evaluation

3.6

Several steps were taken to evaluate the accuracy and consistency of the selected LLMs in performing the sentiment analysis task according to the defined framework.

Initial Human vs. Machine Comparison

3.6.1

A preliminary test compared the overall sentiment classification (1-5 stars) assigned by ChatGPT 3.5 to that assigned by the original human reviewer for 50 comments sampled from TripAdvisor. This initial check showed high agreement (47 out of 50 matched), providing early confidence in the model’s ability to interpret overall sentiment from text.

Inter-Model Concordance

3.6.2

The consistency among the three selected LLMs (GPT-3.5 Turbo, GPT-4o, Mistral 7B Instruct) in their attribute classification was assessed. A sample of 100 comments was processed by all three models using Prompt B. Concordance was measured based on whether the models agreed on the sentiment polarity (positive: ratings 3-5; negative: ratings 1-2) or agreed on the absence of an attribute for each of the ten attributes. This procedure aimed to understand the reliability across different models. The specific concordance rates are detailed in Section 4.2.2.

Human vs. Machine Concordance (Extended)

3.6.3

A more rigorous concordance analysis was performed by comparing the attribute classifications produced by each of the three LLMs with those of a single human expert evaluator (serving as the reference) for a random sample of 100 comments from the ‘Italian’ dataset. Concordance was defined as agreement on the presence and polarity (positive/negative) of an attribute, or agreement on its absence. The detailed performance results for each model against the human expert are presented in Table 4 in Section 4.2.3.

Results

4

This section presents the findings from applying the methodology, including keyword analysis, evaluation of Large Language Model (LLM) performance in sentiment classification, aggregate analysis of the selected restaurant category, and the functionality of the developed prototype tool.

Attribute Keyword Analysis

4.1

The methodological step of identifying keywords associated with the ten defined customer experience attributes (detailed in Section 3.4, Table 2), using LLM analysis (Prompt A, Appendix 1) on a sample of 1,000 comments, revealed distinct frequency patterns. These are summarised in Table 3.

Table 3:

List of keywords and frequencies

AttributeKeywordsFrequency
1. Food Tastetasty, delicious, seasoning, authentic, nice, balanced.112
2. Food Portionportion, quantity, sufficient, generous, large.119
3. Serviceservice, quick, efficient, friendly, kind, professional.312
4. Priceprice, cost, expensive, cheap, affordable.264
5. Ambiance/Atmosphereambience, atmosphere, cosy, decoration, lighting, music.217
6. Food Presentationpresentation, visual, plating, creative, decorated.45
7. Nutritious Foodnutritious, healthy, fresh, natural ingredients.98
8. Restaurant Reputationfamous, recommended, awarded, well-known, reputation.19
9. Cleanlinessclean, hygienic, tidy, cleanliness.7
10. Variety of Healthy Mealsvariety, healthy options, healthy menu, alternatives.53

Keywords related to Service (312 mentions), Price (264 mentions), Ambiance/atmosphere (217 mentions), Taste of the food (112 mentions), and Food Portion (119 mentions) were most prevalent. This indicates that customers frequently focus their feedback on these core aspects of the dining experience. Conversely, attributes such as Reputation of the restaurant (19 mentions), Cleanliness (7 mentions), Presentation of the food (45 mentions), and Variety of healthy meals (53 mentions) were mentioned less explicitly. Despite the low frequency for some, all ten attributes were retained for subsequent analysis to ensure comprehensive coverage.

LLM Concordance and Performance Evaluation

4.2

The performance of the selected LLMs (ChatGPT 3.5 Turbo, ChatGPT 4o_2024-05-13, Mistral 7B Instruct) was evaluated through multiple concordance tests as outlined in the methodology (Section 3.6).

Initial Sentiment Agreement

4.2.1

The initial comparison using 50 TripAdvisor comments (Section 3.6.1) found that ChatGPT 3.5 assigned the same overall numerical rating (1-5 stars) as the human reviewer in 47 out of 50 cases (94% agreement), demonstrating a strong capability to infer general sentiment from text alone.

Inter-Model Attribute Concordance

4.2.2

When analysing the classification polarity or absence of attributes across 100 comments (Section 3.6.2), the three LLMs showed concordance rates of 80% or higher for five key attributes: Taste of the food, Service, Price, Ambiance/atmosphere, and Variety of healthy meals. This high agreement aligns with the high frequency of keywords identified for these attributes. The lowest inter-model concordance was observed for Food Portion (55.0%), potentially indicating greater ambiguity or less standardised language used by reviewers for this attribute.

Human vs. Machine Attribute Concordance

4.2.3

The comparison against expert human evaluation on 100 comments (Section 3.6.3) revealed the performance differences presented in Table 4.

Table 4:

Agreement Rates Between Models and Human Evaluator

LLM modelAgreement Rate
ChatGPT 3.5 Turbo64,4%
ChatGPT 4o_2024-05-1381,6%
Mistral 7B Instruct Free60,6%

ChatGPT 4o_2024-05-13 achieved the highest concordance rate with the human evaluator at 81.6%. This was substantially higher than ChatGPT 3.5 Turbo (64.4%) and Mistral 7B Instruct (60.6%). The 81.6% concordance rate for GPT-4o approaches typical inter-human agreement levels reported in related studies (Carrasco & Dias, 2024), indicating its strong ability to replicate humanlike judgment in identifying and classifying sentiment towards specific attributes. Analysis of specific discrepancies highlighted the inherent subjectivity in sentiment analysis, even between humans, but confirmed the general robustness of the LLMs, particularly GPT-4o.

Sentiment Analysis of ‘Italian’ Restaurant Reviews

4.3

The entire set of 4,464 comments for the 115 ‘Italian’ restaurants in the AML (selected as per Section 3.3) was processed using the ChatGPT 3.5 Turbo model (guided by Prompt B, Appendix 2) to generate attribute-level sentiment scores. A comparison between the overall sentiment rating derived from the model’s attribute analysis and the customer’s original rating showed a high degree of alignment. Specifically, 83.96% of the comments processed had a difference of 1.0 Likert scale points or less between the customer’s rating and the model’s derived rating. This finding suggests that even the less advanced GPT-3.5 Turbo model demonstrated considerable competence in capturing the overall sentiment expressed across the various attributes mentioned in the reviews.

Prototype Tool Functionality and Insights

4.4

The sentiment analysis results derived from processing the 4,464 comments were integrated into an interactive prototype tool. This tool is designed to provide potential investors with actionable insights through two main visual components:

The first component is an Interactive Map, which visualises a selected geographical area (e.g., Marquês de Pombal, as shown in Figure 1a). This map displays the locations of competing restaurants within the chosen category (‘Italian’) and employs features like a colour grid to indicate market saturation (density of competitors). Users can click on individual restaurant pins to access detailed pop-ups containing basic information and summarised sentiment analysis results (Figure 1b). This interface provides a clear and immediate overview of the competitive landscape in the selected vicinity.

Figure 1:

Prototype visual components (a) map of the locations of competing restaurants within a chosen category; (b) information and summarised sentiment analysis results for a specific restaurant

The second component features Restaurant Performance Radar Charts. For selected competitors, the tool generates radar charts displaying the average sentiment score (derived from LLM analysis of reviews) for each of the ten defined attributes (e.g., Taste, Service, Price, Ambience), as illustrated in Figure 2. This allows investors to quickly visualise and compare the perceived strengths and weaknesses of competitors based on customer feedback, moving beyond simple overall ratings to understand performance on specific aspects crucial to customer experience.

Figure 2:

Radar chart comparison of multiple restaurants

Together, these features centralise competitive information and sentiment analysis, enabling investors to identify market opportunities and potential areas for differentiation based on detailed, data-driven insights derived directly from customer comments.

Discussion

5

This study’s exploration into leveraging Large Language Models (LLMs) for aspect-based sentiment analysis (ABSA) of online restaurant reviews, aimed at informing investment decisions, generated favourable insights into the practical application and capabilities of these technologies within the hospitality sector. The findings highlight that contemporary LLMs, particularly GPT-4o, can interpret and classify sentiment towards specific dining attributes with a high degree of accuracy, as evidenced by the 81.6% concordance rate with expert human evaluation (Table 4). This performance, which approaches interhuman agreement levels (Carrasco & Dias, 2024), signifies a critical step towards reliably automating the nuanced task of ABSA. Such automation is important for overcoming the scalability challenges associated with manual review analysis (Jim et al., 2024) and represents an evolution in LLM utility from text generation to sophisticated analytical interpretation (Törnberg, 2023).

The successful application of ABSA was significantly supported by the adapted analytical framework, which synthesised established DINESERV dimensions (Stevens et al., 1995) with ten specific attributes pertinent to restaurant selection (Choi et al., 2009), detailed in Table 2. The keyword frequency analysis (Table 3) confirmed that this framework captured aspects commonly discussed by customers, particularly concerning service, price, ambience, and food quality. By enabling a granular dissection of customer perceptions (Ahmed et al., 2023; Hua et al., 2024), this approach provides deeper insights than general sentiment scores, which, while showing broad agreement in the large-scale GPT-3.5 analysis (Results 4.3), can mask critical details about specific strengths or weaknesses.

The practical implications of integrating LLM-driven sentiment analysis with market data are demonstrated by the developed prototype tool (Figures 1 and 2). This tool operationalises data-driven decision-making principles (Kozyrkov, 2018) by offering investors a clear and intuitive means to assess competitor performance across specific attributes and identify market opportunities (Bressler, 2012). For instance, by using the radar charts (Figure 2) to detect consistent weaknesses in competitor offerings, such as poor service reviews or negative sentiment on food portions despite good taste, investors can strategically tailor their own concepts to fill these identified gaps. This capability to move beyond basic competitive intelligence (location, price) to understand nuanced customer perceptions offers a distinct advantage in planning and launching new ventures in a saturated market.

Despite the robust performance, particularly of GPT-4o, the study also acknowledged the inherent subjectivity in sentiment analysis. Discrepancies between LLM and human classifications, especially for reviews with mixed emotions or sarcasm (Results 4.2.2), and the 16.04% of comments showing a sentiment difference greater than one Likert point in the large-scale analysis (Results 4.3), underscore this challenge. However, given that perfect agreement is rare even among human evaluators, the consistency achieved by the LLMs in navigating this subjectivity and extracting meaningful trends from diverse, real-world commentary is noteworthy. This research, therefore, validates the use of modern LLMs, guided by a contextually adapted analytical framework, to conduct effective ABSA on online restaurant reviews, paving the way for more sophisticated, AI-driven competitive analysis in the hospitality industry.

Conclusions

6

This research fulfilled its primary objective of developing a system that utilises Large Language Models (LLMs) for aspect-based sentiment analysis (ABSA) of online restaurant reviews. The outcome was a prototype tool designed to support investment decisions within the Lisbon Metropolitan Area (AML) by facilitating detailed competitor analysis. A key conclusion from this study is that LLMs can effectively automate the extraction and classification of sentiment towards specific customer experience attributes from extensive textual data. The models demonstrated a significant ability to interpret customer feedback when guided by engineered prompts based on adapted service quality literature.

The significance of this research lies in its practical application to Business Intelligence and applied Natural Language Processing within the hospitality sector. It offers a data-driven methodology for navigating the competitive restaurant industry. The developed prototype serves as proof-of-concept, illustrating how such a system can aid in enhancing investment decisions, identifying market opportunities, and potentially contributing to the sustainability of new ventures by transforming unstructured reviews into structured insights.

Several limitations are acknowledged. The prototype’s current scope is restricted to a single data source and cuisine category within the AML. The attribute framework, though informed by literature, may benefit from further adaptation to evolving online customer discourse. The initial keyword identification was based on a limited sample, and interpreting complex linguistic nuances remains an ongoing challenge for LLMs. Additionally, the computational costs of using certain LLMs warrant consideration for widespread application.

These limitations inform suggestions for future research. Expanding data sources and geographical coverage would improve the system’s applicability. Continued investigation into pertinent customer attributes and keyword refinement is recommended. Further advancements in LLM training for nuanced language and prompt optimisation, including the exploration of open-source models, could enhance the system’s robustness, efficiency, and accessibility for strategic decision-making in the hospitality industry.

Notes

[3] Disclosure statement

This is to acknowledge any financial interest or benefit that has arisen from the direct applications of your research.

[4] Conflicts of interest Conflicts of Interest

The authors of the article “Leveraging Large Language Models for Aspect-Based Sentiment Analysis: A Restaurant Recommendation System for Entrepreneurs in Lisbon” declare no conflict of interest.

Appendix 1 - Prompt A

“You are a sentiment analyst who reads restaurant reviews and classifies attributes based on customer experience. In this task, you must focus on the 10 attributes listed below and identify, in the 1000 reviews contained in the attached file, the ideal keywords to best capture each of the attributes.

  1. Food Taste – Assesses the quality of food flavour, including authenticity and balance of ingredients.

  2. Food Portion – Refers to the quantity served, considering appropriateness in terms of price and expectations.

  3. Service – Seeks speed, efficiency, courtesy, and professionalism of the staff.

  4. Price – Evaluates the adequacy of prices in relation to the quality of dishes and service.

  5. Ambiance/Atmosphere – Considers decoration, lighting, music, and spatial arrangement.

  6. Food Presentation – Observes visual preparation, care, and creativity in the presentation of dishes.

  7. Nutritious Food – Analyses the nutritional quality of food options, such as the use of fresh ingredients and preparation methods.

  8. Restaurant Reputation – Based on reviews, recommendations, awards received, and public recognition of the restaurant.

  9. Cleanliness – Assesses the hygiene of the restaurant, including dining and food preparation areas.

  10. Variety of Healthy Meals – Measures the diversity of healthy options available on the menu, as well as other menu alternatives.

After listing the keywords for each attribute, I want you to count the incidence of each attribute in the reviews. Organize a table with one column for the attributes, one column for the identified keywords, and one column for the number of times you detect the attributes in the reviews.”

Appendix 2 - Prompt B

“You are a restaurant review evaluator.

Objective: To classify restaurant experiences based on comments written by users.

Evaluation Attributes:

  1. Food Taste: Assesses the quality of food flavour, including authenticity and balance of ingredients.

  2. Food Portion: Refers to the quantity served, considering appropriateness in terms of price and expectations.

  3. Service: Looks for speed, efficiency, friendliness, and professionalism of the staff.

  4. Price: Evaluates the adequacy of prices relative to the quality of dishes and service.

  5. Ambiance/Atmosphere: Considers decoration, lighting, music, and the spatial arrangement of the venue.

  6. Food Presentation: Observes the visual preparation, care, and creativity in the presentation of dishes.

  7. Nutritious Food: Analyses the nutritional quality of food options, including the use of fresh ingredients and preparation methods.

  8. Restaurant Reputation: Based on reviews, recommendations, awards received, and public recognition of the restaurant.

  9. Cleanliness: Assesses the hygiene of the restaurant, including both dining and food preparation areas.

  10. Variety of Healthy Meals: Measures the diversity of healthy options available on the menu, as well as other menu alternatives.

Example Keywords per Attribute:

  1. Food Taste: tasty, delicious, seasoning, authentic, nice, balanced

  2. Food Portion: portion, quantity, sufficient, generous, large

  3. Service: service, fast, efficient, friendly, kind, professional

  4. Price: price, cost, expensive, cheap, affordable

  5. Ambiance/Atmosphere: ambience, atmosphere, cosy, decoration, lighting, music

  6. Food Presentation: presentation, visual, plating, creative, decorated

  7. Nutritious Food: nutritious, healthy, fresh, natural ingredients

  8. Restaurant Reputation: famous, recommended, awarded, well-known, reputation

  9. Cleanliness: clean, hygienic, tidy, cleanliness

  10. Variety of Healthy Meals: variety, healthy options, healthy menu, alternatives

Instructions:

Use the adjectives mentioned in the review to help infer the satisfaction level for each attribute.

Assign a rating from 1 to 5 for each of the listed criteria, based on the descriptions provided in the review;

If you cannot identify any words that allow classification of an attribute, mark it as N/A.

Expected Output Format:

Food Taste: <rating>

Food Portion: <rating>

Service: <rating>

Price: <rating>

Ambiance/Atmosphere: <rating>

Food Presentation: <rating>

Nutritious Food: <rating>

Restaurant Reputation: <rating>

Cleanliness: <rating>

Variety of Healthy Meals: <rating>“

DOI: https://doi.org/10.2478/ejthr-2026-0001 | Journal eISSN: 2182-4924 | Journal ISSN: 2182-4916
Language: English
Page range: 1 - 14
Submitted on: May 8, 2025
Accepted on: Jul 22, 2025
Published on: Aug 17, 2026
Published by: Polytechnic Institute of Leiria
In partnership with: Paradigm Publishing Services
Publication frequency: 2 issues per year

© 2026 Paulo Carrasco, Pedro Esteves, published by Polytechnic Institute of Leiria
This work is licensed under the Creative Commons Attribution 4.0 License.