Lidar is an effective remote sensing method to obtain the vertical distribution of aerosols, and how to select the aerosol extinction-backscattering ratio (AE-BR) during the inversion process is a key step to guarantee the accuracy of the lidar inversion of aerosol optical thickness (AOD) and aerosol extinction coefficient profile (AECP). In this paper, an inversion algorithm for AOD and AECP based on a genetic BP (GA-BP) neural network is proposed. Simultaneous measurements are carried out using CE318 sun photometer and lidar, and the mapping relationship between the lidar echo signal and AOD is established based on the genetic BP (GA-BP) neural network method, which achieves the accurate inversion of AOD with an absolute error mean value of 0.0156. Based on the AOD output from the GA-BP neural network, the real-time best AE- BR to improve the inversion accuracy of AECP. Finally, practical tests show that the method achieves accurate inversion of AOD, determines the range of AE-BR from 20-50sr, realizes real-time dynamic correction of AECP, and has strong generalization ability and applicability in practical situations.