Fiber-optic sensors, such as fiber Bragg grating (FBG) sensors and fiber-optic interferometers, have excellent sensing capabilities for industrial, chemical, and biomedical engineering applications. This paper used machine learning to enhance the number of fiber-optic sensing placement points and promote the cost-effectiveness and diversity of fiber-optic sensing applications. In this paper, the framework adopted is the FBG cascading an interferometer, and a deep belief network (DBN) is used to demodulate the wavelength of the sampled complex spectrum. As the capacity of the fiber-optic sensor arrangement is optimized, the peak spectra from FBGs undergoing strain or temperature changes may overlap. In addition, overlapping FBG spectra with interferometer spectra results in periodic modulation of the spectral intensity, making the spectral intensity variation more complex as a function of different strains or temperature levels. Therefore, it may not be possible to analyze the sensed results of FBGs with the naked eye, and it would be ideal to use machine learning to demodulate the sensed results of FBGs and the interferometer. Experimental results show that DBN can successfully interpret the wavelengths of individual FBG peaks, and peaks of the interferometer spectrum, from the overlapping spectrum of peak-overlapping FBGs and the interferometer.