# Introduction irus-caused influenza is one of the most severe viral respiratory infectious disease. Avian influenza of 2003 and the swine flu of 2009 have been among the cases in recent years. Once a highly contagious and lethal strain of influenza virus emerges, it often leads to a pandemic. Therefore, aside from the SARS of 2013 and COVID-19 of 2019-2020, which are also virus-caused, influenza has been the focus of international epidemic prevention and monitoring policy. Because influenza shares many symptoms with the common cold, it is often difficult for a clinician to correctly diagnose the disease in a timely fashion. The standard method for detecting influenza viruses is viral culture and molecular biology testing methods such as RT-PCR, both of which can identify subtypes. Still, both need special equipment and longer testing times. Viral culture takes at least 48 hours, RT-PCR takes 4-6 hours, so clinicians in small clinics, emergency rooms or outpatient settings cannot obtain results in a short period after the examination, resulting in incoherent diagnosis. Consequently, healthcare workers use a series of rapid influenza diagnostic tests (RIDTs) at the point of care. The principle is to detect the surface antigen of influenza virus with known antibodies, and then to interpret with the naked eye in the form of immune chromatographic as says. They are simple to execute and deliver results in less than 30 minutes. They have become an effective way to detect viruses outside the laboratory. Overall, RIDTs had a high specificity of 90-95% but only a modest sensitivity of 50-80%. Studies show the performance of RIDTs depends on the prevalence of influenza virus in the population [1,2]. A study points out RIDTs with a sensitivity of 62.3% compared to the RT-PCR method [3].In the study, RIDTs performed better in influenza A virus detection.64.6% sensitivity in influenza A compare to 52.2% in influenza B. During the 2009 H1N1 pandemic, RIDTs showed 10%-70% sensitivity compared to RT-PCR-based tests [4][5][6][7].Drexler et al. used the BinaxNOW rapid antigenbased testing, reported a sensitivity of 11.1% [8].In the early days of the pandemic, a large study from New York used the RIDTs BinaxNOW influenza A-B test (BinaxNOW), 3M Rapid Detection Flu A-B test (3MA+B) compared to R-Mix culture [9,10] with a sensitivity of 9.6% and 40% respectively. Poor sample quality and inexperience of medical staff may contribute to the low sensitivity. These researches indicate many factor scan affect the sensitivity of RIDTs. It is low in numerous cases, so this study proposes a system to improve detection sensitivity, minimize the human influence, increase efficiency and reduce the demand for screening work force. The test procedure requires the healthcare worker to make a diagnosis if a stripe, no matter how faint it is, appears at the designated position as long as the control line is also visible. In clinical practice, however, there may be cases too vague for the human to make a definite judgment. Figure 3 This study applies machine vision technology to develop an automatic interpretation system for RIDTs to assist healthcare workers in the conduct of influenza virus testing, improve the correctness and efficiency, save workforce, and reduce the risk of misjudgment. Other medical tests currently dependent on the naked eye can also implement similar techniques. # II. # Problem Statement # III. # Hardware Setup A typical optical inspection system includes a camera, a computer, a light source, and other necessary mechanical and electrical components. # Image Processing The captured image, shown in Figure 6, is transmitted to the computer, which analyzes the stripes of the test specimen. The following subsections discuss the image processing techniques employed by the computer program. First, the test pad and the area showing the test lines are identified by image pre-processing. The specimen is overall much brighter than its background. The program separates them by a binary threshold, Figure 7(a). To find the region where the test lines may appear, the image is then processed by the Laplace-of-Gaussian (LoG) operator, Figure 7(b). The edges of possible features are found by the zero-crossing operation, Figure 7(c).The components are joined by the connection operation, Figure 7(d). The software finds the test region by selecting the one with the rectangularity between 0.9 and 1, and an area larger than 5000 pixels, Figure 7 # Conclusion This research studies the implantation of optical inspection in RIDTs and development of a working system. The experimental results show that it can provide useful assistance to the healthcare workers. With more clinical cases, its consistency and sensitivity can be examined. One may also extend the method to similar rapid tests in medical practices, e.g., COVID-19 diagnosis tests. A proper application of optical inspection techniques will reduce the medical staff's workload and possible human errors, in the meantime, increase test sensitivity and consistency. 11![Figure 1 illustrates the procedures for taking an RIDT: (a) Collect the patient's nasopharyngeal specimen through a swap, b. Flush it in a solvent provided by the manufacturer, c. Suck up the fluid using a pipette, then drop it to a specified place on the test pad.](image-2.png "Figure 1 Figure 1 :") 2![Figure 2: Test Results](image-3.png "Figure 2 :") ![displays some examples with faint stripes. Even if one makes a diagnosis, it is nearly impossible to be consistent. This can explain the high false positives during the peak of the influenza season and high false negatives during the low season.](image-4.png "") 3![Figure 3: Some test examples with faint stripes](image-5.png "Figure 3 :") ![Figure 4depicts a CAD model of the one for RIDT.](image-6.png "") 5![a) shows the actual mechanism. A groove is cut in the bedplate to contain the test specimen, as shown in Figure 5(b).](image-7.png "Figure 5 (") 5![c) shows the optical apparatuses in a position to capture the specimen image. The device connects with a computer.](image-8.png "Figure 5 (") 45![Figure 4: A CAD model of the RIDT inspection system](image-9.png "Figure 4 :Figure 5 :") 6![Figure 6: The captured image of a test specimen](image-10.png "Figure 6 :") 7![Figure 7: Image pre-processing of the test specimen b) Identification of Diagnosis Line The camera takes the image of the test specimen every minute. The suggested time for RIDTs inspection is 15 minutes. Figure 8(a) is the image taken after 15 minutes. The test region is identical to the previous step, as shown in Figure 8(b).The gray value is then spread from 0 to 255 to enhance the image. Figure 8(c) portrays the enhanced image. The program identifies lines on the image by using partial derivatives of a Gaussian smoothing kernel; and shows the extracted lines in red, as in Figure 8(d).](image-11.png "Figure 7 :") 8![Figure 8: Specimen Image Processing after 15 minutes c) Gray-value CalculationThe program also calculates the gray changes of the test region. It averages the values of each row in the test region, and subtracts the initial numbers from those of later times. Significant changes in gray value indicate test lines, as illustrated in Figure9. The horizontal axis represents the row position of the test region, as 0 being the top-most row. The vertical axis denotes the difference of gray values between the initial specimen and the specimen after 15 minutes. Three peaks appear in positions that correspond to the three stripes.](image-12.png "Figure 8 :") 910![Figure 9: Gray value variations of the test specimen after 15 minutes](image-13.png "Figure 9 :Figure 10 :") 11![Figure 11: Gray value changes along time at A, B and C line positions](image-14.png "Figure 11 :") © 2020 Global Journals ## Acknowledgment This research is partially supported by Taiwan Taichung Armed Forces General Hospital Medical Service Fund No. 103A23. * Performance of a rapid influenza test in children during the H1N1 2009 influenza outbreak ATCruz GJDemmler-Harrison ACCaviness GJBuffone PARevell Pediatrics 125 2010 * Seasonal influenza in adults and children-diagnosis, treatment, chemoprophylaxis, and institutional outbreak management: Clinical practice guidelines of the Infectious Diseases Society of America SAHarper JSBradley JAEnglund TMFile SGravenstein FGHayden AJMcgeer KMNeuzil ATPavia MLTapper Clin. Infect. Dis 48 2009 * Accuracy of rapid influenza diagnostic tests: A meta-analysis CChartrand MMLeeflang JMinion TBrewer MPai Ann. Intern. Med 156 2012 * Poor clinical sensitivity of rapid antigen test for influenza A pandemic (H1N1) JFDrexler AHelmer HKirberg UReber MPanning MMuller KHofling BMatz CDrosten AMEis-Hubinger virus. Emergy Infect. Dis 15 2009. 2009 * Diagnostic accuracy of a rapid influenza test for pandemic influenza A H1N1 AGordon EVidea SSaborio RLopez GKuan ABalmaseda EHarris PLoS ONE 5 e10364 2010 * Performance of an influenza rapid test in children in a primary healthcare setting in Nicaragua AGordon EVidea SSaborio RLopez GKuan AReingold ABalmaseda EHarris PLoS ONE 4 e7907 2009 * Rapid influenza antigen test for diagnosis of pandemic (H1N1) JKLouie HGuevara EBoston MDahlke MNevarez TKong RSchechter CAGlaser DPSchnurr Emergy Infect. Dis 16 2009. 2010 * Rapid antigen test for pandemic (H1N1) 2009 virus BMDiederen DVeenendaal RJansen BLHerpers EELigtvoet EPIjzerman Emergy Infect. Dis 16 2010 * Evaluation of multiple test methods for the detection of the novel 2009 influenza A (H1N1) during the New York City outbreak CCGinocchio FZhang RManji SArora MBornfreund LFalk MLotlikar MKowerska GBecker DKorologos J. Clin. Virol 45 2009 * Laboratory surge response to pandemic (H1N1) 2009 outbreak JMCrawford RStallone FZhang MGerolimatos DDKorologos CSweetapple MDe Geronimo YDlugacz DMArmellino CCGinocchio Emergy Infect. Dis 16 2010 * Evaluation of rapid influenza diagnostic tests for detection of novel influenza A (H1N1) Virus-United States MMWR Morb. Mortal. Wkly. Rep 58 2009. 2009 CDC * Rapidtest sensitivity for novel swine-origin influenza A (H1N1) virus in humans DJFaix SSSherman SHWaterman N. Engl. J. Med 361 2009 * Laboratory surge response to pandemic (H1N1) 2009 outbreak JMCrawford RStallone FZhang MGerolimatos DDKorologos CSweetapple MDe Geronimo YDlugacz DMArmellino CCGinocchio Emergy Infect. Dis 16 2010 * High sensitivity of a rapid immune chromatographic test for detection of influenza A virus 2009 H1N1 in nasopharyngeal aspirates from young children DNAndresen AMKesson J. Clin. Microbiol 48 2010