# Spatiotemporal prediction of obesity rates and model interpretability analysis from a public health perspective

**Authors:** Weiyan Tan, Bing Geng, XiuGuang Bai

PMC · DOI: 10.1371/journal.pone.0335908 · 2025-11-13

## TL;DR

This paper introduces a new Transformer model for predicting obesity rates, combining time and health data with spatial constraints to improve accuracy and provide interpretable insights for public health.

## Contribution

The novel integration of temporal embeddings with spatially-constrained feature dependencies in a Transformer model for obesity prediction.

## Key findings

- The proposed model outperforms existing models like LSTM and Mamba in predicting obesity rates across multiple states.
- SHAP analysis reveals interpretable feature contributions, aiding in evidence-based public health resource allocation.

## Abstract

This study, focusing on the assessment of obesity prevalence trends in public health management, proposes an improved Transformer model that integrates temporal embeddings with spatially-constrained feature dependencies rather than purely geographic adjacency. Using state-level data from the CDC BRFSS, the method first performs joint temporal–health encoding (JTH) of obesity prevalence time series and health indicators. It then incorporates temporal decay and a learnable spatial constraint matrix (STA) into the attention mechanism, while employing dual-branch consistency training to enhance stability and generalization. We conducted comparative and ablation experiments on ten states, including Alaska and Alabama, and carried out independent validation on unseen states such as Guam and Idaho. The results show that the proposed approach outperforms representative models including MLP, LSTM, 1D-CNN, Mamba, iTransformer, and TimeMixer across metrics such as MAE, RMSE, sMAPE, R2, and MASE. Ablation experiments further demonstrate that JTH and STA contribute complementary improvements to model performance, while independent validation confirmed that the R2 values for all states exceeded 0.84. In addition, SHAP analysis was employed to illustrate the contributions and dependencies of key features, providing interpretable evidence to support, thereby guiding evidence-based resource allocation in obesity prevention and control.

## Linked entities

- **Diseases:** obesity (MONDO:0011122)

## Full-text entities

- **Diseases:** obesity (MESH:D009765)

## Figures

50 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12614583/full.md

---
Source: https://tomesphere.com/paper/PMC12614583