The present invention relates to a diabetes
early warning system. The
system comprises: a memory; and a first processor, which is based on improved k-means clustering, coupled to the memory, and configured to: according to selected first clustering centroids, obtain stable centroids for individual clusters, and put them in a diabetes piecewise function, thereby obtaining a diabetes
early warning model, wherein the first clustering
centroid is selected by selecting a
data set, defining a clustering cluster number k and a neighborhood
radius ε, and selecting a sample point on which a sum of distances between a sample point Xi and a sample is the greatest as the first clustering
centroid, so as to make the first clustering
centroid fall in a central portion of the corresponding cluster. The present invention improves the clustering centroid method, establishes a diabetes piecewise function
early warning model, improves the diabetes early warning ability, and provides a basis for the diagnosis and treatment of diabetes at different stages. Starting from the characteristics of the diabetes
data set, the key feature variables of diabetes are selected to simplify the diabetes prediction model; and the accuracy of the diabetes prediction model is improved, thereby helping to provide accurate diabetes prevention and treatment measures.