In this study, a sequencing batch reactor (SBR) with aerobic granular sludge (AGS) was operated with synthetic wastewater containing environmental relevant concentrations of 17β-estradiol (E2), 17α-ethinylestradiol (EE2) and sulfamethoxazole (SMX). Despite the presence of the studied PhAC, the granular fraction clearly predominated (TSS gran /TSS ranging from 0.82 to 0.98) throughout the monitoring period, presenting aggregates with high organic fraction (VSS/TSS above 0.83) and good settling characteristics (SVI 5 ranging from 15 to 39 mL/ gTSS). A principal component analysis (PCA) with quantitative image analysis (QIA) based data allowed to distinguish the different operational periods, namely with mature granules (CONT), and the E2, EE2, and SMX feeding periods. It further revealed a positive relationship between the biomass density, sludge settling ability, overall and granular biomass contents, granulation properties, granular biomass fraction and large granules fraction and size. Moreover, a discriminant analysis (DA) allowed to successfully discriminate not only the different operational periods, mainly by using the floccular apparent density, granular stratification and contents data, but also the PhAC presence in samples. The filamentous bacteria contents, sludge settling properties, settling properties stability and granular stratification, structure and contents parameters were found to be crucial for that purpose.