With the continuous operation of analog circuits, the component degradation problem gradually comes to the forefront, which may lead to problems, such as circuit performance degradation, system stability reductions, and signal quality degradation, which could be particularly evident in increasingly complex electronic systems. At the same time, due to factors, such as continuous signal transformation, the fluctuation of component parameters, and the nonlinear characteristics of components, traditional fault localization methods are still facing significant challenges when dealing with large-scale complex circuit faults. Based on this, this paper proposes a fault-diagnosis method for analog circuits using the ECWGEO algorithm, an enhanced version of the GEO algorithm, to de-optimize the 1D-CNN with an attention mechanism to handle time–frequency fusion inputs. Firstly, a typical circuit-quad op-amp dual second-order filter circuit is selected to construct a fault-simulation model, and Monte Carlo analysis is used to obtain a large number of samples as the dataset of this study. Secondly, the 1D-CNN network structure is improved for the characteristics of the analog circuits themselves, and the time–frequency domain fusion input is implemented before inputting it into the network, while the attention mechanism is introduced into the network. Thirdly, instead of relying on traditional experience for network structure determination, this paper adopts a parameter-optimization algorithm for network structure optimization and improves the GEO algorithm according to the problem characteristics, which enhances the diversity of populations in the late stage of its search and accelerates the convergence speed. Finally, experiments are designed to compare the results in different dimensions, and the final proposed structure achieved a 98.93% classification accuracy, which is better than other methods.