We used ML methods to screen out the blood-specific factors—PDW, LYM, AST/ALT, BUN, and Na+—of bone and joint TB and constructed a diagnostic model to help clinicians better diagnose the disease in the future. The gene discussed is GPT; the disease is tuberculosis.