scieee AI-readable full text Open interactive document viewer

Analysis of Gender Differences in Online Handwriting Signals for Enhancing e-Health and e-Security Applications

Faúndez Zanuy, Marcos; Mekyska, Jiří

Abstract

Handwriting is a complex perceptual–motor skill that is mastered around the age of 8. Although its computerized analysis has been utilized in many biometric and digital health applications, the possible effect of gender is frequently neglected. The aim of this paper is to analyze different online handwritten tasks performed by intact subjects and explore gender differences in commonly used temporal, kinematic, and dynamic features. The differences were explored in the BIOSECUR-ID database. We have identified a significant gender difference in on-surface/in-air time of genuine and skilled forgery signatures, on-surface time in cursive letters and numbers, and pressure, speed, and acceleration in text written in capital letters. Our findings accent the need to consider gender as an important confounding factor in studies dealing with online handwriting signal processing.

Full text

Vol:.(1234567890) Cognitive Computation (2023) 15:208–219 https://doi.org/10.1007/s12559-023-10116-9 1 3 Analysis ofGender Differences inOnline Handwriting Signals forEnhancing e‑Health ande‑Security Applications MarcosFaundez‑Zanuy1 · JiriMekyska2 Received: 3 October 2022 / Accepted: 14 January 2023 / Published online: 21 January 2023 © The Author(s) 2023 Abstract Handwriting is a complex perceptual–motor skill that is mastered around the age of 8. Although its computerized analysis has been utilized in many biometric and digital health applications, the possible effect of gender is frequently neglected. The aim of this paper is to analyze different online handwritten tasks performed by intact subjects and explore gender differences in commonly used temporal, kinematic, and dynamic features. The differences were explored in the BIOSECUR-ID database. We have identified a significant gender difference in on-surface/in-air time of genuine and skilled forgery signatures, on-surface time in cursive letters and numbers, and pressure, speed, and acceleration in text written in capital letters. Our findings accent the need to consider gender as an important confounding factor in studies dealing with online handwriting signal processing. Keywords Online handwriting· Gender differences· Text· Signature Introduction There are three main levels at which gender equality is considered in Horizon Europe, the European Union’s key funding program for research and innovation [1]: 1. Having a Gender Equality Plan (GEP) in place becomes an eligibility criterion for certain categories of legal entities from the EU and associated countries. 2. The integration of the gender dimension into research and innovation content is a requirement by default, an award criterion evaluated under the excellence criterion, unless the topic description explicitly specifies otherwise. 3. Increasing gender balance throughout the program is another objective, with a target of 50% women in Horizon Europe related boards, expert groups and evaluation committees, and gender balance among research teams set as a ranking criterion for proposals with the same score. In this paper, we will analyze the main dynamic characteristics of online handwriting signals in different tasks, in agreement with the level 2 of Horizon Europe. While this kind of signals has recently attracted the interest of the scientific community, few efforts have been done to analyze whether there are significant gender differences in healthy subjects as well as in those with some pathologies. We think that establishing a response to the fundamental question “Are there significant differences between online handwritten tasks performed by both genders?” is mandatory to develop gender-bias-free e-health and e-security applications based on online handwritten tasks. In addition, the understanding of these gender differences will help to improve cognitive systems that deal with handwriting signals. While cognitive computing has been used, for instance, in customer profiling by means of meta-classification for gender prediction [2], we think that a deep knowledge of gender differences in handwritten tasks will help to improve classification accuracies of cognitive systems and to avoid gender biases. A paradigmatic example of gender differences is in hearth attacks [3]. Although the incidence of cardiovascular disease (CVD) in women is usually lower than in men, women have higher mortality and worse prognosis after acute * Marcos Faundez-Zanuy f[email protected] Jiri Mekyska [email protected] 1 Tecnocampus Mataró, Avda. Ernest Lluch 32, 08302Mataró,Barcelona, Spain 2 Department ofTelecommunications, Brno University ofTechnology, Technicka 12, 61600Brno, CzechRepublic 209Cognitive Computation (2023) 15:208–219 1 3 cardiovascular events. These gender differences exist in various CVDs, including coronary heart disease, stroke, heart failure, and aortic diseases. These differences have caused widespread concerns, and the consideration of gender differences is of great importance for the prevention, diagnosis, treatment, and management of CVD. In signal processing, we can easily compare, for instance, speech and online handwriting signals. Both of them are dynamic signals, permitting us to express ourselves and require a high cognitive effort. However, as we will describe next, the efforts devoted to gender relevance study in handwriting signal analysis have been very low, and this should be corrected in order to develop science in a fair way and aligned to European directives. Speech Signals If we get a look at signal processing, in speech signal analysis, it is well-known that gender differences exist. The clearest example is pitch. In general, women speak at a higher pitch, about an octave higher than men. This is mainly due to morphological aspects such as the vocal tract length and oral cavities dimension. This implies significant differences. For instance, in [4], the authors studied the effect of age and gender on emotion recognition applications. They compared the performance of four different models and presented the relationship between age/gender and emotion recognition accuracy. Experimental results showed that using a separated emotion model for each gender and age category gives a higher accuracy compared with using one classifier for all the data. In [5], the authors identified that the associations between hearing loss (HL) and cognitive impairment varied according to gender in older community dwellers, suggesting that different mechanisms are involved in the etiology of HL. Another different topic is behavioral sex differences. In [6], the authors found that many popular conceptions of behavioral sex differences are founded more on personal beliefs than on facts. Some of these beliefs include that women speak more, speak faster, leave more sentences unfinished, and operate at a simpler conceptual level than men. Online Handwriting Signals In online handwriting signal analysis, the gender influence has attracted less interest from the scientific community, when compared to other signals such as speech. Most of the existing literature dealing with gender and handwriting signals is aimed to gender classification [7–14]. For example, in [14], Likforman-Sulem etal. employed the support vector machine (SVM) classifier and modeled a set of dynamic handwriting features extracted from a sentence copy task in order to stratify a cohort into males and females. They reached 65% accuracy, suggesting that the gender effect is present but with a relatively small impact. This finding is in line with the study of Liwicki etal. [11], who utilized Gaussian mixture models trained on kinematic and spatial features and reached a classification accuracy of 64%. The team also reported that even though this accuracy is low, it outperforms the classification based on the offline handwriting, i.e., an accuracy of 55%. On the other hand, in [13], the authors quantified an offline handwritten text by spatial (geometric) features and achieved 74% gender classification accuracy using the Random Forest algorithm. Although this accuracy slightly differed across languages (English and Arabic), it again highlighted that the gender effect in handwriting processing should be taken into account and further explored. For example, the conclusions of the Kaggle competition (which hosted more than 190 teams) suggest that the effect of gender is also associated with the age of the writer [12]. Nevertheless, besides the above-mentioned studies, some important questions concerning the gender classification must be addressed, the most important one being are there gender/age differences in the handwriting of healthy subjects that must be taken into account when analyzing pathologies such as Alzheimer’s or Parkinson’s disease? The first step would be to identify these differences. If they exist, it is important to obtain deep knowledge about them, in a similar way that we know that the pitch of males/females is significantly different. In the case of age differences, they can be alleviated by the fact that control groups in pathology analysis are usually paired by age, or, in the case of imbalanced datasets, age is considered as a confounding factor and could be regressed out. However, it has not been deeply analyzed whether significant differences exist in handwritten tasks performed by males and females. If differences exist in speech signals, then why not in handwritten tasks? The second important question is about the correlation between different handwritten tasks performed by the same user: if a user exerts a high pressure and exhibits higher writing speed than the standard population, is this result independent of the performed task? And, are there gender differences? In this paper, we want to address the question about differences in online handwritten tasks due to gender. We are mainly interested in temporal, kinematic, and dynamic features such as time in-air/on-surface, pressure, acceleration, and complexity (measured by Shannon entropy). In order to respond to the questions, we performed a set of experiments on the BIOSECUR-ID database [15]. For a recent description of the state of the art, applications and future trends in online handwriting analysis, see [16, 17]. Usually, the scientific literature has ignored the separate analysis by gender, but we can forecast increasing 210 Cognitive Computation (2023) 15:208–219 1 3 attention to this issue, as improved classification accuracies in e-health and e-security could be obtained by considering the gender issue. From this point of view, we consider that a good starting point is the analysis of different online handwritten tasks performed by healthy subjects (when performing the same task). Obviously, this limits the analysis of other levels of information such as differences in word usage and expressions, which could be evaluated by means of a handwritten free text analysis. Nevertheless, this requires an acquisition of a new database, which is beyond the scope of this paper. We also skip some interesting questions, which should be addressed in future research work, such as the following analysis of gender dependence skills in e-security and e-health applications: • Is any gender more skilled to produce forgeries in biometric recognition? This topic has been analyzed in the case of offline Arabic handwritten signatures in [18], and the authors concluded that women were found to have a marginal advantage in simulating all elements of the signatures, but there was no statistically significant difference between the genders on any of the elements examined. • Is any gender more skilled to produce handwritten tasks that require a cognitive effort such as the complex figure copying test? To respond to this question, a large database of healthy people performing drawing tasks is required. Experimental Analysis This section describes the experimental database and the obtained results. Database We have analyzed the BIOSECUR-ID [15] database, which consists of 330 subjects (46% females, 54% males), who provided handwritten samples in four acquisition sessions. The participants performed the following tasks: • Text in cursive letters (TXT) • Numbers from zero to nine (NUM) • Eight words written in capital letters (WORD) • Genuine signature (SIGN) • Fake signature trying to imitate other user’s signature (SIGN fake) The database was acquired with the Wacom Intuos3 A4 tablet in combination with the Wacom Inking pen. It provides 5080 dpi and 1024 pressure levels and a spatial accuracy ± 0.25mm. Figure1 shows the population distribution for both genders. Experimental mean and standard deviation reveal that both populations present a similar distribution. Handwriting Features The parameters used to carry out the analysis were: • How much time the pen has spent lifted from the tablet and also how much time the pen has spent on the surface (tup, tdown computed as the mean of all the realizations done by males and females separately, as well as the standard deviation) • The mean of the pressure ( p ) and its standard deviation • The mean of the speed ( s ) and acceleration ( a ) and their standard deviation • The entropy of the variables x, y, and p (Hx, Hy, Hp) and their standard deviation, where x and y are the spatial coordinates and p is the pressure exerted with the pen by a writer Experimental Results Table1 shows handwriting features for different tasks using recordings from session 1. Worth to mention that males and females have been educated during the schooling period to write texts in the same way. However, the signature is something personal, chosen by the individuals, and is therefore more prone to gender differences. The next figures depict scatter plots for a specific feature and a couple of tasks. Males are depicted in red and females in green. Worth to mention that when comparing different tasks performed by the same user, there is a large correlation as the dots appear aligned. Figure2 shows the five analyzed features (tup, tdown, p , s , a ) for the text in cursive letters (in x coordinate) vs numbers (in y coordinate). Figure3 shows the same previous features for the cursive text (in x coordinate) vs capital letters (in y coordinate). Figure4 is analogous with the text in capital letters versus numbers, and Fig.5 compares genuine signatures versus skilled forgeries performed by the same user. Figure6 compares cursive letters vs. signature, and Figs.7, 8, 9, 10capital letters vs. signature. Table2 shows Pearson’s correlation coefficients for a specific feature when performing two different tasks (for instance, the first cell in the upper left corner of the table represents the correlation between the tup required to perform a text in cursive letters versus numbers). Significant correlation values are always positive in our case. In addition, all the correlations are significant with p < 0.001, except for those involving forgeries. Probably this is because, in contrast to the other tasks, forgeries are a 211Cognitive Computation (2023) 15:208–219 1 3 non-usual handwriting activity in daily life. Thus, the dynamic is quite different from the “normal” handwriting activity. Considering the following range of values: • [0, 0.2]: no association • (0.2, 0.4]: very week association • (0.4, 0.6]: moderate association • (0.6, 0.8]: strong positive association • (0.8, 1]: very strong positive association We observe: • Very similar behavior when comparing males and females • No association between the pressure exerted by a user when performing her/his own signature or trying to imitate another’s signature • Stronger correlations between features extracted from handwritten text (cursive, numbers and capital letters) than between signatures and handwritten text. This opens the possibility for improved biometric accuracies when combining text and signature Another interesting question is whether there are significant differences between a specific task and a feature when performed by males and females. In order to respond to the question, and since the features do not have normal distribution, we performed the Mann–Whitney U test with the null hypothesis that the two samples come from distributions with equal medians. Table3 summarizes the p values for different tasks and features. Considering as significant those results with p < 0.05, we observe: Male ; mean=31.8744 ; std=12.4581 20 30 40 50 60 70 80 Age 0 20 40 60 80 Population Female ; mean=32.0108; std=12.549 20 30 40 50 60 70 Age 0 20 40 60 80 Population Fig. 1 Histograms with population distribution for males and females in the BIOSECUR-ID database 212 Cognitive Computation (2023) 15:208–219 1 3 • Signatures of males and females are different in time in-air and on-surface, speed, and acceleration. This is not surprising as signatures are personal traits, and each person has its own signature shape. On the other hand, the exerted pressure is not significantly different. • In the case of faked signatures, we observe that the dynamics measured by speed and acceleration are not significantly different. Probably because BIOSECUR-ID forgeries have not been performed by professional forgers and, in some sense, males and females are doing this Table 1 Mean and (standard deviation) for different tasks and features for males (M) and females (F) Features Task Gender tup (std) tdown (std) p (std) s (std) a (std) Hx (std) Hy (std) Hp (std) TXT M 11,562 (7969.6) 13,566 (5640.1) 264.56 (96.053) 31.813 (10.273) 21.74 (8.4944) 7.8336 (0.081345) 7.2621 (0.25282) 4.9749 (0.56998) F 11,397 (7664.9) 14,950 (6591.1) 263.14 (87.346) 31.323 (10.157) 20.345 (8.5865) 7.8299 (0.054641) 7.2584 (0.30118) 5.1061 (0.50777) NUM M 460.07 (296.12) 450.03 (154.86) 291.12 (95.872) 28.44 (10.235) 12.455 (4.9985) 6.9897 (0.18032) 7.0995 (0.22682) 4.5022 (0.63741) F 461.61 (309.18) 496.21 (198.99) 280.64 (93.455) 26.227 (9.9349) 11.534 (4.759) 6.9892 (0.1989) 7.0731 (0.22807) 4.6901 (0.58119) WORD M 7024 (4870.3) 9137.5 (3710) 284.95 (88.799) 29.775 (9.889) 22.134 (8.8938) 7.4782 (0.26101) 6.6641 (0.24498) 5.2259 (0.48594) F 7488.4 (5998.9) 9814.8 (4428.5) 258.47 (85.688) 27.775 (8.7042) 19.56 (7.7977) 7.4678 (0.28511) 6.6181 (0.30199) 5.229 (0.43838) SIG M 91.005 (100.61) 317.11 (180.55) 435.9 (150) 82.742 (50.021) 27.822 (17.161) 6.6742 (0.55974) 6.6108 (0.51076) 5.8049 (0.65103) F 135.82 (122.53) 445.77 (267.13) 408.4 (131.45) 61.371 (32.454) 21.523 (13.708) 6.87 (0.50229) 6.7115 (0.40605) 5.9363 (0.4972) SIG fake M 301.79 (325.93) 596.46 (445.6) 333.84 (155.46) 53.802 (35.874) 15.651 (12.69) 6.7335 (0.47428) 6.7811 (0.44202) 5.3567 (0.98852) F 388.77 (383.39) 799.76 (698.23) 350.6 (155.54) 47.367 (29.33) 13.476 (9.1376) 6.8518 (0.44935) 6.8146 (0.38388) 5.481 (0.89711) Fig. 2 Features (tup, tdown, p , s , a ) in the cursive text versus numbers for males (red dots) and females (green dots) 213Cognitive Computation (2023) 15:208–219 1 3 Fig. 3 Features (tup, tdown, p , s , a ) in the cursive text versus capital letters for males (red dots) and females (green dots) Fig. 4 Features (tup, tdown, p , s , a ) in numbers versus capital letters for males (red dots) and females (green dots) 214 Cognitive Computation (2023) 15:208–219 1 3 Fig. 5 Features (tup, tdown, p , s , a ) in genuine signatures versus skilled forgeries performed by the same user for males (red dots) and females (green dots) Fig. 6 Features (tup, tdown, p , s , a ) in the cursive text versus genuine signatures performed by the same user for males (red dots) and females (green dots) 215Cognitive Computation (2023) 15:208–219 1 3 Fig. 7 Features (tup, tdown, p , s , a ) in capital letters versus genuine signatures performed by the same user for males (red dots) and females (green dots) Fig. 8 Features (tup, tdown, p , s , a ) in the cursive text versus forgery signatures performed by the same user for males (red dots) and females (green dots) 216 Cognitive Computation (2023) 15:208–219 1 3 Fig. 9 Features (tup, tdown, p , s , a ) in numbers versus forgery signatures performed by the same user for males (red dots) and females (green dots) Fig. 10 Features (tup, tdown, p , s , a ) in capital letters versus forgery signatures performed by the same user for males (red dots) and females (green dots)