[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-291058-105":59,"doc-detail-291058-en":131,"doc-similar-291058":163},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","explainable-machine-learning-framework-for-hotel-customer-loyalty-prediction-using-transactional-behavioral-data-article","EXPLAINABLE MACHINE LEARNING FRAMEWORK FOR HOTEL CUSTOMER LOYALTY PREDICTION USING TRANSACTIONAL BEHAVIORAL DATA - Article","","Customer loyalty has become a critical factor for sustaining competitiveness in the hotel industry, especially in increasingly digital and data-driven environments. Despite the availability of large volumes of transactional customer data, converting it into actionable insights for retention and marketing decisions remains challenging. This study proposes an explainable machine learning framework for predicting hotel customer loyalty using a publicly available dataset of 2,000 customer records. Supervised models including Logistic Regression, Random Forest, XGBoost, SVM, KNN, and Naïve Bayes are evaluated with stratified k-fold cross-validation and metrics such as Accuracy, Precision, Recall, F1-score, and ROC-AUC, all reaching 1.000. SHAP identifies frequency_of_bookings and days_since_last_booking as dominant drivers, supporting practical, interpretable guidance for retention, segmentation, loyalty programs, and personalized marketing.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/explainable-machine-learning-framework-for-hotel-customer-loyalty-prediction-using-transactional-behavioral-data-article/291058/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/explainable-machine-learning-framework-for-hotel-customer-loyalty-prediction-using-transactional-behavioral-data-article/291058.png","ImageObject",300,407,{"name":92,"@type":93},"Theodora","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-17","2026-09-17",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",18,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What dataset and data type are used for the loyalty prediction study?","Question",{"text":113,"@type":114},"The study uses a publicly available hotel customer transaction dataset from the Mendeley Data repository, containing 2,000 customer records based on transactional behavioral information.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"Which machine learning models are evaluated in the framework?",{"text":118,"@type":114},"The framework evaluates Logistic Regression, Decision Tree, Random Forest, XGBoost, Support Vector Machine (SVM), K-Nearest Neighbors (KNN), and Naïve Bayes.",{"name":120,"@type":111,"acceptedAnswer":121},"How are model performance and validation carried out?",{"text":122,"@type":114},"Performance is measured using stratified K-fold cross-validation and classification metrics including Accuracy, Precision, Recall, F1-score, and ROC-AUC.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},291058,1789643343,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":130,"read_time":145,"preview_page_count":19,"preview_urls":146},687197207919,"https://ap-avatar.wpscdn.com/avatar/a000253d6f5f7c60be?x-image-process=image/resize,m_fixed,w_180,h_180&k=1779446848396160552","EXPLAINABLE MACHINE LEARNING FRAMEWORK FOR HOTEL CUSTOMER LOYALTY PREDICTION USING TRANSACTIONAL BEHAVIORAL DATA  \nGatot Tri Pranoto 1,*, Dwi Pebrianti2, Yoga Religia3, Lestari Agusalim 1  \n1 Trilogi University, Jakarta, Indonesia  \n2 International Islamic University Malaysia, Kuala Lumpur, Malaysia  \n3 UPN ‘Veteran ’ Yogyakarta, Yogyakarta, Indonesia Corresponding author email: [gatot.pranoto@trilogi.ac.id](gatot.pranoto@trilogi.ac.id)  \nArticle Info  \nReceived: Apr 28, 2026  \nRevised: Jun 02, 2026  \nAccepted: Jun 27, 2026  \nOnlineVersion: Jun 30, 2026  \nAbstract  \nCustomer loyalty has become a critical factor for sustaining competitiveness in the hotel industry, particularly in increasingly digital and data-driven business environments. Although hotels continuously generate large volumes of transactional customer data, transforming this data into actionable insights for customer retention and marketing decision-making remains a significant challenge. This study proposes an Explainable Machine Learning Framework for hotel customer loyalty prediction using transactional behavioral data. The study used a publicly available hotel customer transaction dataset from the Mendeley Data repository, comprising 2,000 customer records. A supervised machine learning approach was employed using Logistic Regression, Decision Tree, Random Forest, XGBoost, Support Vector Machine (SVM), KNearest Neighbors (KNN), and Naïve Bayes. Model performance was evaluated using Stratified K-Fold Cross-Validation and classification metrics, including Accuracy, Precision, Recall, F1-Score, and ROCAUC. Experimental results demonstrated that all evaluated models achieved perfect classification performance, with Accuracy, Precision, Recall, F1-Score, and ROC-AUC values reaching 1.000. SHAP analysis revealed that frequency_of_bookings, days_since_last_booking, total_meal_charges, and total_revenue_generated were the primary drivers of customer loyalty prediction, while average_stay_duration showed minimal influence. The findings indicate that booking frequency and customer recency are the most influential behavioral factors affecting loyalty outcomes. From a managerial perspective, the proposed framework provides actionable insights for customer retention, customer segmentation, loyalty programs, and personalized marketing strategies. This study contributes to predictive customer analytics and Explainable Artificial Intelligence by integrating predictive accuracy with transparent interpretation of customer behavior in hotel loyalty management.  \nKeywords: Explainable Machine Learning, Hotel Analytics, Marketing Decision Support, Customer Loyalty, SHAP.  \n© 2026 by the author(s)  \nThis article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license ([https://creativecommons.org/licenses/by/4.0/](https://creativecommons.org/licenses/by/4.0/)).  \nINTRODUCTION  \nThe hotel industry has experienced significant transformation in recent years due to rapid digitalization, the expansion of online travel agencies (OTAs), and increasing competition among accommodation providers (Reklitis et al., 2025) . These developments have intensified customers' ability to compare prices, services, and experiences across multiple hotel platforms, making customer retention more challenging than ever (Kim & Han, 2022) . The increasing adoption of digital marketing technologies, customer relationship management systems, and big data analytics has further transformed how hotels understand and retain customers (Rahayu, 2024; Singgalen, 2025) . In such a competitive environment, customer loyalty has emerged as a critical strategic asset that contributes to sustainable business performance, repeat bookings, and long-term profitability (Srivastava & Singh, 2021) . Loyal customers not only generate recurring revenue but also tend to exhibit positive word-of-mouth behavior and lower acquisition costs compared to newly acquired cust","cbCaibZWpeJwVzoj","https://ap.wps.com/l/cbCaibZWpeJwVzoj","pdf",665436,22,"English","# Introduction\n## Customer loyalty in digital hotel environments\n## Need for data-driven predictive approaches\n## Related work on hotel loyalty determinants","[{\"question\":\"What dataset and data type are used for the loyalty prediction study?\",\"answer\":\"The study uses a publicly available hotel customer transaction dataset from the Mendeley Data repository, containing 2,000 customer records based on transactional behavioral information.\"},{\"question\":\"Which machine learning models are evaluated in the framework?\",\"answer\":\"The framework evaluates Logistic Regression, Decision Tree, Random Forest, XGBoost, Support Vector Machine (SVM), K-Nearest Neighbors (KNN), and Naïve Bayes.\"},{\"question\":\"How are model performance and validation carried out?\",\"answer\":\"Performance is measured using stratified K-fold cross-validation and classification metrics including Accuracy, Precision, Recall, F1-score, and ROC-AUC.\"}]","EXPLAINABLE MACHINE LEARNING FRAMEWORK FOR HOTEL CUSTOMER LOYALTY PREDICTION USING TRANSACTIONAL BEHAVIORAL DATA - Article | PDF",55,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/7c6235e7db574f02b671348f21de0fab.webp",983,1390,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/a9d6cd4342901683c52ff07e6ad1f04a.webp",982,1388,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/2aec4f6ef109da53e809eae5c7f006c2.webp",981,1387,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/27344c8c2359a9e5e8ea926d184754d0.webp",980,1385,{"list":164,"token":66},[165,172,179,186,193,200,206,212,218,224],{"doc_id":166,"doc_title":167,"file_type":138,"home_preview_img_url":168,"slug":169,"view_count":170,"category_name":40,"create_tm":171},327375,"Predictive modeling for breast cancer classification in the context of Bangladeshi patients by use of machine learning approach with explainable AI","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909320523/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796168519&Signature=brbtfHTTqtGdGhlxGeCwpTET9IA%3D","predictive-modeling-for-breast-cancer-classification-in-the-context-of-bangladeshi-patients-by-use-of-machine-learning-approach-with-explainable-ai",12,1789977094,{"doc_id":173,"doc_title":174,"file_type":138,"home_preview_img_url":175,"slug":176,"view_count":177,"category_name":40,"create_tm":178},122956,"Performance evaluation of machine learning algorithms for meat freshness assessment - compare AI methods - KNN SVM Naïve Bayes","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229836961918/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796168519&Signature=ZpGsYB%2FuCipgCPABxWTCwygLL60%3D","performance-evaluation-of-machine-learning-algorithms-for-meat-freshness-assessment-compare-ai-methods-knn-svm-naive-bayes",31,1785813884,{"doc_id":180,"doc_title":181,"file_type":138,"home_preview_img_url":182,"slug":183,"view_count":184,"category_name":40,"create_tm":185},290753,"Machine Learning for Cardiovascular Disease Risk Assessment - A Systematic Review","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903740722/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796168519&Signature=HMxG4KWquMZWyrbZHH3gon9hsSs%3D","machine-learning-for-cardiovascular-disease-risk-assessment-a-systematic-review",17,1789642504,{"doc_id":187,"doc_title":188,"file_type":138,"home_preview_img_url":189,"slug":190,"view_count":191,"category_name":40,"create_tm":192},120930,"Unveiling Key Features: A Comparative Study of Machine Learning Models for Alzheimer's Detection - Thesis","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835245256/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796168519&Signature=MIDp9Hfa6Bz8Gds7GQbym%2BEZ8sY%3D","unveiling-key-features-a-comparative-study-of-machine-learning-models-for-alzheimers-detection-thesis",23,1785732771,{"doc_id":194,"doc_title":195,"file_type":138,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":40,"create_tm":199},125842,"Unveiling non-steady chloride migration insights through explainable machine learning - XML驱动的XGBoost与SHAP特征解析","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229838566638/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796168519&Signature=n%2FeOb2kMdvXDkFHwkliMQrEjYsI%3D","unveiling-non-steady-chloride-migration-insights-through-explainable-machine-learning-feature-analysis-with-xgboost-and-shap",24,1785901531,{"doc_id":201,"doc_title":202,"file_type":138,"home_preview_img_url":203,"slug":204,"view_count":24,"category_name":40,"create_tm":205},681748,"Market Guide for Loyalty Program Vendors","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999178099/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796168519&Signature=LBAAYzQK0%2FTKAyCVNphP2TU2KYw%3D","market-guide-for-loyalty-program-vendors",1793953265,{"doc_id":207,"doc_title":208,"file_type":138,"home_preview_img_url":209,"slug":210,"view_count":191,"category_name":40,"create_tm":211},125123,"Leveraging Machine Learning Models for Customer Churn Prediction in Telecommunications - Insights and Implications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229838410386/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796168519&Signature=%2F297oiNaJaH9f7KOKXFFXQ9VmvE%3D","leveraging-machine-learning-models-for-customer-churn-prediction-in-telecommunications-insights-and-implications",1785896786,{"doc_id":213,"doc_title":214,"file_type":138,"home_preview_img_url":215,"slug":216,"view_count":184,"category_name":40,"create_tm":217},125767,"Prediction of Loan Approval in Banks using Machine Learning Approach - Research Summary","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229838559834/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796168519&Signature=cdOhojJQuGTVITmdUJIHgiMWNCE%3D","prediction-of-loan-approval-in-banks-using-machine-learning-approach-research-summary",1785901099,{"doc_id":219,"doc_title":220,"file_type":138,"home_preview_img_url":221,"slug":222,"view_count":46,"category_name":40,"create_tm":223},127844,"Understanding and predicting lapses in mortgage life insurance using a machine learning approach","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229839457764/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796168519&Signature=XACTkhwE6Tsu%2Fw5BvRq7Dmu%2F%2F84%3D","understanding-and-predicting-lapses-in-mortgage-life-insurance-using-a-machine-learning-approach",1785942301,{"doc_id":225,"doc_title":226,"file_type":138,"home_preview_img_url":227,"slug":228,"view_count":41,"category_name":40,"create_tm":229},122083,"Sentimental Analysis of Movie Tweet Reviews Using Machine Learning Algorithms - 57th Hawaii International Conference on System Sciences","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229836670115/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796168519&Signature=2pim6NDVjJyY0ZnQ1bhv5HnAOV4%3D","sentimental-analysis-of-movie-tweet-reviews-using-machine-learning-algorithms-57th-hawaii-international-conference-on-system-sciences",1785808740]