The method of classifying a heart rate type comprises the steps of obtaining a data set including a plurality of heart rate waveform data, generating input data related to a heart rate waveform for learning from the data set, and inputting the generated input data as an input of the learning heart rate waveform. Generating a learning model using the type of heartbeat as an output, determining a loss weight for each batch sampled from the data set, and determining a loss function based on the loss weight for each batch. And classifying a heartbeat type of the heartbeat waveform for testing by learning a learning model and inputting a heartbeat waveform for testing into the learning model.심장 박동 타입 분류 방법은 복수의 심박 파형 데이터를 포함하는 데이터셋을 획득하는 단계, 상기 데이터셋으로부터 학습용 심박 파형에 관한 입력 데이터를 생성하고, 상기 생성된 입력 데이터를 입력으로 하고 상기 학습용 심박 파형의 심장 박동의 타입을 출력으로 하는 학습 모델을 생성하는 단계, 상기 데이터셋으로부터 샘플링된 각 배치(batch)에 대한 손실 가중치를 결정하고, 상기 각 배치에 대한 손실 가중치에 기초하여 손실 함수를 결정함으로써 상기 학습 모델을 학습시키는 단계 및 검사용 심박 파형을 상기 학습 모델에 입력하여 상기 검사용 심박 파형의 심장 박동의 타입을 분류하는 단계를 포함한다.