Together with the universally recognized SIR model, several approaches have been employed to understand the contagion dynamics of interacting particles. Here, Active Brownian particles (ABP) are introduced to model the contagion dynamics of living agents that perform a horizontal transmission of an infectious disease in space and time. By performing an ensemble average description of the ABP simulations, we statistically describe susceptible, infected, and recovered groups in terms of particle densities, activity, contagious rates, and random recovery times. Our results show that ABP reproduces the time dependence observed in traditional compartmental models such as the Susceptible-Infected-Recovery (SIR) models and allows us to explore the critical densities and the contagious radius that facilitates the virus spread. Furthermore, we derive a first-principles analytical expression for the contagion rate in terms of microscopic parameters, without considering free parameters as the classical SIR-based models. This approach offers a novel alternative to incorporate microscopic processes into analyzing SIR-based models with applications in a wide range of biological systems.