Intelligent Medical Velostat Pressure Sensor Mat Based on Artiﬁcial Neural Network and Arduino Embedded System

: The promising research on ﬂexible and tactile sensors requires conducting polymer materials and an accurate system for the transduction of pressure into electrical signals. In this paper, the intelligent sensitive mat, based on Velostat, which is a polymeric material impregnated with carbon black, is investigated. Various designs and geometries for home-made sensor mats have been proposed, and their electrical and mechanical properties, including reproducibility, have been studied through the tests performed. The mat pressure sensors have been interfaced with an Arduino micro-controller in order to monitor, read with high precision, and control the variation of the resistance under applied pressure. An approximation method was then developed based on a neural network algorithm to explore the relationship between different mat shapes, the pressure and stresses applied on the mat, the resistance of the conductive Velostat material, and the number of active sensing cells in order to control system input signal management.


Introduction
A safe and healthy office environment is essential to improve worker productivity [1,2].Sensor technology applications can support workers by measuring and monitoring their work exposures to prevent adverse health effects and increase the quality and comfort of the indoor environment.Pressure sensors are adopted to measure the physical forces exerted by the body.The piezoelectric sensors in semiconductor technology are considered the most popular sensors.However, low manufacturing cost, high flexibility, and the simplicity of the data acquisition circuits are the characteristics for which piezoresistive flexible pressure sensors are widely used.Versatile and flexible pressure transducer and tactile sensors compatible with the skin, which are sufficiently sensitive, are applied in human motion monitoring, health monitoring devices, consumer electronics, and soft robotics [3].Experimental studies have demonstrated that it is possible to implement Velostat-based sensors in both static and dynamic flexible systems [4][5][6].The typical design of a flexible pressure sensor consists of Velostat as a piezoresistive layer and a conductive silver nylon over a neoprene insulation layer [6][7][8][9][10].Pressure-sensitive systems are used to monitor the user's presence and to obtain information about the user's health status by detecting possible anatomical abnormalities.In medical diagnosis and sports applications, the body posture control associated with the analysis and measurement of plantar pressure distribution reveals the pressure interface between the plantar surface of the foot and the sole of the shoe.Neonatal constant monitoring, sports training monitoring, and elderly care are applications of the Velostat-based pressure sensitive mat (PSM) [11][12][13].The plantar pressure distribution allows for the analysis of the rhythm and size of the step, weight distribution between heel and foot, and timing of the gait phases by means of Velostatbased foot sensors installed in the shoe lining [14].Moreover, flexible pressure sensors can be designed to identify the main characteristics of the human body mass distribution [15].Prolonged sitting, especially with bad posture, can lead to a stiff neck, tight shoulders, and back pain.In light of this problem, the Velostat pressure sensors can be chosen in the acquisition system to monitor the driver's posture and the intensity of prolonged sitting or reclining activity [16].The ergonomic and performant smart cushion, based on a pressure-sensor array using the piezoresistive material Velostat as the core, is designed for sedentary people to correct their sitting posture and for drivers to improve their driving safety [17].In fact, different human behaviors can produce different sitting postures, resulting in different pressure distributions on a seat.Unlike stand-alone pressure sensors, the pressure-sensor array can be distributed over the entire seat to gather comprehensive information about the pressure distribution of the human body.To identify incorrect sitting posture, a smart mat is embedded with pressure-sensing elements made by a low-cost E-Textile arranged in a matrix form [18]. Pressure distribution sensors located on the surface of the seat and backrest of the chair enable real-time acquisition of contact information between the chair and the occupant.Studies on standing posture and stability use, as a quantitative measure, the displacement of the center of pressure (CoP) calculated through a force platform in aged or diabetic subjects, children with cerebral palsy, or subjects in the neonatal stage.Pressure-sensitive mats (PSMs) are generally adopted to measure pressure on seats, beds, or floors, for interactive multimedia systems, for interactive toys, and for measuring CoP and train sitting balance [11,19].Elderly or long-term hospitalized patients with diseases have a significant risk of pressure sores, which are wounds of the skin and internal tissues caused by continuous pressure on a specific area of the body.Sleep posture monitoring can prevent events such as sleep apnea or pressure ulcers that can generate pain, infection, and even death and, thus, negatively impact patient health and public health costs [7].For this reason, several studies have been conducted on a bed pressure monitoring system suitable for daily use to prevent pressure ulcers, proposing complex solutions.Various types of pressure sensors, accelerometers, and gyroscope sensors have been used for sleep pattern and posture recognition [20].The smart mat system, based on a dense flexible sensor array and printed electrodes for sleep posture recognition and sleep activity monitoring, is presented in [20].Force-sensing resistors are incorporated into the mat to capture the pressure distribution of the human body, and machine learning methods including pre-processing and deep residual networks are applied to classify sleep postures [7].The IoT-based smart bed systems are designed to support care assistants for elderly patients and patients with limited mobility.The use of the Internet of Things (IoT) and artificial intelligence in modern healthcare has promising technological, economic, and social implications [21].All health information can be collected, managed, and used more efficiently due to the global connectivity of IoT.Wearable health management systems offer low-cost solutions for non-invasive personal health monitoring, enabling early diagnosis and better treatment for various medical conditions.The advanced intelligent IoT proposes the innovative textile pressure Velostat sensors to observe twenty-one people in four lying positions for preventing fall accidents and bedsores through the message queuing telemetry transport (MQTT) protocol and Arduino-based hardware [22].Additionally, an intelligent Velostat mat for monitoring body position by obtaining pressure distribution on the patient's body and posture prediction by ANN for medical applications is presented in [23].A low-cost pressure sensor array consisting of conductive fabric and wires has been designed for sleep posture recognition by a shallow convolutional neural network (CNN) or by multiple accelerometers.The current paper presents the characterization of a sensitive mat based on Velostat and a control system adopted as the target solution to improve medical diagnosis.

