Upon applying RCS regression adjusted for confounders specified in Model 3, nonlinear associations with positive trends were identified between AF risk and both the TyG index and AIP (overall and nonlinear P-values < 0.001; Fig 2a and b). Here, AIP is linked to atrial fibrillation.