The invention provides a system for intelligently controlling a sewage plant on the basis of nitrogen balance. The system comprises an anaerobic tank, an oxygen deficiency tank, an aerobic tank, a sedimentation tank, a central control device, a mathematical model, a reflux pump, a gas supply device, a first ammonia and nitrogen measuring instrument, a DO (dissolved oxygen) measuring instrument, an online sludge concentration detecting instrument, a second ammonia and nitrogen measuring instrument, a nitrate nitrogen measuring instrument, a first sludge pump and a second sludge pump. The anaerobic tank, the oxygen deficiency tank, the aerobic tank and the sedimentation tank are sequentially connected with one another, and the reflux pump is arranged between the oxygen deficiency tank and the aerobic tank; the mathematical model is connected with the central control device; the reflux pump, the gas supply device, the first ammonia and nitrogen measuring instrument, the DO measuring instrument, the online sludge concentration detecting instrument, the second ammonia and nitrogen measuring instrument, the nitrate nitrogen measuring instrument, the first sludge pump and the second sludge pump are respectively connected with the central control device, the oxygen deficiency tank is provided with the first ammonia and nitrogen measuring instrument, the aerobic tank is provided with the DO measuring instrument and the online sludge concentration detecting instrument, the second ammonia and nitrogen measuring instrument and the nitrate nitrogen measuring instrument are arranged at the tail end of the aerobic tank, partial sludge in the sedimentation tank can flow back to the anaerobic tank by the aid of the first sludge pump, and the second sludge pump is used for discharging remaining sludge; technological parameters can be optimized by the mathematical model according to reading of the various instruments and set water outlet targets, and accordingly total nitrogen can reach standards. The system has the advantages that parameter optimization can be adjusted in real time, accordingly, the total nitrogen of the sewage plant can reach the level-1 A standards, the standard reaching rate is higher than 97%, and aeration energy consumption can be saved by 10% at least.