•
The fabrication, method, and materials of the mat surface are described using simple facilities.

•
The different design and geometry of homemade sensor mats (Figure 1a,b) are proposed to explore the electrical and mechanical properties, including repeatability, through the conducted tests.• A data acquisition system using software and an Arduino microcontroller is provided to automate the measurements of mat sensors in the test bench.• Thus, the approximation method based on the neural network algorithm is developed to achieve a relation between the different geometries of mats, the pressure and voltages applied to the mat, the resistance of the conductive material, and the number of sensing cells.The novelty of this method involves an intelligent system completed by a measurement system, a micro-controller, and peripherals, including an innovative algorithm for the description of the characteristics of the 2D pressure-sensing matrix based on commercial materials that can be integrated in real-life conditions, i.e., installed onto a patient's bed.Additionally, a neural network for assisting in positional detection of applied pressure was developed in that system.The smart mats can be integrated with innovative technology and materials in order to improve the design process and user comfort while providing health benefits such as sleep monitoring functionality, sleep quality and anti-snoring, detecting human postures, and counting posture cycles.A variety of different data such as heart rate, respiration, sleep quality, and blood pressure can be provided by smart mat sensors able to analyze the psycho-physical factors related to sleep in a non-invasive way.The analysis of the electrical performance of the mat using new techniques can help manufacturers to create higher quality and efficient products, to monitor sleep and rest patterns, and to optimize sleep activity connecting with smart devices, Wi-Fi, and IoT.The pressuresensitive mats based on Velostat and the embedded Arduino system were manufactured and developed in the Laboratory of the Department of Mechatronics, Silesian University of Technology, Gliwice, Poland.In Section 2, the Velostat material is analyzed and in Section 3 are presented the different measurements tests, including the data visualization through Arduino conducted in laboratory on the sensor mat.Based on the experimental results obtained in laboratory, the methodology of the neural network algorithm and the results are described in Section 4 and Section 5, respectively.The conclusions are drawn in Section 6.

Material
The mat sensors were manufactured using the material Velostat, also known as "Linqstat".This material is made by impregnating a conductive polyethylene resin film with carbon black (Figure 2a).Velostat's conductivity does not depend on humidity and age [24].Antistatic plastics such as the Velostat film typically have a surface resistance less than 100,000 ohmsper-square.Electrically conductive plastics start with a surface resistivity of less than 10,000 ohms-per-square and can go as low as 10 ohms-per-square.The film is heat-sealable, flexible, and offers exceptional abrasion resistance.The film gives good thermal stability and chemical resistance, as shown in Table 1.

