A medical information processing apparatus according to an embodiment includes processing circuitry. The processing circuitry is configured to obtain, from among medical data related to subjects, medical data in a specific time period at or earlier than a previous point in time that is earlier by a predetermined length of time than a time of occurrence of a predetermined state change in the subjects. The processing circuitry is further configured to generate, on the basis of information about the medical data in the specific time period, learning-purpose data used for generating a learned model configured to output information about the predetermined state change in a subject being subject to a prediction that may occur at a time later by the predetermined length of time than a time at which a medical service is provided for the subject.