$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
The cardiac mechanical function experiments are performed using the Langendorff apparatus, as shown in Figure 1A (Top). The monitoring and optical systems enable video recording when illumination control is triggered, as shown in Figure 1A (Bottom). Figure 1C illustrates the external view of the thermostatically controlled cabinet, designed to maintain the heart isolated from ambient thermal fluctuations and light. As depicted in Figure 1B, the isolated heart is positioned as a reference object in the experimental setup comprising Langendorff, optical system, and stimulation systems.
As shown in Figure 2A, the isolated heart was positioned to obtain a clear frontal view of the atria and ventricles under retrograde perfusion. The use of the drainage base (Supplementary File 1, drainage system) was essential for attenuating motion artifacts generated by dripping perfusion fluid and for stabilizing the acquired signals. The stimulation protocols consisted of pulse trains (2 V, 7 ms) at frequencies ranging from 360 to 720 bpm, each lasting 30 s.
The optical system records changes in the heart area (HA). This dynamic signal also allows the time interval between peaks (IAA) to be obtained (inset in Figure 2B). Model viability was assessed by comparing the average heart rate before (Start) and after (End) the stimulation protocol in a cohort of n = 6 hearts. There were no significant differences in average heart rates (Start: 385 ± 38 BPM vs. End: 372 ± 18 BPM, Student’s t-test P > 0.05), indicating that the experimental procedure did not affect cardiac function (Figure 2B).
Figure 2C presents the frequency response of the heart to seven different stimulation frequencies, demonstrating a clear linear relationship2 (R2 = 0.98 ± 0.01, 1:1 mode). The minimum pacing value is constrained by the physiological characteristics of the mouse (360 bpm)22,23. The Langendorff-perfused heart exhibits a tachycardic profile. Representative pacing stimuli and corresponding responses are depicted in the insets of Figure 2C.
Subsequently, to evaluate the dynamics of the heart chambers, specific segmentation techniques are implemented. Parameters of ventricular shortening were obtained from optical recordings (Figure 3A). The inset in Figure 3A shows the normalized ventricular shortening. From this dynamical signal, four parameters are obtained: amplitude of ventricular shortening (VA), time interval between ventricular contractions (IVV), duration of ventricular contraction (DVE), and duration of ventricular relaxation (DVW).
Figure 3B shows the amplitude of ventricular shortening for seven pacing values. Blue bars represent this study. Orange bars correspond to data obtained with the auxotonic recording method2. Statistical analysis performed using two-way ANOVA followed by the Sidak test was applied. The ventricular shortening amplitude (VA) for higher pacing values, 600 PPM and 660 PPM, increases significantly (P < 0.05*, P < 0.005**), respectively. VA (ref. 15 vs. 360 P > 0.05, ref. 15 vs. 420 P > 0.05, ref. 15 vs. 480 P > 0.05, ref. 15 vs. 540 P > 0.05, ref. 15 vs. 600 P < 0.005, ref. 15 vs. 660 P < 0.05, ref. 15 vs. 720 P > 0.05).
To obtain the atrial area, particular segmentation techniques are implemented (Figure 3C). An ROI is defined in each atrium. Figure 3D shows the atrial average signal and ventricular shortening. From this dynamical signal, two parameters are obtained: atrial amplitude (AA) and the time interval between atrial contractions (IAT). By comparing ventricular and atrial signals, the delay between the atria and ventricular events (AVD) is obtained.

Figure 1. Experimental setup for the Langendorff isolated heart and optical system mounted in a cabinet. (A) Schematic diagram of the constant-flow retrograde Langendorff perfusion system coupled to an optical system. The Langendorff system (Top) includes: (1) a reservoir containing continuously oxygenated Tyrode solution. The perfusate temperature is maintained at 37 °C by a (2) thermal bath reservoir and (5) serpentine recirculator. (3) Peristaltic perfusion pump ensures a constant flow of 3 mL/min. (8) A drainage system removes the solution. (4) The cooling coil serves as both a heat exchanger and a bubble trap. Pressure monitoring and electrical pacing applications are controlled by (6) the monitoring system. The optical system (bottom) includes the synchronization between (11) the lighting control, (10) the high-speed camera with a telecentric lens, and two light sources (LEDs). The camera lens allows manual focusing on a range of 100–200 mm. (9) Two LEDs, coupled with a plano-convex lens (LI), illuminate the heart homogeneously. Pacing data are recorded using the monitoring and stimulation application (Supplementary File 11). (7) The controller PC is connected to the camera and the monitoring and stimulation application to simultaneously record the data (video and electrical pacing). (B) Cabinet interior view. The heart's vertical position is shown through the reference object. Other elements of the Langendorff apparatus are shown. (C) Cabinet exterior view. The cabinet is thermally insulated, and the black interior and exterior walls minimize reflections and ambient light. The computer running monitoring and video acquisition applications is shown. Abbreviations: LC = telecentric lens; LEDs = light-emitting diodes; LI = illumination lens; PC = personal computer. Please click here to view a larger version of this figure.