Heat sealable Yes
Longitudinal resistance <500 Ω/cm Surface resistivity 31,000 Ω/cm 2 The carbon blacks provide physical cleanliness and excellent film smoothness.In Figure 2a, the Velostat material composed of the carbon black in an agglomeration of particles is shown under a digital microscope G1200 Digital Microscope 7 Inch Large Color Screen Large Base LCD Display 12MP 1-1200X Continuous Amplification Magnifier.The Velostat material can be used for many applications such as smartcard and micromodule interleavers, antistatic packaging, EMI and RF shielding, pressure sensors, TENS electrodes, digital whiteboards, and wearable electronics.In fact, this material is sensitive to pressure.The resistance changes when pressure is applied, making it useful for creating flexible sensors.The homemade fabricated mat consists of Velostat foil between two layers of strip copper wires arranged transversely to each other.The Velostat foil changes the resistance depending on the pressure force applied onto its surface.By testing the resistance at many different points on a sheet, the force acting on the sheet can be measured.The foil used in this application has a size of 280 × 280 mm and a thickness of 0.1 mm.

Mat Construction
The prototype of the flexible sensory mat was compared to existing solutions in the market, such as the Zebris gait cycle mats that respond to changes in force or pressure caused by walkers in a rigid structure or flat surface.The determination of force distribution on individual parts of the mat is referred to the International Standard PN-EN 60601-2-52: 2019, which covers medical electrical devices and detailed requirements for basic safety and the essential performance of medical beds.IEC 60601-2-52:2009 applies to the basic safety and essential performance of medical beds intended for adults, as defined in 201.3.212.Each medical bed contains a mattress support platform and is intended to assist the patient in diagnosis, monitoring, prevention, treatment, alleviation of disease, or compensation for an injury or handicap.The medical bed needs to be provided by a motion lockout control, which is an auxiliary subsystem that deactivates motion controls, pendant control handheld devices, undercarriages, side rails for physical barriers, rigid loading boards, and specialty mattresses.The mattress is intended for prophylactic or therapeutic effect [25].The parts of the medical bed (Figure 3a) on which the mat is placed are headrest, rear section, seat section, upper legs, shank section, and footrest.The IEC 60601-2-52 safety standard focuses on adult medical beds, including the safe working load.The safe working load (SWL) is defined as the maximum permissible load comprising patient, mattress, bed linen, and accessories that can be safely lifted by the bed as reported in [26,27].All the medical beds are listed with the maximum patient or user weight and the safe working load of the bed [26].The SWL for a medical bed is estimated to 1700 N, which is the sum of the minimum load considered in Table 2.In the case of a foot rest, the partial SWL distribution for the weight of the patient is distributed over an area of 0.1 m 2 .In this work, a prototype of a flexible mat used in a hospital bed is developed and characterized.The materials used were Velostat foil, self-adhesive copper tapes, surface protection film, and 5 mm wide double-sided tape (Figure 2a).The adhesive copper tapes are positioned on Velostat foil at uniform distances apart.On the other side of the Velostat material, the same method was carried out, but the copper tapes were placed at the same distance but in the opposite direction, as shown in Figure 4. Finally, the isolated wires are adhered into place between the mat's copper side columns.The transparent blue protective coatings are welded onto the mat.The conductive copper tape is designed to conduct electricity and is considered an isotropic conductive adhesive, i.e., conductive in all directions.This is coated with an acrylic adhesive that is uniformly dispersed with conductive spheres to provide a very low rate of electrical resistance through the tape.Therefore, the wide copper strip of 5 mm was preferred instead of a larger copper strip in further experimental tests to obtain good results.The self-adhesive EMI copper tape of 10 mm × 30 m provides excellent insulation against electromagnetic fields and related interference.The tape is 25 µm thick, 30 m long, and 10 mm wide.The sensor matrix was created using the copper tape and the Velostat material.The copper tape was cut in equal lengths and located on both sides of the mat, one with copper columns and one with copper rows.The cables were soldered to the selected prototype, in particular, connected to the copper columns and rows of the mat.The prepared mat prototype of the entire foil of the Velostat between the copper strips can generate noise and interference in the tested cell (so-called crosstalk).For this reason, the prototype of the sensor mat has included the isolated wire and the surface protection film with a transparent blue color made of PE film with a thickness of 50 µm.In Figure 2a, the top view of the Velostat sensor exhibits the copper wire and the Velostat foil observed under the Andostar AD407microscope.In order to perform the tests in the appropriate measuring range, the calculation of the pressure for each part of the mat is required.

