KM-DBSCAN: an enhanced density and centroid based border detection framework for data reduction towards green AI Nature