FY-4A/GIIRS (Geosynchronous Interferometric Infrared Sounder) is the first infrared hyperspectral atmospheric vertical detector in geostationary orbit. Compared to other similar instruments, it has the advantages of high temporal resolution and stationary relative to the ground. Based on the characteristics of GIIRS observation data, we proposed a humidity profile retrieval method. We fully utilized the information provided by the observation and forecast data, and used the two-dimensional brightness temperature data with the dimension of time and optical spectrum as the input of the CNN (convolution neural network model). Then, the obtained brightness temperature data were shown to be more suitable as the input for the physical retrieval method for humidity than the conventional correction method, improving the accuracy of humidity profile retrieval. We performed two comparative experiments. The first experiment results indicate that, compared to ordinary linear correction and ANN (artificial neural network algorithm) correction, our revised observed brightness temperature data are much closer to the simulated brightness temperature obtained by inputting ERA5 reanalysis data into RTTOV (Radiative Transfer for TOVS). The results of the second experiment indicate that the accuracy of the humidity profile retrieved by our method is higher than that of conventional ANN and 1D-Var (one-dimensional variational algorithm). With ERA5 reanalysis data as the reference value, the RMSE (Root Mean Squared Error) of the humidity profiles by our method is less than 8.2% between 250 and 600 hPa. Our method holds the unique advantage of the high temporal resolution of GIIRS, improves the accuracy of humidity profile retrieval, and proves that the combination of machine learning and the physical method is a compelling idea in the field of satellite atmospheric remote sensing worthy of further exploration.