Automated Detection of Self-Harm Wounds Using Deep Learning and Image Processing in Forensic Medicine

{"Background":[0],"and":[1,9,47,84,94,135,146,163,197,199,232,267,279,310,346,354,358,395],"Objective:":[2],"Self-harm":[3,126,128,173],"is":[4,21],"a":[5,33,111,161,184,233,255,259,302,366,391],"psychologically":[6],"damaging":[7],"behavior,":[8],"its":[10,288],"accurate":[11],"differentiation":[12,29],"from":[13,119,335],"other":[14,336],"wounds":[15,98,334],"(violence,":[16],"accidents,":[17],"burns,":[18],"diabetic":[19],"ulcers)":[20],"critically":[22],"important":[23],"in":[24,99,290,307,312,331,388,403],"forensic":[25,101,116,321,348,371,386,404],"medicine.":[26,405],"However,":[27],"this":[28,77],"often":[30],"falls":[31],"into":[32,123,380],"diagnostic":[34],"\\"gray":[35],"zone,\\"":[36],"where":[37],"traditional":[38],"visual":[39,357],"inspection":[40],"methods":[41],"are":[42,48],"time-consuming,":[43],"require":[44],"high":[45,57],"expertise,":[46],"prone":[49],"to":[50,63,75,82,143,152,206,215,294,342],"subjective":[51],"error.":[52],"In":[53],"Iran,":[54,389],"despite":[55],"the":[56,64,92,172,179,217,239,243,248,284,295,298,315,376,397],"volume":[58],"of":[59,96,113,219,230,236,257,261,265,270,305,317],"self-harm":[60,97,285,333,382],"cases":[61],"referred":[62],"Forensic":[65],"Medicine":[66],"Organization,":[67],"no":[68],"comprehensive":[69],"automated":[70,87,381],"solution":[71],"has":[72],"been":[73],"developed":[74],"address":[76,156],"challenge.":[78],"This":[79,373],"study":[80,374],"aims":[81],"design":[83],"evaluate":[85,216],"an":[86,227,263,268],"deep":[88,340],"learning":[89,341],"system":[90,327],"for":[91,171,283,320,361,370,399],"detection":[93,383],"classification":[95],"real-world":[100],"images.":[102],"Methods:":[103],"A":[104,209],"pre-trained":[105],"ResNet18":[106,211],"model":[107,225,249,273,300,362],"was":[108,176,213],"fine-tuned":[109,299],"on":[110,238],"dataset":[112],"2,292":[114],"real":[115,385],"images":[117,138,387],"collected":[118],"case":[120],"files,":[121],"categorized":[122],"six":[124],"classes:":[125],"(Yes),":[127],"(No),":[129],"Burn,":[130],"Diabetic":[131],"Ulcer,":[132],"Infectious":[133],"Wound,":[134],"Non-wound.":[136],"All":[137],"underwent":[139],"standardized":[140],"preprocessing":[141],"(resizing":[142],"150×150,":[144],"normalization)":[145],"augmentation":[147],"(flips,":[148],"color":[149],"jitter,":[150],"rotation)":[151],"enhance":[153],"generalization.":[154],"To":[155],"class":[157,168,246],"imbalance,":[158],"we":[159],"employed":[160],"WeightedRandomSampler":[162],"Focal":[164],"Loss":[165],"with":[166,183,254],"adjusted":[167],"weighting":[169],"(1.5×":[170],"class).":[174],"Training":[175],"conducted":[177],"using":[178,195,204,384],"AdamW":[180],"optimizer":[181],"(lr=0.001)":[182],"OneCycleLR":[185],"scheduler":[186],"over":[187],"30":[188],"epochs.":[189],"The":[190,223,272,325,350],"model's":[191],"decisions":[192],"were":[193,202],"interpreted":[194],"Grad-CAM":[196],"LIME,":[198],"feature":[200,322],"representations":[201],"analyzed":[203],"t-SNE":[205],"ensure":[207],"explainability.":[208],"frozen":[210,296],"baseline":[212],"compared":[214],"effectiveness":[218],"full":[220],"fine-tuning.":[221],"Results:":[222],"proposed":[224,326],"achieved":[226,274],"overall":[228,308],"accuracy":[229,309],"71.0%":[231],"weighted":[234],"F1-score":[235,264],"0.7158":[237],"validation":[240],"set.":[241],"For":[242],"primary":[244],"target":[245],"(Self-harm),":[247],"demonstrated":[250],"strong":[251,329],"discriminative":[252],"power":[253],"precision":[256],"0.745,":[258],"recall":[260],"0.767,":[262],"0.756,":[266],"AUC":[269],"0.926.":[271],"only":[275],"6":[276],"false":[277,281],"positives":[278],"3":[280],"negatives":[282],"class,":[286],"confirming":[287],"reliability":[289],"critical":[291,392],"cases.":[292],"Compared":[293],"baseline,":[297],"showed":[301],"significant":[303],"improvement":[304],"19.8%":[306],"36.3%":[311],"F1-score,":[313],"highlighting":[314],"importance":[316],"layer-specific":[318],"adaptation":[319],"extraction.":[323],"Conclusion:":[324],"demonstrates":[328],"capability":[330],"differentiating":[332],"injuries,":[337],"effectively":[338],"leveraging":[339],"reduce":[343],"human":[344],"error":[345],"standardize":[347],"assessments.":[349],"interpretability":[351],"tools":[352],"(Grad-CAM":[353],"LIME)":[355],"provide":[356],"spatial":[359],"reasoning":[360],"predictions,":[363],"making":[364],"it":[365],"trustworthy":[367],"assistive":[368],"tool":[369],"experts.":[372],"represents":[375],"first":[377],"systematic":[378],"investigation":[379],"filling":[390],"research":[393],"gap":[394],"paving":[396],"way":[398],"intelligent":[400],"decision-support":[401],"systems":[402]}

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-09-01
DOI
https://doi.org/10.5281/zenodo.21607688
Primary Topic
Mental Health via Writing
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
preprint

