The invention discloses a drug cardiotoxicity detection analysis method based on a myocardial cell sensor. According to the drug cardiotoxicity detection analysis method, a high-performance and low-cost cardiac muscle cell sensor is constructed by adopting ex vivo myocardial cell culture; the change of pulsation images when myocardial cells mechanically pulsate is calculated and detected by adopting algorithms such as image acquisition, conversion of an RGB image into a gray level image, image binaryzation, image matrixing and peak detection, and the mechanical pulsation of the myocardial cells is quantized by using a difference value of the pulsation images, the detection on a rate, an amplitude and a pulsation interval of mechanical pulsation of the myocardial cells is realized; by analyzing the change of the mechanical pulsation state of the myocardial cells over time under the drug action, the cardiotoxicity of a drug is evaluated. Compared with an existing drug cardiotoxicity detection analysis method, the drug cardiotoxicity detection analysis method has the advantages of no marks, no loss, low cost, simple operating steps, and the like, and is capable of observing and evaluating the drug cardiotoxicity simply for a long time.