Universidade de Coimbro
Development of an intelligent system for group class scheduling optimisation in gyms
Abstract
dc:description.abstractModern fitness centres operate in highly competitive environments where operational efficiency, effective resource utilisation, and member satisfaction are important factors for their sustainability and success. One of the recurring challenges faced by gym managers concerns the planning of group fitness classes, whose attendance can vary according to factors such as the type of class, timetable, instructor, historical participation patterns, and external conditions. Without reliable mechanisms to anticipate this demand, class schedules may result in overcrowded sessions and low attendance classes, leading to an inefficient allocation of rooms, instructors, and other operational resources.The increasing availability of historical operational data creates an opportunity to address this problem through data-driven forecasting methods. By anticipating the expected attendance of future classes, gym managers can make more informed decisions regarding class planning and resource allocation. This dissertation addresses this challenge within the context of the Koachy project, an innovative digital platform led by the Instituto Pedro Nunes that leverages Artificial Intelligence to enhance gym operations and athlete monitoring. The work focuses on developing an attendance prediction framework for group fitness classes, providing a data-driven foundation for supporting subsequent scheduling and operational decisions. The primary goal of this thesis is to develop and evaluate Machine Learning models capable of predicting gym class attendance with high reliability that are going to contribute in the forming of the Koachy platform. The research followed a structured software engineering methodology, employing the IEEE 830 standard for requirements elicitation and the C4 model for architectural design. A modular system architecture was defined, including components for attendance forecasting and recommendation. To support interoperability, a Representational State Transfer Application Programming Interface was specified using OpenAPI. The implemented Machine Learning pipeline comprised exploratory data analysis, data cleaning, aggregation, categorical transformation, feature engineering, model training, experiment tracking, and evaluation. Several predictive approaches were developed and compared, including Linear Regression, XGBoost, Recurrent Neural Networks, and Long Short-Term Memory networks. MLflow was used to manage the experimentation process and register trained models. Beyond attendance prediction, which estimates the expected number of participants in future classes, an absenteeism detection and recommendation component was developed to identify cases where predicted attendance is unusually low compared with the historical attendance patterns of a class. While the prediction models focus on estimating future participation, the absenteeism component uses these predictions to detect potential attendance reductions, analyse historical instructor and timetable patterns as possible contributing factors, and rank alternative configurations according to historical attendance and variability. An API was also developed to expose the predictive functionality and provide an integration layer between the Machine Learning component and the broader Koachy platform.Following the development of these components, the predictive models were experimentally evaluated and compared. The best experimental configuration was obtained with a Long Short-Term Memory model incorporating weather-related features, achieving a Mean Absolute Error of 3.037 participants, a Root Mean Squared Error of 4.033, and a Coefficient of Determination of 0.547. Considering a mean attendance of 13.73 reservations per class in the test set, the obtained Mean Absolute Error corresponds to approximately 22.12\% of the average attendance, providing additional context for the magnitude of the prediction error. However, due to the relatively limited performance improvement provided by weather-related features and the dependency on an external subscription-based weather forecasting service, a non-weather Long Short-Term Memory configuration was selected for the final inference pipeline. This configuration achieved a Mean Absolute Error of 3.053, a Root Mean Squared Error of 4.080, and a Coefficient of Determination of 0.537. Considering the mean test attendance of 13.73 reservations per class, the Mean Absolute Error corresponds to approximately 22.22\% of the average attendance. Overall, the results remained comparable to those of the best weather-based configuration, while avoiding the additional external dependency and operational cost. The final solution therefore combines predictive modelling, absenteeism detection, recommendation mechanisms, experiment management, and API-based integration, establishing a practical data-driven foundation for future group class scheduling optimisation within the Koachy platform.
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Lancheros, Juan Fernando Rodriguez
- Advisors dc:contributor.advisor
-
- Júnior, Carlos Aparecido Serrato
- Godinho, Noé Paulo Lopes
Subjects
dc:subject × 7Rights
dc:rights- Statement dc:rights
-
- openAccess
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Dc Identifier Tid
- 204414415