Tuberculosis (TB) is still a major public health concern in many regions of the world, including Indonesia's West Java Provinces. Accurate TB risk factor prediction can enhance overall TB control efforts by directing focused therapies. In this study, utilizing a combination of Negative Binomial Mixed Models (NBMMs) and Feed-Forward Neural Networks (FFNNs), we offer a unique method for the predictive modeling of TB risk variables. A variety of sociodemographic, behavioral, and environmental factors that are known to be linked to TB are included in the dataset utilized in this investigation. To correct for overdispersion and include both fixed and random effects in the model, we first fitted an NBMM major problem in epidemiological investigations is modeling count data with overdispersion, and the NBMM component of the model offers a versatile and effective framework for doing so. Following that, we include an FFNN component in the model, which helps us to detect relevant predictive features and alter the model's weights accordingly. Backpropagation methods are used by the FFNN to adjust model parameters and enhance accuracy. The resulting Negative Binomial Mixed Model Neural Network (NBMMNN) model has a high accuracy value of up to 0.944. Our research suggests that the NBMMNN model outperforms conventional models that are frequently used to predict TB risk factors. By contrast to simpler models, the NBMMNN model can capture complicated and nonlinear interactions between predictors and outcomes. Additionally, the inclusion of random variables in the model enables us to take into account potential sources of variability in the data as well as unmeasured confounding. This work emphasizes the opportunity to enhance TB risk prediction and control efforts by integrating NBMMs with FFNNs. In West Java Provinces and other comparable contexts, the NBMMNN model might be a helpful tool for identifying and resolving TB risk factors, guiding targeted interventions, and enhancing overall TB control efforts.