Measurements of Mat Pressure Sensor
The resistance of the pressure sensing mat was investigated as a function of pressure.Different types of tests were conducted to investigate the sensor characteristics.

First Experimental Test
Initially, the measurements were performed on selected mat prototypes with the geometrical and technical details presented in Table 3.The resistance of the mat was measured using a technical method with a specific supply voltage, and the load on the mat was increased with a known weight.In the first test experiment, the measuring system was connected to the sensor mat and consisted of a power supply, two digital multimeters, and cables.The voltage and resistance measurements were conducted by using a resistor R of 250 Ω connected in series to the mat, as displayed in Figure 3c.The supply voltage V g is set to 5 V.The multimeters used to measure the electrical voltage and resistance were a PC510 Sanwa MULTIMETER, DIGITAL, with specifications of a voltage measuring range of AC 500 mV and 0.08% basic accuracy, and a Sanwa CD771, MULTIMETER, DIGITAL, with a measuring range of 400 mV and the best accuracy of (0.5% + 2) (Figure 5a).The DC power supply used is the TEKTRONIX PWS2323 BENCH POWER SUPPLY, 32VDC, 3A.The electronic balance Łucznik KS-509 S is used to measure the weight of the materials and the foil.Four tests were conducted by using different contact elements to be applied on the mat, as shown in Figure 6.The pressure force was calculated on the mat using as contact element: 1.
a wooden disc with a radius of 48.3 mm and thickness of 4 mm (Test1) 2.
a steel cylinder with a radius of 35.5 mm (Test2) 3.
a small sponge (Test3) The variation in mat resistance (Ω) in the function of pressure force expressed in Newtons for the different conducted tests is reported in Figure 6.As the force applied to the mat sensor increases, the mat exhibits a decrease in resistance.

Second Experimental Test
In the second test experiment, the measurements of the pressure sensor mat were carried out using as pressure force the calibration weights cylinders.Calibration weights based on four cylinders of diameter d equal to 9.75 mm and a foam base were applied to the mat on different sensitive cells of the sensor matrix mats to measure the resistance.The variation in mat resistance (Ω) in the function of pressure force expressed in Newtons for different sensitive cells (B1, E1, B4, E4) of the mat is reported in Figure 7.The rows and columns of the mat matrix are numbered, respectively, with letters (A, B, C . . . ) and with numbers (1, 2, 3 . . .), as shown in Figure 3b.The weights of the load applied on the mat are 50 g of plate, 221 g of board, and 220 g of steel cylinder.The supply voltage V g is 4 V.The repeatability of the sensor mat experiment was tested, providing the same result of resistance under the same measurement procedure for the same weights, as shown in Figure 8.The additional pressures were obtained by increasing weights from 500 g to 5000 g and reading the current value from the multimeter with a constant voltage excitation (V g = 5 V), and then, the opposite measurements were achieved for decreasing weights from 5000 g to 500 g.

Third Experimental Test
In the third test experiment, the measurements of the pressure sensor mat were carried out using the Rigol DM3058E 5½ Digit Digital Multimeter, the RS PRO Power Supply, and Force gauge FB200 200 N (20 kg) 0.05N (Figure 5a).The force meter is dedicated to measuring force while pressing, and its graphical display allows for easy to read indications or present measurement results on a histogram or chart.The force gauge is equipped with a socket for an external power supply unit, RS232C interface (RJ joint), USB interface and optional Bluetooth interface, or THR (thresholds) output.The terminal set of the force gauge, in particular, the tip (Figure 9c), made of steel, suitable for the measurement to be conducted on the mat surface, was designed in Autodesk Inventor (Figure 9b).The terminal end of the dynamometer has a surface area of 28.274 mm 2 and the technical drawing is shown in Figure 9a.To perform the measurements, the dynamometer was mounted on a support in the vertical position and properly calibrated.The force gauge was used to apply different loads and measure the pressure on the prototypes of mats with different geometries, as shown in Figure 5a.The matrix of the mat is a square arrangement of elements into rows and columns (Figure 3b).The columns and rows of the mat matrix are numbered with letters (A, B, C . . . ) and numbers (1, 2, 3 . . .), respectively.The pressure sensitive mat in Figure 1a consists of a matrix of 14 × 14 sensing elements.The pressure sensitive mat in Figure 1b consists of a matrix of 8 × 8 sensing elements.To measure the current and voltage, the multimeter was used, and a supply voltage is assumed of 5 V, 3.3 V, and 7.5 V for the mat with 14 × 14 sensing active elements.The cell elements considered under the pressure of the force gauge are H14, N14, H10, L7, and G11, as shown in Figure 10.The variation in mat resistance (Ω) in the function of pressure force expressed in Newtons for different conducted tests is reported in the Figure 10.
The voltage V g is assumed to be 5 V for a mat with 8 × 8 active sensing elements.The cell elements under pressure of the force gauge are B8, H8, D3, B6, and F5, as shown in Figure 11.