Automated Detection of Self-Harm Wounds Using Deep Learning and Image Processing in Forensic Medicine

Mahdi Gheysari, Mahdi Mehrabi, A Mohammadi, Kamroz Amini et al.
Zenodo (CERN European Organization for Nuclear Research)
Mental Health via Writing
preprint

Automated Detection of Self-Harm Wounds Using Deep Learning and Image Processing in Forensic Medicine

Mahdi Gheysari, Mahdi Mehrabi, A Mohammadi, Kamroz Amini, Seyed Mohammad Saadatneshan
preprint en

Abstract

Background and Objective: Self-harm is a psychologically damaging behavior, and its accurate differentiation from other wounds (violence, accidents, burns, diabetic ulcers) is critically important in forensic medicine. However, this differentiation often falls into a diagnostic "gray zone," where traditional visual inspection methods are time-consuming, require high expertise, and are prone to subjective error. In Iran, despite the high volume of self-harm cases referred to the Forensic Medicine Organization, no comprehensive automated solution has been developed to address this challenge. This study aims to design and evaluate an automated deep learning system for the detection and classification of self-harm wounds in real-world forensic images. Methods: A pre-trained ResNet18 model was fine-tuned on a dataset of 2,292 real forensic images collected from case files, categorized into six classes: Self-harm (Yes), Self-harm (No), Burn, Diabetic Ulcer, Infectious Wound, and Non-wound. All images underwent standardized preprocessing (resizing to 150×150, normalization) and augmentation (flips, color jitter, rotation) to enhance generalization. To address class imbalance, we employed a WeightedRandomSampler and Focal Loss with adjusted class weighting (1.5× for the Self-harm class). Training was conducted using the AdamW optimizer (lr=0.001) with a OneCycleLR scheduler over 30 epochs. The model's decisions were interpreted using Grad-CAM and LIME, and feature representations were analyzed using t-SNE to ensure explainability. A frozen ResNet18 baseline was compared to evaluate the effectiveness of full fine-tuning. Results: The proposed model achieved an overall accuracy of 71.0% and a weighted F1-score of 0.7158 on the validation set. For the primary target class (Self-harm), the model demonstrated strong discriminative power with a precision of 0.745, a recall of 0.767, an F1-score of 0.756, and an AUC of 0.926. The model achieved only 6 false positives and 3 false negatives for the self-harm class, confirming its reliability in critical cases. Compared to the frozen baseline, the fine-tuned model showed a significant improvement of 19.8% in overall accuracy and 36.3% in F1-score, highlighting the importance of layer-specific adaptation for forensic feature extraction. Conclusion: The proposed system demonstrates strong capability in differentiating self-harm wounds from other injuries, effectively leveraging deep learning to reduce human error and standardize forensic assessments. The interpretability tools (Grad-CAM and LIME) provide visual and spatial reasoning for model predictions, making it a trustworthy assistive tool for forensic experts. This study represents the first systematic investigation into automated self-harm detection using real forensic images in Iran, filling a critical research gap and paving the way for intelligent decision-support systems in forensic medicine.

Zenodo (CERN European Organization for Nuclear Research)
Iranian Legal Medicine Organization (IR), Islamic Azad University of Shiraz (IR)
Reduced inequalities
Mental Health via Writing
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.