IntroductionThe lighting environment significantly influences fish behavior. This study explores the impact of diverse lighting conditions on the behavior of steelhead trout (Oncorhynchus mykiss) to illuminate the mechanisms underlying their behavioral responses.MethodsThis experiment was set up with six treatments at a constant light intensity of 150 lx: 12h white light + 12h dark (12 W), 12h blue light + 12h dark (12B), 12h red light + 12h dark (12 R), 1.5h blue light + 9h red light + 1.5h blue light + 12h dark (3B9R), 3h blue light + 6h red light + 3h blue light + 12h dark (6B6R), total 12h of blue and red light + 12h dark (T12BR). A multiple object tracking method, YOLOv5 with SORT, was employed to capture the movement trajectory of each fish, quantifying three motion metrics: swimming velocity, swimming angular velocity, and generalized intersection over union.ResultsThe results revealed that fish exposed to 12R light environment showed significantly higher activity levels than other groups. The mixed light environments (3B9R, 6B6R) formed significant differences in behavioral metrics with 12R earlier than pure light environments (12B, 12W, T12BR), indicating sudden light color changes should be avoided. Fish in the 3B9R environment exhibited the lowest activity level but highest growth performance, with the highest specific growth rate of 1.91±0.12 d-1, a value significantly surpassing the lowest recorded rate, supported by a p-value of 0.0054, indicating it is suitable for steelhead trout cultivation.DiscussBehavioral significant differences were observed as early as week eight, much earlier than physiological differences, which became apparent by week 16. Overall, this paper employs computer vision methods to study the impact of different light colors on fish behavior, found that 3B9R is the optimal lighting condition tested and sudden light color changes should be avoided, offering a new perspective on light conditions and behavior in steelhead trout cultivation.