Bioresorbable magnesium scaffolds are a promising future treatment option for coronary artery stenosis, especially for young adults. Due to the degradation of these scaffolds (<1 year), long-term device-related clinical events could be reduced compared to treatments with conventional drug eluting stents. First clinical trials indicate a return of vasomotion after one year, which may be associated with improved long-term clinical outcomes. However, even after decades of development, the degradation process, ideal degradation time and biological response in vivo are still not fully understood.The present study investigates the in vivo degradation of magnesium scaffolds in the coronary arteries of pigs influenced by different strut thicknesses and the presence of antiproliferative drugs. Due to high 3D image contrast of synchrotron-based micro-CT with phase contrast (SR-μCT), a qualitative and quantitative evaluation of the degradation morphology of magnesium scaffolds was obtained. For the segmentation of the μCT images a convolutional network architecture (U-net) was exploited, demonstrating the huge potential of merging high resolution SR-μCT with deep learning (DL) supported data analysis.In total, 30 scaffolds, made of the rare earth alloy Resoloy®, with different strut designs were implanted into the coronary arteries of 10 domestic pigs for 28 days using drug-coated or uncoated angioplasty balloons for post-dilatation. The degradation morphology was analyzed using scanning electron microscopy, energy dispersive x-ray spectroscopy and SR-μCT. The data from these methods were then related to data from angiography, optical coherence tomography and histology.A thinner strut size (95 vs. 130 μm) and the presence of paclitaxel indicated a slower degradation rate at 28 d in vivo, which positively influences the late lumen loss (0.5 and 0.6 mm vs. 1.0 and 1.1 mm) and recoil values (0 and 1.7% vs. 6.1 and 22%).