The occurrence of Phaeocystis globosa blooms poses a potential hazard to both human society and the ecological environment, particularly concerning the safety of cooling systems in coastal nuclear power plants. However, current ecological monitoring techniques fail to dynamically detect the densities of solitary cells of Phaeocystis globosa prior to the blooms, thus hindering timely interventions. This study proposes a framework for harmful algae monitoring by integrating underwater microscopic imaging, image processing, and object detection. Flume experiments were conducted using Phaeocystis globosa as the case study for monitoring objects. The results indicate that the proposed framework exhibits favorable performance in recognizing different types of algae, particularly in distinguishing between Phaeocystis globosa and Chlorella . Despite their similar morphology observed from the underwater imaging device under dark-field illumination, the false detection rate between Phaeocystis globosa and Chlorella approaches 0% when using the YOLOv8 object detection model. Adaptive contrast enhancement (ACE) amplifies the color discrepancies among algae and eliminates the virtual focus interference, thus improving the precision of algae classification. Subsequently, dark channel prior (DCP) reduces the noise caused by image scattering and limits the missed detection. Consequently, the precision of Phaeocystis globosa recognition using the YOLOv8 model is increased from 74% to 91%. This study presents an effective solution for in situ monitoring of specific harmful algae, which has the potential to enhance the capabilities for dynamic detection and early warning of Phaeocystis globosa blooms.