This study investigates customer reviews to assess the quality of services offered by eco-friendly accommodation facilities, with the aim of supporting the advancement of sustainability practices in tourism development. Reviews were collected from major hospitality platforms using web scraping techniques. The data underwent pre-processing, including text normalization steps such as lowercasing, removal of stop words, punctuation, and numerical values. To convert the textual data into a numerical format suitable for analysis, Term Frequency–Inverse Document Frequency (TF-IDF) was applied. This technique assigns weights to words based on their contextual relevance, enhancing key terms while minimizing redundancy, thereby improving sentiment classification. A Random Forest machine learning model was employed to classify review sentiment and extract insights into customer perceptions. The results underscore the economic and regional value of sustainable tourism by highlighting the high appreciation of tourist customers for the quality of services in sustainable accommodations and demonstrate the potential of machine learning to reveal emerging trends and inform the best practices in eco-friendly hospitality management.

Assessing the Quality of Services on Sustainable Accommodation Facilities Through Sentiment Analysis: A Random Forest Approach

Firza Najada
;
Mazzitelli Dante
2025-01-01

Abstract

This study investigates customer reviews to assess the quality of services offered by eco-friendly accommodation facilities, with the aim of supporting the advancement of sustainability practices in tourism development. Reviews were collected from major hospitality platforms using web scraping techniques. The data underwent pre-processing, including text normalization steps such as lowercasing, removal of stop words, punctuation, and numerical values. To convert the textual data into a numerical format suitable for analysis, Term Frequency–Inverse Document Frequency (TF-IDF) was applied. This technique assigns weights to words based on their contextual relevance, enhancing key terms while minimizing redundancy, thereby improving sentiment classification. A Random Forest machine learning model was employed to classify review sentiment and extract insights into customer perceptions. The results underscore the economic and regional value of sustainable tourism by highlighting the high appreciation of tourist customers for the quality of services in sustainable accommodations and demonstrate the potential of machine learning to reveal emerging trends and inform the best practices in eco-friendly hospitality management.
2025
978-3-031-95995-0
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11586/542509
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact