Microstructures of additively manufactured metal parts are crucial since they determine the mechanical properties. The evolution of the microstructures during layer-wise printing is complex due to continuous re-melting and reheating effects. The current approach to studying this phenomenon relies on time-consuming numerical models such as finite element analysis due to the lack of effective sub-surface temperature measurement techniques. Attributed to the miniature footprint, chirped-fiber Bragg grating, a unique type of fiber optical sensor, has great potential to achieve this goal. However, using the traditional demodulation methods, its spatial resolution is limited to the millimeter level. In addition, embedding it during laser additive manufacturing is challenging since the sensor is fragile. This paper implements a machine learning-assisted approach to demodulate the optical signal to thermal distribution and significantly improve spatial resolution to 28.8 µm from the original millimeter level. A sensor embedding technique is also developed to minimize damage to the sensor and part while ensuring close contact. The case study demonstrates the excellent performance of the proposed sensor in measuring sharp thermal gradients and fast cooling rates during the laser powder bed fusion. The developed sensor has a promising potential to study the fundamental physics of metal additive manufacturing processes.