Abstract
The SARS-CoV-2 pandemic revealed that immunity after infection was temporary, with reinfections occurring. As the pandemic progressed, individuals encountered infection and vaccination in varying sequences and at different time intervals, resulting in heterogeneous patterns of infection, reinfection and vaccination, so-called hybrid immunity. This study analyzed these patterns by grouping individuals based on their infection, reinfection, and vaccination sequences using data from the Biobanque québécoise de la COVID-19 (BQC19). We applied agglomerative and divisive hierarchical clustering on time series representing patients' COVID-19 episodes, using Dynamic Time Warping to compute distances. Their characterization revealed that clusters followed a temporal progression depending on the timing of infection and its positioning across the pandemic waves. On the other hand, reinfections occurred from the fifth wave onward. The most highly vaccinated groups appear to have been infected and consequently reinfected later in the pandemic. Some groups featured a higher proportion of healthcare workers, while for others, the trajectory and their timeframes were decisive. This study highlights the role of vaccination, which is in line with current knowledge. It also shows that, beyond the sequence of events, it is rather their temporality and the delays between them that are of greatest importance. In terms of hybrid immunity, the results of this study suggest that an infection between two vaccines could offer greater immunity.