Accurate measurement of porosity is crucial for comprehensive performance evaluation of thermal barrier coatings (TBCs) on aero-engine blades. In this study, a novel data-driven predictive method based on terahertz time-domain spectroscopy (THz-TDS) was proposed. By processing and extracting features from terahertz signals, multivariate parameters were composed to characterize the porosity. Principal component analysis, which enabled effective representation of the complex signal information, was introduced to downscale the dimensionality of the time-domain data. Additionally, the average power spectral density of the frequency spectrum and the extreme points of the first-order derivative of the phase spectrum were extracted. These extracted parameters collectively form a comprehensive set of multivariate parameters that accurately characterize porosity. Subsequently, the multivariate parameters were used as inputs to construct an extreme learning machine (ELM) model optimized by the sparrow search algorithm (SSA) for predicting porosity. Based on the experimental results, it was evident that the predictive accuracy of SSA-ELM was significantly higher than the basic ELM. Furthermore, the robustness of the model was evaluated through K-fold cross-validation and the final model regression coefficient was 0.92, which indicates excellent predictive performance of the data-driven model. By introducing the use of THz-TDS and employing advanced signal processing techniques, the data-driven model provided a novel and effective solution for the rapid and accurate detection of porosity in TBCs. The findings of this study offer valuable references for researchers and practitioners in the field of TBCs inspection, opening up new avenues for improving the overall assessment and performance evaluation of these coatings.