The paper proposes a flexible micro-nano composite piezoelectric thin film. This flexible piezoelectric film is fabricated through electrospinning process, utilizing a combination of 12wt% P(VDF-TrFE), 8wt% KNN nanoparticles, and 0.5wt% GR. Under cyclic loading, the composite film demonstrates a remarkable increase in open-circuit voltage and short-circuit current, achieving values of 36.1 V and 163.7 uA, respectively. These values are 5.8 times and 3.6 times higher than those observed in the pure P(VDF-TrFE) film. The integration of this piezoelectric film into a wearable flexible heartbeat sensor, coupled with the RepMLP classification model, facilitates heartbeat acquisition and real-time automated diagnosis. After training on a dataset of 2000 heartbeat samples, the system exhibits an accuracy nearing 99%. This research substantially enhances the output performance of the piezoelectric film, offering a novel and valuable solution for the application of flexible piezoelectric films in physiological signal detection