{'fraction_non_alphanumeric': 0.010398613518197574, 'fraction_numerical': 0.008665511265164644, 'mean_word_length': 5.311475409836065, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A Fuzzy Logic Controller to Calibrate Color Parameters of a Microscope Camera in Order to Improve Safranin Detection in Digital Images

This work proposes a fuzzy logic controller aimed to calibrate a digital microscope camera in order to improve the detection of an area stained with safranin in a biological reference sample. The proposed method modulates the acquisition parameters of the device in order to avoid the impact of external noise, which can produce contradictory results in a test-retest validation of the same standard sample. The tests performed show that the proposed method improves the performance of the computational algorithms that aim to detect safranin in microscope images in the presence of varying lighting scenarios and noise. The results were obtained by measuring the correlation between the levels of safranin obtained by chemical tests (Klason test) and those obtained by the detection algorithm. The Pearson correlation coefficient was employed, achieving an average value of 0.7324 without the calibration process and 0.9756 with the utilization of the calibration process that incorporated the fuzzy logic controller.