Fourth Experimental Test
In the last test experiment, the electrical properties of the mat sensors were analyzed using the Arduino embedded system and the force gauge FB200 200 N (20 kg) 0.05 N (Figure 5b).In order to acquire the electrical signals from the pressure sensor mat, the interface between the measuring mat pressure, electronic components, and circuits was developed.The active mat sensor cells are arranged in columns and rows connected to the output of the shift register, which adds I/O pins to the Arduino system.The SN74HC595 device contains an 8-bit, serial-in, parallel-out shift register that feeds an 8-bit D-type storage register.The shift register has a direct overriding clear input, serial input, and serial outputs for cascading.When the output-enabled input is high, the outputs are in the high-impedance state.The diodes were connected to SN74HC595 outputs to block the possibility of the returning voltage from the mat to the system switching to the next levels.The Multiplexer CD4051D was used to read the resistance values.
The SN74HC595 device controls the response signal and switches on one active column of the sensitive mat.The Multiplexer CD4051D controls the signal response of the mat and selects the active row of the mat connected to ADC and provides the reading (Figure 12a).Its operation resembles a normally open switch that is activated by specifying the appropriate binary value.The signal from the mat is amplified by an operational amplifier.The op-amp is connected as well to the Arduino board (Figure 12b).The purpose of the code-program in Arduino is to control the shift register and the multiplexer for retrieving serial data input from the mat.The first part of the software program provides the changing of the time between the data samples, expressed in milliseconds, and the input/output pins on the microcontroller, for which the digital states can be read and the values assigned and changed.The program code (Supplementary Materials) can provide continuous measurements and establish serial communication with LabVIEW-Arduino using UART to transfer continuous stream data.The variables indicate the physical position of the pins; the time interval (minimum jump time is 50 ms) and the size of the matrix represent the mat expressed in rows and columns.In particular, the analog pin is used to read data downloaded from the mat, the digital pin is used to control the multiplexer, and the SRCLK shift register clock pin is changed (set to 1-high 0-low) according to the microcontroller connection and information transfer.As reported in the S1.The Arduino has a USB interface used for sending data from the mat sensor to the host computer.The mat sensor data received from the Arduino hardware are displayed using the LabVIEW 2021 Q interface.The front panel window (Figure 12b) presents the interactive input and output terminals of the user interface for LabVIEW code VI.The front panel window is the user interface for the VI and exhibits controls and indicators, which are the interactive input and output terminals, respectively, of the VI.The mat matrix (14 × 14) is connected to Arduino platform and LabVIEW 2021 Q in order to read and properly detect the data of pressure force on mat in real time for each cells of mat as shown in the LabVIEW front panel (Figure 12b).The measuring system connected to the mat sensor consists of a power supply, a multiplexer, an Arduino board, and cables (Figure 2b).The voltage and resistance measurements were conducted connecting a resistor R of 2 kΩ in series to the mat, as shown in the schematic electric circuit of Figure 3c.The supply voltage V g is 4.2 V for the mat with 14 × 14 active sensing elements.

Method Neural Network Approach to the Sensor Mat
A neural network is a computational model inspired by the structure and function of the human nervous system.It can be used to recognize complex patterns and to carry out relationships in data.It is used in many fields, for example, natural language processing, computer vision, nuclear fusion, and many other applications.The artificial neural network (ANN) consists of node collections, known as "artificial neurons", that are organized into blocks called layers and connected to each other by weights.Each artificial neuron receives inputs from other neurons and produces an output as an adopted feed-forward algorithm, which is then assigned to the next neurons.In particular, an appropriate mathematical function, known as an activation function, maps inputs to the corresponding outputs.Some activation functions help to capture strong non-linearity in the data, and for this reason, the neural networks have been explored for the experimental data from mat sensors collected in the laboratory.
In order to define a relationship between the data, the optimal weights and biases have to be set to minimize the error between the predicted and true outputs.Technically, this method is based on a backward propagation algorithm.To achieve these, it is important to use an appropriate loss function during the training process, which is an objective function to be optimized.The smaller the objective function, the better the designed network is trained.The network is trained on an initial subset of data (training data set), and the remaining test data set is used to validate the network.
The neural network model is developed to establish the mathematical formula for the Velostat sensitive mat; for instance, a neural network's relationship between input x and output y is: where σ i is the function as activation function, x is the input, and W i and b i are weights and biases with i = 0, . . .n − 1.
In our case, the different geometries of mats, the pressure and voltages applied on the mat, and the number of sensing cells are considered for the approximation method based on the neural network model.
The supply voltages, which varied in the range 5 V, 3.3 V, and 7.5 V, were measured by the RS PRO Power Supply during the laboratory tests.In the mat sensor, the active cells H14, N14, H10, L7, and G11 are subjected to the pressure applied by the FB200 200 N force gauge.The resistances R are obtained by formula R = V/I, where V is the voltage measured by the RS PRO Power Supply, and I is the current measured by the Rigol DM3058E Digital Multimeter.
The neural network provides as additional input the position of the active cell within the matrix mat identified by grid lines and coordinates, the pressure exerted on the cell, and the geometry of the mat Velostat.In this case, two types of sensor mat geometries, presented in Figure 1a,b, were considered, with the technical characteristics given in Table 3.The positions of the active cell are expressed as matrix elements arranged in specific rows and columns.
To increase the efficiency of the learning algorithm of the neural network model based on the relation between the pressure applied on the mat and the resistance of the Velostat material, the information about the rows and column position cells of the mat matrix are requested as input.The neural network provides a relevant configuration model suitable for both geometries of mats with a high generalization performance, as shown in Figure 13.Thus, all the inputs mentioned above such as power voltages, position mat matrix, pressure, and type of sensor are included in the array x.Finally, y is the resistance predicted and the output of the neural network defined as the target.

Neural Networks Results
The considered network structure consists of three layers: one input layer, one hidden layer, and one output containing 64 nodes for each layer (Figure 13).The rectified linear unit (ReLU) is used as a non-linear activation function in the deep learning domain.The main advantage of using the ReLU function over other activation functions is that it activates all the neurons over time.This means that the neurons are deactivated if the output of the linear transformation is less than 0, instead of returning the input value itself for positive input values.The mean squared logarithmic error (MSLE), known as loss function, can be interpreted as a measure of the ratio between the actual and predicted values.The MSLE loss function, commonly used to predict values that can cover a wide range of magnitudes, has provided 0.0077 for the training procedure and 0.1059 for the test procedure as results.
The optimization of the MSLE loss function was obtained by the adaptive moment estimation (ADAM) optimizer.It is a variant of stochastic gradient descent (SGD) that uses adaptive learning rates to update the model parameters.The ADAM optimizer combines two optimization algorithms, AdaGrad and RMSProp.The ADAM provides a learning rate for each parameter based on historical gradient information.However, unlike AdaGrad and RMSProp, ADAM incorporates an exponentially decaying average of past gradients and a moving average of the second moments of gradients.These additional steps help to smooth out the learning rate and to enhance the convergence of the algorithm.
The parameters, typically the weights of the neural network model connections, are learned during the training stage.These weights and biases W i and b i are, respectively, in values equal to 8705.For instance, Table 4, Table 5, and Table 6 show some of the weight values for the first, second, and third layers, respectively.
The mathematical relationship obtained by the neural network model is reported in the following formula: where W r ij are the weights, r is the number of the layer, i is referred to the i-th node of the r − 1 layer, and j refers to the j-th node of the r layer.
b r i are biases of nodes; i is referred to as the i-th node of the r layer.h r i is the output of layer r − 1 or, equivalently, the input of layer r; i is referred to the index of the i-th output node in layer r − 1.
x i is the input data of the neural network; i is referred to the features of the input; in this case, i = 1 stands for number cell, i = 2 stands for pressure, and i = 3 for voltage applied.The predicted values of the target (resistance) relative to the training data set and the test data set are shown, respectively, in Figure 14a,b.The presented results show a good performance in terms of prediction; however, the maximum error is around 7%.As the magnitude of the resistance value increases, the predicted values of resistance deviate from the true values.Furthermore, in Figure 15a,b, the relative error of the predicted value of the sensor's resistance compared to the true value on the training and test data sets is represented, respectively.Then, the same neural network architecture was used to validate the data forces achieved by the Arduino platform and LabVIEW for easy detection.In particular, Figure 16a shows the matrix of response at the pressure force (F = 1.05 N) applied on the active cell (I11).Figure 16b exhibits the comparison between the true and predicted force targets obtained by ANN, expressed by a good performance in prediction.Therefore, the relative approximation error of the prediction distribution of the force applied on the mat is shown in Figure 16c.The result reveals that the approximation error equals 0 due to the Arduino embedded system.The structure of the neural network has been developed and defined using the coding language Python with libraries of Keras in TensorFlow.

Conclusions
This article describes sensitive smart mats based on the polymeric Velostat material.Various designs, geometries, electrical, and mechanical properties of homemade sensor mats have been investigated through the tests performed in the laboratory.The pressure sensor mat was interfaced with LabVIEW and the Arduino microcontroller in order to monitor and control the variation in resistance under applied pressure.The Arduino-based board was used to transfer the measured data into a laptop for evaluation and visualization.In addition, an approximation method based on neural network algorithms was developed to determine the relationship between different shapes of the mat, the pressure and stress exerted on the mat, the resistance of the conductive material, and the number of active sensing cells.The developed neural network model easily solves the complexity and non-linearity of the sensor matrix data, combining the design and tests processed through Arduino.In the future work, the authors will investigate the real size mat with its feasibility and issues, including new technologies.

Figure 1 .
(a) Prototype Velostat pressure sensing mat n.1 with a sensitive cell size of 5 × 5 mm 2 , (b) Prototype Velostat pressure sensing mat n.2 with a sensitive cell size of 25 × 25 mm 2 .

Figure 2 .
(a) View of Velostat under an Andostar AD407 microscope (1200 times magnification).Top view of the mat with the visualization of insulation tape, (b) Velostat foil, and copper tape under an Andostar AD407 microscope.

Figure 3 .
(a) Typical medical bed; (b) matrix Velostat sensor; (c) concept of the schematic electric circuit.

Figure 5 .
(a) Laboratory stand consists of the Velostat pressure sensor mat, force gauge, digital multimeter, and power supply; (b) Laboratory stand used for measurements conducted using the Arduino embedded system (board, cables etc.) and laptop compatibility with LabVIEW 2018 SP1.

Figure 6 .
Figure 6.Resistance in function of pressure force applied on mat.

Figure 7 .
Figure 7. Resistance in the function of the force applied on the mat for different active cells.

Figure 8 .
Figure 8. Resistance in function of the weight applied on the mat.By applying some weights to the mat, the resistance changes.

Figure 9 .
(a) Technical drawing of the terminal tip (set); (b) Terminal set of the force gauge designed in Autodesk Inventor; (c) Realized terminal set of the force gauge.

Figure 10 .
Figure 10.Resistance in the function of the force applied on the Velostat pressure sensing mat n.2 for different points.

Figure 11 .
Figure 11.Resistance in the function of the force applied on Velostat pressure sensing mat n.1 for different points.

Figure 12 .
Figure 12.(a) Schematic of the electrical circuit in the Autodesk Eagle program using the ESP system, (b) LabVIEW Front Panel.

Figure 14 .
Comparison between True and Predicted Target: (a) training data set (b) test data set.

Figure 15 .Figure 16 .
Figure 16.ANN results carried out by the Arduino platform and LabVIEW: (a) matrix containing the pressure force of 1.05 N applied on active cells of the mat.(b) Comparison between the true and predicted target of force applied on the mat.(c) the relative approximation error of the prediction distribution of force applied on the mat.

Table 2 .
The safe working load generated by the patient on the individual parts of the medical bed.

Table 3 .
Geometrical and technical specifications.

Table 4 .
Weights W 1 ij of the first layer of the neural network.

Table 5 .
Weights W 2 ij of the second layer of the neural network.

Table 6 .
Weights W 3 ij of the third layer of the neural network.