The invention discloses a patient hospitalization duration prediction method and device,
electronic equipment and a storage medium. The method comprises the steps of constructing an ordered multi-classification prediction model by utilizing
cascade connection of multiple binary base learners; training each base learner by using the training
data set until each base learner meets the
performance index requirement, and obtaining a trained prediction model; and selecting a to-be-predicted sample according to preset prediction features and inputting the to-be-predicted sample into the trained prediction model to obtain a prediction result. According to the method, a plurality of
binary classification base learners are cascaded and connected in series to construct an ordered multi-classification prediction model, a sequence progressive relationship among classes in an ordered multi-classification
outcome variable is reserved, the ordered classes are not assumed to be equal-ratio relationships, the method is more consistent with real data characteristics, and by splitting a
data set layer by layer, two types of data in the
data set used for training of each layer of base learners are relatively balanced, the problem of
data imbalance among multiple types is effectively solved, and the accuracy of a prediction result is improved.