The tensile strength (TS) of compacted ribbon is a critical quality attribute in the roller compaction process that impacts the quality of the finished product. This study investigated the use of Near Infrared Hyperspectral Imaging Spectroscopy (NIR-HIS) technology for predicting TS of compacted ribbons, considering the effects of surface curvature, different spectral preprocessing methods, and variable selection methods on a predictive model based on Partial Least Squares regression (PLSr). The spectral preprocessing methods evaluated were Mean Centering (MC) and Standard Normal Variate (SNV). The variable selection methods were Filter by Regression Coefficient (REG), Variable Importance in Projection (VIP), Competitive Adaptive Reweighted Sampling (CARS), and Genetic Algorithm (GA). The results indicated that curved surfaces had no significant impact on the predictive performance of the model (p-value of 0.39 for RMSEP). The PLSr-CARS method, combined with MC spectral preprocessing, was successful in selecting and reducing the number of wavelengths from 182 to 5, as indicated by high values of R2pred and RPD, and a low RMSEP value (0.97, 5.75, and 7.60%, respectively). An MLR model using the 5 wavelengths was also developed, showing similar performance to the PLSr model. Both the MLR and PLSr models demonstrated high predictive accuracy and reliability. These models can perform well even when developed using only a few wavelengths, leading to significant reductions in processing time and measurement costs, making them valuable tools for quality control in the pharmaceutical industry.