The invention discloses a YOLOv8
cryptococcus polymorphic detection and counting method and
system based on
hypergraph calculation, the method uses a YOLOv8 model based on
hypergraph calculation to carry out
cryptococcus polymorphic detection and counting, and the method comprises the following steps: obtaining a
cryptococcus image to be detected and counted; the CSPDarknet
backbone network is used for carrying out
feature extraction on the cryptococcus polymorphic image; the neck network based on
hypergraph calculation performs adaptive detection on cryptococcus with different morphological characteristics, and introduces an attention mechanism to enhance the
perception ability of the model to a target; the head network generates a density
estimation graph; the adaptive density fusion network aggregates coarse-grained cryptococcus density information; optimizing density
estimation based on a
loss function of distributed supervision; and outputting detection and counting results. According to the method, adaptive detection of the cryptococcus with different morphological characteristics is realized through hypergraph calculation, automatic counting of the cryptococcus is realized through counting of the density map
estimation graph, and the accuracy of feature counting of significant morphological differences and dense small targets presented by the cryptococcus image is high.