We combine APOGEE DR17 spectroscopy with Gaia DR3 astrometry to investigate the chemo-dynamical structure of the Milky Way using unsupervised machine learning. After applying strict quality cuts, we selected a high-quality sample of 135,080 giant stars and derived their orbital parameters in the McMillan potential. To mitigate disk dominance, a cut of
$e_{p}$
$>$ 0.25 was applied. Dimensionality reduction with PCA and clustering with K-means were tested across three input spaces: chemical abundances, kinematic parameters, and their combination. The most robust separation of stellar populations is obtained when using chemical abundances alone. The resulting clusters correspond to the thin disk, thick disk, halo, and an accreted component, as revealed in chemical-abundance and Lindbland diagrams. Our results highlight the effectiveness of abundance-driven clustering in disentangling Galactic stellar populations and tracing ex-situ stars, providing a data-driven framework for future studies of Galactic archeology.