Air quality is a crucial aspect that directly impacts public health and environmental sustainability. The city of Samarinda faces increasingly serious challenges in controlling air pollution due to rising industrial activity, transportation, and infrastructure development. Current air quality monitoring systems remain reactive; daily Air Pollutant Standard Index (ISPU) data are presented merely as descriptive reports, lacking the predictive analysis necessary to anticipate pollutant spikes before they occur. This study employs object clustering and an Artificial Neural Network (ANN) forecasting approach to analyze patterns in air pollutant fluctuations and evaluate model performance in predicting PM10 and PM2.5 concentrations over future periods. Historical pollutant data from November 2024 to December 2025, obtained from the Samarinda City Environmental Agency (DLH), underwent integration, cleaning, capping, and aggregation before being tested across two data frequencies: 30-minute intervals and daily intervals. Four models Autoregressive (AR), static ARIMA, rolling ARIMA, and Extreme Gradient Boosting (XGBoost) were compared using Mean Absolute Percentage Error (MAPE) and Root Mean Squared Error (RMSE) as evaluation metrics. The results indicate that the AR and static ARIMA models produce relatively flat predictions that converge toward the mean due to their linear nature, whereas the rolling ARIMA model captures minor fluctuations through periodic updates with actual data. XGBoost demonstrated the best overall performance, particularly with 30-minute interval data, achieving a MAPE of 10.23% and an RMSE of 4.30 for PM10, and a MAPE of 14.31% with an RMSE of 3.66 for PM2.5. Furthermore, XGBoost proved most effective at preserving the fluctuating characteristics of pollutant data in out-of-sample predictions.