Autotrophic and heterotrophic nitrification-anoxic denitrification dominated the anoxic/oxic sewage treatment process during optimization for higher loading rate and energy savings.