The development of real-time, reliable, low-cost automatic Phonocardiogram (PCG) analysis systems is critical for early detection of Cardiovascular Diseases (CVDs), especially in countries with limited access to primary health care programs. Once the raw PCG acquired by the stethoscope has been preprocessed, the first key task is its segmentation into the fundamental heart sounds. For this purpose, an optimized hardware implementation of the segmentation algorithm is essential to attain a computer-aided diagnostic system based on PCGs. This paper presents the optimization of a U-Net-based segmentation algorithm for its implementation in a low-end Field-Programmable Gate Array (FPGA) using low-resolution fixed-point data types. The optimization strategies seek to reduce the system latency while maintaining a constrained consumption of FPGA resources, aiming for a real-time response from the stethoscope data acquisition to the CVDs detection. Experimental results prove a 64% decrease in latency compared to a baseline version, a 3.9% reduction of Block Random Access Memory, which is the limiting resource of the design, and a 70% reduction in energy consumption. To the best of our knowledge, this is the first work to exhaustively study different optimization strategies for implementing a large 1D U-Net-based model, achieving real-time fully characterized performance.
Remote Low-Cost Differential Isolated Probe for Voltage Measurements
Diego Antolín-Cañada , Francisco Jose Perez-Cebolla , Daniel Eneriz , Belén Calvo , and 1 more author
The growing development of communication technologies has given rise to the Internet of Things, which has led to the emergence of new cities, smart grids, and smart buildings, and the development of energy generation using renewable sources, as well as the emergence of new electrical loads such as the electric car. These advances give rise to the need for new media devices with remote communication, and require a greater control and monitoring of the state of the electrical grid in order to verify its correct state, as well as the detection of faults or alterations that are occurring in it due to these new generation systems or new loads. These remote, unsupervised measurement devices require galvanic isolation to protect the measurement and communication system, so that even if there is a break in the isolation, the integrity of the measurement and communication system is maintained. In addition, as it is a device prepared for multipoint measurement, the cost of the probe must be contained. This article details the design, implementation, and validation of a low-cost remote isolated differential voltage probe. This probe is intended for monitoring at network supply points, as well as for the verification of the European standard EN 50160 as a means of detecting disturbances in network behaviour. Its characteristics as a differential and isolated probe provide it with the possibility of floating voltage averaging, guaranteeing the integrity of the electronics of the low-voltage probe, i.e., the digitalisation and communication system. The measurements collected are sent via an MQTT protocol, which makes the remote probe a device compatible with the Internet of Energy. For the validation of the probe, a full functional test is performed, including FFT spectral analysis to verify the compliance of the mains voltage with the aforementioned European standard EN 50160.
The use of Convolutional Neural Networks (CNNs) to process Electroencephalograph (EEG) signals has been introduced in recent years with great success in the field of Brain-Computer Interfaces (BCI). Nevertheless, in order to advance towards a CNN-based BCI prototype, they must be efficiently mapped into low-power and low-cost hardware, enabling a real-time, portable and Internet-independent brain-computer communication. This work presents the implementation of an EEGNet-based model into an ARM Cortex M4F microcontroller, available on the Arduino Nano 33 Sense. Starting from models trained over the Physionet Motor Movement/Imagery dataset, 8-bit integer post-training quantization has been considered to reduce computing complexity, with a mean downgrade of 2.64±0.77% in accuracy. Moreover, their computational impact and memory footprint have been characterized by measuring the associated operations and Random-Access Memory (RAM) usage. Finally, a selected model has been implemented on the ARM Cortex M4F, with a latency of 137 ms and an energy per inference of 2.55 mJ, a 40% lower than other EEGNet implementation on the same microcontroller.
Contactless current sensing allows the measurement of energy consumption in electric and electronic circuits without the need of alter the structure of the system under study. For this purpose, contactless probes are based on the measurement of the magnetic field generated by the monitored current. Typically, for both AC and DC current sensing Hall-effect magnetic sensors are used. With a suitable configuration, portable low-cost Hall-based current probes can measure currents below 10 mA, suitable for energy monitoring in Internet of Things (IoT) devices, home appliances consumption, etc. However, for better response linearity and resolutions below 1 mA it is necessary to seek for alternative solutions. This paper presents an analysis of the use of magnetoresistance devices based on quantum tunnel effect (TMR, tunnel magnetoresistance) to achieve these features. The main characteristics of a commercial low-cost TMR-based device with a suitable resolution are measured, and compared to equivalent current sensing devices based on Hall-effect.
Multichannel electroencephalograph (EEG) signals data acquisition is non-invasive and easy to implement, thus being the preferred brain-related information carriers for Brain Computer Interfaces (BCIs). Since BCIs must be capable of processing information in real-time, their implementation in edge devices is currently being boosted, particularly on Field-Programmable Gate Arrays (FPGA). In this work, a real-time EEG acquisition system based on the XADC of the Xilinx Zynq FPGA is presented, meeting the requirements of a well-known BCI processing algorithm, the EEGNet. Performed tests show minimal error in the acquisition, whose effects in the EEGNet accuracy are negligible.
The measurement of the magnetic field generated by a current flowing in a wire allows the contactless estimation of its value. This non-invasive measurement technique can be applied to occasional monitoring of energy consumption in electrical and electronic systems. In this paper, based on low-cost linear Hall-effect sensors, a basic circuit for AC and DC current sensing is presented targeting current ranges of home and automotive applications. With an accuracy of 10 mA, the probe prototype consists of a differential configuration with programmable gain, so that the output voltage can be dynamically set to cover the input range of an analog-to-digital converter.
Exploring a Segmentation-Classification Deep Learning-based Heart Murmurs Detector
Daniel Enériz, Antonio J. Rodríguez-Almeida , Himar Fabelo , Samuel Ortega , and 4 more authors
This work presents the advances of the UZ-ULPGC team in the Heart Murmur Detection from Phonocardiogram Recordings: The George B. Moody PhysioNet Challenge 2022. As the 2016 challenge proved the success of the combination of a segmentation algorithm and a classifier, a deep learning-based murmur detector is developed using the sequence segmentation-classification. A U-Net-based segmentation model is used to extract each cardiac cycle from the PCG with state-of-the-art accuracy. Three deep models are tested for the classification: a model based on four independent 1D-convolutional feature extractors; its variation enabling combination of the features; and an autoencoder. Furthermore, to enable unique patient diagnostic, a decision model gathering all the patient-related cardiac cycles information is added. All classifiers show limited performance, probably due to the heavy class imbalance of the data at the cardiac cycle level and the minimal preprocessing chosen in the architecture. Note that our models have not been tested in the hidden challenge data and therefore we are not ranked. Hence, a 10-fold cross-validation over the training set is used to evaluate their performance, with the best model getting a weighted accuracy score in the presence task of 0.58±0.10 and 10 735±2208 in Challenge cost score for the outcome.
Español
Hacia la implementación on the edge de un segmentador de PCG basado en la U-Net
Daniel Enériz, Antonio J. Rodriguez-Almeida , Himar Fabelo , Nicolas Medrano , and 2 more authors
In Jornada de Jóvenes Investigadores del I3A , Nov 2022
Un sistema de asistencia al diagnóstico de enfermedades cardiovasculares requiere de precisión y respuesta en tiempo real, algo que se puede alcanzar gracias a la implementación de modelos deep learning on the edge. En este trabajo se presenta la reducción de un modelo para la segmentación de fonocardiogramas y su efecto en la implementación sobre FPGAs low-spec.
Español
Herramienta Didáctica para el Autoaprendizaje del Cálculo de Disipadores
Diego Antolín , Daniel Enériz, F. J. Pérez-Cebolla , J. Ponce , and 2 more authors
In Libro de actas TAEE 2022 XV Congreso de Tecnología, Aprendizaje y Enseñanza de la Electrónica , Nov 2022
La sociedad actual y el estudiantado universitario consume la información de manera más digital. En este contexto, se plantea la necesidad de proporcionar al estudiante una herramienta digital, que le resulte atractiva y didáctica en el proceso de aprendizaje de los fundamentos de la electrónica de potencia. Concretamente, la herramienta se centra en la metodología a seguir para el cálculo del disipador térmico. La aplicación interactiva desarrollada, denominada “Cálculo de Disipadores (CdD)”, permite determinar la resistencia térmica del disipador según el modo de operación del componente y sus características intrínsecas, de forma que es posible identificar las dependencias de las resistencias térmicas unión-cápsula, cápsula-disipador y la temperatura ambiente, contribuyendo al aprendizaje autónomo. Utiliza software libre en línea con el Objetivo de Desarrollo Sostenible 4 (ODS 4), proporcionando a la aplicación el formato de un Recurso Educativo en Abierto (REA).
Español
Píldoras Audiovisuales como Apoyo a las sesiones de Laboratorio
Jorge Pérez-Bailón , Belen Calvo , Daniel Enériz, Nicolás Medrano , and 1 more author
In Libro de actas TAEE 2022 XV Congreso de Tecnología, Aprendizaje y Enseñanza de la Electrónica , Nov 2022
En este trabajo se presenta la elaboración de nuevo material docente para las sesiones de laboratorio de la asignatura de Técnicas Físicas II, del tercer curso del Grado en Física de la Universidad de Zaragoza, en formato de píldoras audiovisuales. El objetivo es dotar al alumno de un material con explicaciones y demostraciones sobre las herramientas y técnicas que van a necesitar a lo largo de las diferentes sesiones prácticas. Para ello se han elaborado diferentes vídeos explicando la instrumentación que van a utilizar y las bases de programación y automatización de medidas haciendo uso de software libre.
Español
Sistemas de Medida Remotos en el Máster en Física y Tecnologías Físicas
Nicolás Medrano , Belen Calvo , Daniel Enériz, Diego Antolín , and 1 more author
In Libro de actas TAEE 2022 XV Congreso de Tecnología, Aprendizaje y Enseñanza de la Electrónica , Nov 2022
Este trabajo presenta una actividad de aprendizaje basado en proyectos cuyo objetivo es proporcionar al alumnado de la asignatura Instrumentación Inteligente del máster universitario en Física y Tecnologías Físicas las herramientas necesarias para implementar un laboratorio básico con automatización de medidas y posibilidad de acceso remoto. Así, esta propuesta incorpora el concepto remoto como propia finalidad: el alumnado que curse este módulo adquirirá las competencias básicas para poner en marcha un laboratorio con control automatizado de medidas y acceso remoto mediante protocolo TCP/IP, todo ello empleando herramientas open source.
2021
Español
Brain-Computer Interface basada en el procesado de EEG on the edge para reconocimiento de tareas de imaginación motora
Daniel Enériz, Ana Caren Hernández-Ruiz , Nicolas Medrano , and Belen Calvo
In Jornada de Jóvenes Investigadores de Química y Física de Aragón , Nov 2021
One of the most popular Brain-Computer Interface (BCI) paradigms is the classification of motor imagery tasks using Electroencephalograph signals (EEG). Recent works suggest the use of Convolutional Neural Networks (CNNs) to both extract the EEG features and classify them in a single compact solution. Since BCIs are meant to be run in embedded hardware, compact models and data reduction strategies are necessary. An EEGNet-based model is presented in this work, which achieves results similar to those of the state-of-the-art of 83.15 %, 75.74 % and 65.75 % in classification accuracy on 2-, 3-, and 4-class MI tasks in global validation on the Physionet Motor Movement/Imagery dataset. Taking advantage of its lower model complexity, a preliminary FPGA processor design using fixed-point datatypes is introduced, to evaluate resources consumption and latency on a low-spec system on chip approach.
Español
Procesado on the edge de señales EEG para reconocimiento de tareas de imaginación motora
Daniel Enériz, Ana Caren Hernández-Ruiz , Nicolas Medrano , and Belen Calvo
In Jornada de Jóvenes Investigadores del I3A , Nov 2021
The continuous development of more accurate and selective bio- and chemo-sensors has led to a growing use of sensor arrays in different fields, such as health monitoring, cell culture analysis, bio-signals processing, or food quality tracking. The analysis and information extraction from the amount of data provided by these sensor arrays is possible based on Machine Learning techniques applied to sensor fusion. However, most of these computing solutions are implemented on costly and bulky computers, limiting its use in in-situ scenarios outside complex laboratory facilities. This work presents the application of machine learning techniques in food quality assessment using a single Field Programmable Gate Array (FPGA) chip. The characteristics of low-cost, low power consumption as well as low-size allow the application of the proposed solution even in space constrained places, as in food manufacturing chains. As an example, the proposed system is tested on an e-nose developed for beef classification and microbial population prediction.
Nowadays, most of the automatized measurement processes are carried out by VISA (Virtual Instrument Software Architecture) compatible instruments, that execute the instructions provided by a host computer connected through wired standard buses, as USB (Universal Serial Bus), GPIB (General-Purpose Instrumentation Bus), PXI (PCI eXtensions for Instrumentation) or Ethernet. To overcome the intrinsic limitations associated to these wired systems, this work presents an instrumentation control system based on the IEEE 802.11 wireless communications standard. Intended for instruments having a USB control port, this port is connected to a gateway based on a compact Raspberry Single Board Computer (SBC) and thus the instrument can be connected to the host computer via Wireless Fidelity (WiFi), easily allowing the deployment of an ad-hoc instruments communication network in the working area or its connection to a previously deployed general purpose WiFi network. Developed under Python, the operation commands, wireless link protocol, and USB connection allow two modes of operation to provide system flexibility: a live mode, where commands are sent individually from the host computer to the selected instrument; and a standalone mode, where a full measurement process can be entirely downloaded in the gateway to be autonomously executed on the instrumentation. The system performance in both operation modes, distance of operation, time latencies, and operating lifetime in battery operation have been characterized.
2020
Español
Implementación de redes neuronales en FPGAs usando tipos de datos de punto fijo
Daniel Enériz, Nicolás Medrano , and Belén Calvo
In IX Jornada de Jóvenes Investigadores del I3A , 2020
Automated instrumentation allows monitoring complex processes synchronizing the acquisition of physical magnitudes measured from different instruments. For this, standard communication protocols are used to send and receive both messages and data between the different components of the system. Most instrument communication protocols are based on wired standard buses, so that their application is restricted to relatively small environments, and the instruments mobility is limited. This work presents a Raspberry-based gateway which enables the wireless communication of an instrument, providing an IEEE 802.11 wireless link to Virtual Instrument Software Architecture (VISA) compatible instruments having a USB control bus. The compatibility of this proposal with the USB standard, available in a vast majority of the commercial instrumentation, allows its application in most of automated measurement systems. In addition, the use of Wi-Fi (Wireless Fidelity) as wireless protocol allows take advantage of a Wi-Fi infrastructure already deployed in the environment, or the use of a specific wireless network using a dedicated router if required. The proposed communications system has been successfully tested in a real scenario, measuring the signal propagation in a coaxial cable.
This demo presents a wireless automated measurement system based on a low-cost compact gateway developed in Python on a Raspberry Pi Zero W. It has been designed for VISA compliant instruments having an USB control port. The gateway is plugged to the USB connector of the instrument, converting the strings sent from the measurement host via Wi-Fi into SCPI commands forwarded to the instrument through its USB port and vice-versa. As in the gateway, the application running on the measurement host is developed on Python. The system is tested measuring the velocity of propagation of a pulse traveling along a coaxial wire at different distant probing points.
theses
2020
M.Sc.
Aplicación de sistemas digitales programables en la extracción de información por fusión sensorial en dispositivos ubicuos