Processing signals on edge nodes has become a popular trend, which requires data to be stored in terminals and processed, so it has the advantages of low latency, low power consumption and privacy protection. However, due to the limited resources of embedded devices, few studies have made relevant attempts. Our task was to implement a task for atrial fibrillation based on edge devices, using data from the open dataset CinC2017 and CPSC. The classification accuracy is about 90% and the model training can be completed on the edge platform. It is a feasible method to retrain the model by changing the training dataset of equipment.