Figure 2. Mouse heart mounted and optical system validation. (A) A frontal heart view showing atria, ventricles, pacing, and ECG electrodes. The image corresponds to a frame at 420 bpm pacing (Supplementary Movie 1). The inset shows pacing applied. The video was acquired between 5 and 25 sof the stimulation protocol. (B) Heart viability test. Two videos are recorded to obtain the oscillation frequency, one before and one after applying the pacing protocol. The response frequency is calculated. Student’s t-test was applied (P > 0.05). The difference between groups is not significant. The data are presented as mean values ± standard deviation (n = 6). The inset shows the heart area (HA) obtained from protocol step 9.3 and the pacing applied. (C) Heart rate response to pacing applied. Blue bars indicate the heart response to seven pacing values (R2 = 0.98 ± 0.01). Orange bars correspond to the data reported by Peña-Romo2. The inset shows typical response traces. Statistical analysis was performed using two-way ANOVA followed by the Sidak test. The difference between groups is not significant (P > 0.05). The data are presented as mean values ± standard deviation (n = 6). Abbreviations: ANOVA = analysis of variance; BPM = beats per minute; ECG = electrocardiogram; HA = heart area; PPM = pulses per minute. Please click here to view a larger version of this figure.

Figure 3. Analysis of atrial and ventricular mechanical response. (A) Ventricular shortening. The image corresponds to a frame at 420 bpm pacing (Supplementary Movie 1). A red ellipse permits the estimation of ventricular shortening (VS) (Supplementary Movie 2). VS is calculated by averaging the maximum and minimum values over a set of 10–20 lines along the major axis (NV; orange lines). The normalized ventricular shortening is shown in the inset. A set of parameters can be obtained: shortening duration (DVE), relaxation duration (DVW), time interval between ventricular contractions (IVV), and ventricular shortening amplitude (VA). (B) Cardiac response amplitude, VA as a function of pacing is shown. Blue bars represent this study. Orange bars correspond to data obtained with the auxotonic recording method2. Statistical analysis performed using two-way ANOVA followed by the Sidak test was applied. The amplitude of ventricular shortening (VA) for higher pacing values, 600 PPM and 660 PPM, increases significantly (P < 0.05*, P < 0.005**), respectively. VA (ref. 15 vs. 360 P > 0.05, ref. 15 vs. 420 P > 0.05, ref. 15 vs. 480 P > 0.05, ref. 15 vs. 540 P > 0.05, ref. 15 vs. 600 P < 0.005, ref. 15 vs. 660 P < 0.05, ref. 15 vs. 720 P > 0.05). The data are presented as mean values ± standard deviation (n = 6). (C) Atrial segmentation. The image corresponds to a frame at 420 bpm pacing (Supplementary Movie 1). The image illustrates the regions of interest applied to the right atrium (yellow circle) and the left atrium (blue circle). The atrial mechanical signal is obtained by averaging both ROIs. (D) Atrial and ventricular dynamics. Averaged atrial area (black line), ventricular shortening (blue line) normalized responses, and pacing (red line) at 420 bpm are shown. A set of parameters can be obtained: the time interval between atrial contractions (IAT), average atrial amplitude (AA), and atrial-ventricular delay (AVD). Abbreviations: AA = atrial amplitude; ANOVA = analysis of variance; AVD = atrial-ventricular delay; DVE = ventricular shortening duration; DVW = ventricular relaxation duration; IAT = atrial-atrial interval; IVV = interventricular interval; NV = number of ventricular lines; PPM = pulses per minute; ROI = region of interest; VA = ventricular shortening amplitude; VS = ventricular shortening. Please click here to view a larger version of this figure.
Supplementary Movie 1. Video under 420 PPM stimulation. Recording of an isolated mouse heart captured at a spatial resolution of 200 x 200 subpixels and a temporal resolution of 750 fps. Abbreviations: fps = frames per second; PPM = pulses per minute.Please click here to download this file.
Supplementary Movie 2. Representative video of the ellipse estimation for ventricular shortening. Demonstration of the segmentation algorithm using the recording from Supplementary Movie 1, resampled at 75 fps. Abbreviation: fps = frames per second.Please click here to download this file.
Supplementary Figure S1. Variability analysis of heart area intervals. (A) Basal state without stimulation, (B) 360 PPM, (C) 420 PPM, and (D) 480 PPM. Short-term and long-term variability were calculated as the dispersion relative to the data mean, as shown by the red ellipse. Abbreviations: IAA = heart area interval; PPM = pulses per minute; SD1 = short-term variability; SD2 = long-term variability.Please click here to download this file.
Supplementary Figure S2. Variability analysis of heart area intervals. (A) 540 PPM, (B) 600 PPM, (C) 660 PPM, and (D) 720 PPM. Short-term and long-term variability were calculated as the dispersion relative to the data mean, as indicated by the red ellipse. Abbreviations: IAA = heart area interval; PPM = pulses per minute; SD1 = short-term variability; SD2 = long-term variability.Please click here to download this file.
Supplementary Figure S3. Temporal graph of normalized signals obtained from contractile dynamics. The applied stimulus was 420 PPM (red), and the responses include the global heart area (black), ventricular shortening (blue), and atrial area dynamics (yellow). Abbreviation: PPM = pulses per minute.Please click here to download this file.
Supplementary Files 1–11. Algorithms and technical documentation. Compressed folder containing: 1) Images and specifications of the 3D-printed parts. 2) Detailed guides for the camera acquisition software. 3) Detailed guides for the monitoring and pacing applications. 4) Computational program for video normalization and segmentation (steps 9.1–9.2). 5) Computational program to calculate the global mechanics of the heart (step 9.3). 6) Computational program for the segmented calculation of ventricular mechanics (step 9.4). 7) Computational program for segmentation of atria mechanics (step 9.5). 8) Computational program for calculating atrioventricular delay (step 9.6). 9) Electrical pacing applied to Supplementary Movie 1. 10) Detailed guide on the operation of computational programs (Files 4–7). 11) The monitoring and pacing application. Additionally, there are five external functions (AumCont, filterPeaks, FucCordenada, FucMaskIm, FucPoincare) that are required for the computational programs to operate.Please click here to download this file.