Cargando…
Quantification of Digital Body Maps for Pain: Development and Application of an Algorithm for Generating Pain Frequency Maps
BACKGROUND: Pain is an unpleasant sensation that signals potential or actual bodily injury. The locations of bodily pain can be communicated and recorded by freehand drawing on 2D or 3D (manikin) surface maps. Freehand pain drawings are often part of validated pain questionnaires (eg, the Brief Pain...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
JMIR Publications
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9232214/ https://www.ncbi.nlm.nih.gov/pubmed/35749160 http://dx.doi.org/10.2196/36687 |
_version_ | 1784735522967519232 |
---|---|
author | Dixit, Abhishek Lee, Michael |
author_facet | Dixit, Abhishek Lee, Michael |
author_sort | Dixit, Abhishek |
collection | PubMed |
description | BACKGROUND: Pain is an unpleasant sensation that signals potential or actual bodily injury. The locations of bodily pain can be communicated and recorded by freehand drawing on 2D or 3D (manikin) surface maps. Freehand pain drawings are often part of validated pain questionnaires (eg, the Brief Pain Inventory) and use 2D templates with undemarcated body outlines. The simultaneous analysis of drawings allows the generation of pain frequency maps that are clinically useful for identifying areas of common pain in a disease. The grid-based approach (dividing a template into cells) allows easy generation of pain frequency maps, but the grid’s granularity influences data capture accuracy and end-user usability. The grid-free templates circumvent the problem related to grid creation and selection and provide an unbiased basis for drawings that most resemble paper drawings. However, the precise capture of drawn areas poses considerable challenges in producing pain frequency maps. While web-based applications and mobile-based apps for freehand digital drawings are widely available, tools for generating pain frequency maps from grid-free drawings are lacking. OBJECTIVE: We sought to provide an algorithm that can process any number of freehand drawings on any grid-free 2D body template to generate a pain frequency map. We envisage the use of the algorithm in clinical or research settings to facilitate fine-grain comparisons of human pain anatomy between disease diagnosis or disorders or as an outcome metric to guide monitoring or discovery of treatments. METHODS: We designed a web-based tool to capture freehand pain drawings using a grid-free 2D body template. Each drawing consisted of overlapping rectangles (Scalable Vector Graphics <rect> elements) created by scribbling in the same area of the body template. An algorithm was developed and implemented in Python to compute the overlap of rectangles and generate a pain frequency map. The utility of the algorithm was demonstrated on drawings obtained from 2 clinical data sets, one of which was a clinical drug trial (ISRCTN68734605). We also used simulated data sets of overlapping rectangles to evaluate the performance of the algorithm. RESULTS: The algorithm produced nonoverlapping rectangles representing unique locations on the body template. Each rectangle carries an overlap frequency that denotes the number of participants with pain at that location. When transformed into an HTML file, the output is feasibly rendered as a pain frequency map on web browsers. The layout (vertical-horizontal) of the output rectangles can be specified based on the dimensions of the body regions. The output can also be exported to a CSV file for further analysis. CONCLUSIONS: Although further validation in much larger clinical data sets is required, the algorithm in its current form allows for the generation of pain frequency maps from any number of freehand drawings on any 2D body template. |
format | Online Article Text |
id | pubmed-9232214 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | JMIR Publications |
record_format | MEDLINE/PubMed |
spelling | pubmed-92322142022-06-25 Quantification of Digital Body Maps for Pain: Development and Application of an Algorithm for Generating Pain Frequency Maps Dixit, Abhishek Lee, Michael JMIR Form Res Original Paper BACKGROUND: Pain is an unpleasant sensation that signals potential or actual bodily injury. The locations of bodily pain can be communicated and recorded by freehand drawing on 2D or 3D (manikin) surface maps. Freehand pain drawings are often part of validated pain questionnaires (eg, the Brief Pain Inventory) and use 2D templates with undemarcated body outlines. The simultaneous analysis of drawings allows the generation of pain frequency maps that are clinically useful for identifying areas of common pain in a disease. The grid-based approach (dividing a template into cells) allows easy generation of pain frequency maps, but the grid’s granularity influences data capture accuracy and end-user usability. The grid-free templates circumvent the problem related to grid creation and selection and provide an unbiased basis for drawings that most resemble paper drawings. However, the precise capture of drawn areas poses considerable challenges in producing pain frequency maps. While web-based applications and mobile-based apps for freehand digital drawings are widely available, tools for generating pain frequency maps from grid-free drawings are lacking. OBJECTIVE: We sought to provide an algorithm that can process any number of freehand drawings on any grid-free 2D body template to generate a pain frequency map. We envisage the use of the algorithm in clinical or research settings to facilitate fine-grain comparisons of human pain anatomy between disease diagnosis or disorders or as an outcome metric to guide monitoring or discovery of treatments. METHODS: We designed a web-based tool to capture freehand pain drawings using a grid-free 2D body template. Each drawing consisted of overlapping rectangles (Scalable Vector Graphics <rect> elements) created by scribbling in the same area of the body template. An algorithm was developed and implemented in Python to compute the overlap of rectangles and generate a pain frequency map. The utility of the algorithm was demonstrated on drawings obtained from 2 clinical data sets, one of which was a clinical drug trial (ISRCTN68734605). We also used simulated data sets of overlapping rectangles to evaluate the performance of the algorithm. RESULTS: The algorithm produced nonoverlapping rectangles representing unique locations on the body template. Each rectangle carries an overlap frequency that denotes the number of participants with pain at that location. When transformed into an HTML file, the output is feasibly rendered as a pain frequency map on web browsers. The layout (vertical-horizontal) of the output rectangles can be specified based on the dimensions of the body regions. The output can also be exported to a CSV file for further analysis. CONCLUSIONS: Although further validation in much larger clinical data sets is required, the algorithm in its current form allows for the generation of pain frequency maps from any number of freehand drawings on any 2D body template. JMIR Publications 2022-06-24 /pmc/articles/PMC9232214/ /pubmed/35749160 http://dx.doi.org/10.2196/36687 Text en ©Abhishek Dixit, Michael Lee. Originally published in JMIR Formative Research (https://formative.jmir.org), 24.06.2022. https://creativecommons.org/licenses/by/4.0/This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Formative Research, is properly cited. The complete bibliographic information, a link to the original publication on https://formative.jmir.org, as well as this copyright and license information must be included. |
spellingShingle | Original Paper Dixit, Abhishek Lee, Michael Quantification of Digital Body Maps for Pain: Development and Application of an Algorithm for Generating Pain Frequency Maps |
title | Quantification of Digital Body Maps for Pain: Development and Application of an Algorithm for Generating Pain Frequency Maps |
title_full | Quantification of Digital Body Maps for Pain: Development and Application of an Algorithm for Generating Pain Frequency Maps |
title_fullStr | Quantification of Digital Body Maps for Pain: Development and Application of an Algorithm for Generating Pain Frequency Maps |
title_full_unstemmed | Quantification of Digital Body Maps for Pain: Development and Application of an Algorithm for Generating Pain Frequency Maps |
title_short | Quantification of Digital Body Maps for Pain: Development and Application of an Algorithm for Generating Pain Frequency Maps |
title_sort | quantification of digital body maps for pain: development and application of an algorithm for generating pain frequency maps |
topic | Original Paper |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9232214/ https://www.ncbi.nlm.nih.gov/pubmed/35749160 http://dx.doi.org/10.2196/36687 |
work_keys_str_mv | AT dixitabhishek quantificationofdigitalbodymapsforpaindevelopmentandapplicationofanalgorithmforgeneratingpainfrequencymaps AT leemichael quantificationofdigitalbodymapsforpaindevelopmentandapplicationofanalgorithmforgeneratingpainfrequencymaps |