Tridacna spp. are valuable archives for paleoclimate and paleoweather research due to their distinct daily growth patterns and the sensitivity of the daily growth patterns to environment changes. However, manually identifying daily growth lines and measuring the daily growth increment width (DGIW) of Tridacna shells from Laser Scanning Confocal Microscopy (LSCM) images is a tedious task that has become a significant barrier to Tridacna studies. This paper addresses this challenge by integrating machine learning into Tridacna research for the first time to automate the calculation of the number of daily growth lines and DGIW of Tridacna shells. Specifically, we propose an unsupervised generative adversarial attention network called TriGAN to automatically recognize distinct daily growth lines of Tridacna shells from LSCM images. Utilizing modern Tridacna specimens collected from the South China Sea, our experimental results demonstrate that TriGAN can effectively reconstruct the ambiguous and blurred regions in LSCM images and produce higher quality images of daily growth patterns compared to existing image generation networks. Furthermore, the daily growth line number and DGIW of Tridacna shells can be counted automatically from the images recognized by TriGAN, which are in good agreement with the statistical results obtained manually from the original LSCM images (R = 0.7, p < 0.01 for the DGIW profile of T. gigas specimen MD1 and R = 0.6, p < 0.01 for T. derasa specimen XB10). This automated method provides an efficient solution for researching the laminar chronology of Tridacna.