Automated Image-Based Detection and Measurement of Wheal Responses in Skin Prick Test Images
Abstract
Allergic disorders are common conditions caused by immune responses to otherwise harmless substances. The Skin Prick Test (SPT) is commonly employed to evaluate sensitivity to particular allergens, with the development of wheals acting as a significant visible reaction. However, manual identification and measurement of wheal size from SPT images may introduce observer variability. This study presents an automated image-analysis system for detecting and quantitatively measuring wheal responses in SPT images. The system was developed using Streamlit, OpenCV, and Imutils for image preprocessing, colour segmentation, contour detection, reference-based calibration, and wheal measurement. On the 30-image held-out evaluation subset, the mean absolute error between the automated measurements and the available reference measurements was 0.48 ± 0.12 mm. The previously reported detection accuracy and false positive/false negative rates could not be maintained as the source dataset lacked sufficient per-wheal ground truth to reconstruct the TP, FP, FN and TN counts independently. The system is computationally lightweight and operates through a standard web interface without specialized hardware. These findings support the feasibility of automated wheal detection and measurement as a computer-assisted approach to SPT image analysis. The system does not independently diagnose allergy or identify the causative allergen and further validation using independently annotated clinical datasets is required.
Keywords
References
- Shin YH, Hwang J, Kwon R, Lee SW, Kim MS, et al. Global, regional, and national burden of allergic disorders and their risk factors in 204 countries and territories, from 1990 to 2019: A systematic analysis for the Global Burden of Disease Study 2019. Allergy. 2023;78(8):2232–2254. https://doi.org/10.1111/all.15807.
- Sicherer, S.H.; Sampson, H.A. Food allergy: Epidemiology, pathogenesis, diagnosis, and treatment. J. Allergy Clin. Immunol. 2014, 133, 291–307.e5. https://doi.org/10.1016/j.jaci.2013.11.020.
- Heinzerling, L.; Mari, A.; Bergmann, K.C.; Bresciani, M.; Burbach, G.; Darsow, U.; Durham, S.; Fokkens, W.; Gjomarkaj, M.; Haahtela, T.; Todo Bom, A.; Wöhrl, S.; Maibach, H.; Lockey, R. The skin prick test: European standards. Clin. Transl. Allergy 2013 3, 3. https://doi.org/10.1186/2045-7022-3-3.
- Bernstein, I.L.; Li, J.T.; Bernstein, D.I.; Hamilton, R.; Spector, S.L.; Tan, R.; Sicherer, S.; Golden, D.B.K.; Khan, D.A.; Nicklas, R.A.; Portnoy, J.M.; Blessing-Moore, J.; Cox, L.; Lang, D.M.; Oppenheimer, J.; Randolph, C.C.; Schuller, D.E.; Tilles, S.A.; Wallace, D.V.; Levetin, E.; Weber, R. Allergy diagnostic testing: An updated practice parameter. Annals of Allergy, Asthma & Immunology, 2008, 100, S1–S148. https://doi.org/10.1016/S1081-1206(10)60305-5.
- van der Valk, J.P.M.; Gerth van Wijk, R.; Hoorn, E.; Groenendijk, L.; Groenendijk, I.M.; de Jong, N.W. Measurement and interpretation of skin prick test results. Clin. Transl. Allergy 2016, 6, 8. https://doi.org/10.1186/s13601-016-0092-0.
- Litjens, G.; Kooi, T.; Bejnordi, B.E.; Setio, A.A.A.; Ciompi, F.; Ghafoorian, M.; van der Laak, J.A.W.M.; van Ginneken, B.; Sánchez, C.I.. A survey on deep learning in medical image analysis. Med. Image Anal. 2017, 42, 60–88. https://doi.org/10.1016/j.media.2017.07.005.
- Esteva, A.; Kuprel, B.; Novoa, R.A.; Ko, J.; Swetter, S.M.; Blau, H.M.; et al. Dermatologist-level classification of skin cancer with deep neural networks. Nature 2017, 542, 115–118. https://doi.org/10.1038/nature21056.
- Wöhrl, S.; Vigl, K.; Binder, M.; Stingl, G.; Prinz, M. Automated measurement of skin prick tests: An advance towards exact calculation of wheal size. Exp. Dermatol. 2006, 15, 119–124. https://doi.org/10.1111/j.1600-0625.2006.00388.x.
- Pineda, J.; Vargas, R.; Romero, L.A.; Marrugo, J.; Meneses, J.; Marrugo, A.G. Robust automated reading of the skin prick test via 3D imaging and parametric surface fitting. PLoS ONE 2019, 14, e0223623. https://doi.org/10.1371/journal.pone.0223623.
- Justo, X.; Diaz, I.; Gil, J.J.; Gastaminza, G. Medical device for automated prick test reading. IEEE J. Biomed. Health Inform. 2018, 22, 895–903. https://doi.org/10.1109/JBHI.2017.2680840.
- Lee, Y.H.; Shim, J.S.; Kim, Y.J.; Jeon, J.S.; Kang, S.Y.; Lee, S.P.; Lee, S.M.; Kim, K.G. Allergy wheal and erythema segmentation using Attention U-Net. J. Imaging Inform. Med. 2025, 38, 467–475. https://doi.org/10.1007/s10278-024-01075-0.
- Ansotegui, I.J.; Melioli, G.; Canonica, G.W.; Caraballo, L.; Villa, E.; Ebisawa, M.; et al. IgE allergy diagnostics and other relevant tests in allergy: A World Allergy Organization position paper. World Allergy Organ. J. 2020, 13, 100080. https://doi.org/10.1016/j.waojou.2019.100080.
- Chavolla, E.; Zaldivar, D.; Cuevas, F.; Rayas-Sánchez, J.E. Improved Unsupervised Color Segmentation Using a Modified HSV Color Model and a Bagging Procedure in K-Means++ Algorithm. Mathematical Problems in Engineering 2018, 2018, 2786952. https://doi.org/10.1155/2018/2786952
- Canny, J. A computational approach to edge detection. IEEE Trans. Pattern Anal. Mach. Intell. 1986, 8, 679–698. https://doi.org/10.1109/TPAMI.1986.4767851.
- Cortes, C.; Vapnik, V. Support-vector networks. Mach. Learn. 1995, 20, 273–297. https://doi.org/10.1007/BF00994018.
- Maglogiannis, I.G.; Zafiropoulos, E.P. Characterization of digital medical images utilizing support vector machines. BMC Med. Inform. Decis. Mak. 2004, 4, 4. https://doi.org/10.1186/1472-6947-4-4.
- Ronneberger, O., Fischer, P., Brox, T. (2015). U-Net: Convolutional Networks for Biomedical Image Segmentation. In: Navab, N., Hornegger, J., Wells, W., Frangi, A. (eds) Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015. MICCAI 2015. Lecture Notes in Computer Science, vol 9351. Springer, Cham. https://doi.org/10.1007/978-3-319-24574-4_28
- Konstantinou, G.N.; Bousquet, P.J.; Zuberbier, T.; Papadopoulos, N.G. The longest wheal diameter is the optimal measurement for the evaluation of skin prick tests. Int. Arch. Allergy Immunol. 2010, 151, 343–345. https://doi.org/10.1159/000250443.
- Pijnenborg, H.; Nilsson, L.; Dreborg, S. Estimation of skin prick test reactions with a scanning program. Allergy 1996, 51, 782–788. https://doi.org/10.1111/j.1398-9995.1996.tb04467.x.
- Poulsen, L.K.; Liisberg, C.; Bindslev-Jensen, C.; Malling, H.J. Precise area determination of skin-prick tests: Validation of a scanning device and software for a personal computer. Clin. Exp. Allergy 1993, 23, 61–68. https://doi.org/10.1111/j.1365-2222.1993.tb02485.x.
- Holm, O.; Lindell, E.; Malm, L. Colour change in the human histamine wheal made visible by LYYN: A technique to enhance colour differences. Skin Res. Technol. 2010, 16, 385–389. https://doi.org/10.1111/j.1600-0846.2010.00457.x.
- Andersen, H.H.; Lundgaard, A.C.; Petersen, A.S.; Hauberg, L.E.; Sharma, N.; Hansen, S.D.; Elberling, J.; Arendt-Nielsen, L. The lancet weight determines wheal diameter in response to skin prick testing with histamine. PLoS ONE 2016, 11, e0156211. https://doi.org/10.1371/journal.pone.0156211.