Artificial Intelligence Readiness in Kenya’s Public Sector: A Machine Learning and Principal Component Analysis of AI Readiness in Embu County
Abstract
Overall readiness was high (M = 4.2). It was driven by strong psychological willingness (M = 4.5) and perceived ICT infrastructure (M = 4.4), but constrained by weaker institutional enablers: resource allocation (M = 3.7), innovation culture (M = 3.8) and AI governance rules (M = 3.9).
On the composite target, the Random Forest was the strongest model overall (r = 0.9742; R² = 0.9491; MAE = 0.0969; RMSE = 0.1340; exact-match accuracy = 97.37%). The BPNN was a very close second (r = 0.9621; R² = 0.9257; MAE = 0.0972; RMSE = 0.1243; exact-match accuracy = 86.84%). Although the BPNN achieved a marginally lower RMSE (0.1243 versus 0.1340), indicating fewer large errors, the Random Forest was selected as the best overall model on the basis of three complementary criteria: (i) a higher Pearson correlation and R², meaning it explained a greater proportion of variance in the composite readiness score; (ii) a substantially higher exact-match and threshold-based accuracy (97.37% versus 86.84%), which is the more relevant metric for a diagnostic readiness dashboard where correct classification of respondents into readiness bands matters more than minimising average squared error; and (iii) greater cross-validated stability, with lower fold-to-fold variability in r and MAE. The BPNN's lower RMSE reflects a smoother error distribution, but its lower classification accuracy and higher instability across folds make it less suitable for practical deployment. The Decision Tree trailed substantially (r = 0.8462; R² = 0.7161; MAE = 0.2045; RMSE = 0.2550).
At the item level, no single model dominated: CART performed best for Resources (r = 0.953 ± 0.075) and Technical Training (r = 0.950), RF for Leadership (r = 0.912 ± 0.023), and regularised radial-basis regression for Digital Decision-Making (r = 0.809 ± 0.046). A consistent structural pattern emerged. Organisational items were tightly inter-correlated and highly predictable (CV r ≈ 0.85–0.95), whereas individual AI confidence, willingness and verification behavior were largely independent of the workplace environment (CV r ≈ 0.10–0.58). Principal component analysis yielded four interpretable dimensions: Infrastructure and Governance; Training and Digital Capability; Skills–Opportunity Constraint; and Leadership versus Individual AI Skill. The findings support ensemble and neural learners as reliable diagnostic tools for appraising AI readiness in devolved government. They also show that Embu County's readiness gap is institutional rather than attitudinal, so county interventions should prioritise resource allocation, a clear AI policy framework and innovation incentives over further general training.
Keywords
Full Text:
PDFReferences
Breiman, L. (2001). Random forests. Machine Learning, 45(1), 5–32.
Breiman, L., Friedman, J. H., Olshen, R. A., & Stone, C. J. (1984). Classification and Regression Trees. Wadsworth.
Cortes, C., & Vapnik, V. (1995). Support-vector networks. Machine Learning, 20(3), 273–297.
Hotelling, H. (1933). Analysis of a complex of statistical variables into principal components. Journal of Educational Psychology, 24(6), 417–441.
Jia, X., Morel, G., Martell-Flore, H., Hissel, F., & Batoz, J. L. (2016). Fuzzy logic based decision support for mass evacuations of cities prone to coastal or river floods. Environmental Modelling & Software, 85, 1–10.
Jolliffe, I. T. (2002). Principal Component Analysis (2nd ed.). Springer.
Kingma, D. P., & Ba, J. (2015). Adam: A method for stochastic optimization. Proceedings of the 3rd International Conference on Learning Representations (ICLR).
Mousavi, A., Ozturk, P., & Chau, K. W. (2018). Flood prediction using machine learning models: Literature review. Water, 10(11), 1536.
Pearson, K. (1901). On lines and planes of closest fit to systems of points in space. Philosophical Magazine, 2(11), 559–572.
Reisenbichler, M., Bui, M. D., Skublics, D., & Rutschmann, P. (2019). An integrated approach for investigating the correlation between floods and river morphology: A case study of the Saalach River, Germany. Science of the Total Environment, 647, 814–826.
Rumelhart, D. E., Hinton, G. E., & Williams, R. J. (1986). Learning representations by back-propagating errors. Nature, 323(6088), 533–536.
Sivakumar, S. S. (2015). Flood mitigation strategies adopted in Sri Lanka: A review. International Journal of Scientific and Engineering Research, 3(6).
Zadeh, L. A. (1965). Fuzzy sets. Information and Control, 8(3), 338–353.
Zhong, M., Wang, J., Gao, L., Lin, K., & Hong, Y. (2019). Fuzzy risk assessment of flash floods using a cloud-based information diffusion approach. Water Resources Management, 33(7), 2537–2553.
DOI: http://dx.doi.org/10.52155/ijpsat.v59.2.8768
Refbacks
- There are currently no refbacks.
Copyright (c) 2026 Meshack Owira Amimo

This work is licensed under a Creative Commons Attribution 4.0 International License.

















