Download as pdf or txt
Download as pdf or txt
You are on page 1of 69

Applied Biomedical Engineering Using

Artificial Intelligence and Cognitive


Models 1st Edition Garza Ulloa
Visit to download the full and correct content document:
https://ebookmeta.com/product/applied-biomedical-engineering-using-artificial-intellig
ence-and-cognitive-models-1st-edition-garza-ulloa/
More products digital (pdf, epub, mobi) instant
download maybe you interests ...

Artificial Intelligence and Applied Mathematics in


Engineering Problems 1st Edition D. Jude Hemanth

https://ebookmeta.com/product/artificial-intelligence-and-
applied-mathematics-in-engineering-problems-1st-edition-d-jude-
hemanth/

Systems Engineering and Artificial Intelligence

https://ebookmeta.com/product/systems-engineering-and-artificial-
intelligence/

Cognitive Electronic Warfare: An Artificial


Intelligence Approach Haigh

https://ebookmeta.com/product/cognitive-electronic-warfare-an-
artificial-intelligence-approach-haigh/

Applied Artificial Intelligence in Business: Concepts


and Cases (Applied Innovation and Technology
Management) 1st Edition Leong Chan

https://ebookmeta.com/product/applied-artificial-intelligence-in-
business-concepts-and-cases-applied-innovation-and-technology-
management-1st-edition-leong-chan/
Urban Freight Analytics: Big Data, Models, and
Artificial Intelligence 1st Edition Eiichi Taniguchi

https://ebookmeta.com/product/urban-freight-analytics-big-data-
models-and-artificial-intelligence-1st-edition-eiichi-taniguchi/

Practical Biomedical Signal Analysis Using MATLAB®


(Series in Medical Physics and Biomedical Engineering)
2nd Edition Blinowska

https://ebookmeta.com/product/practical-biomedical-signal-
analysis-using-matlab-series-in-medical-physics-and-biomedical-
engineering-2nd-edition-blinowska/

Deployable Multimodal Machine Intelligence:


Applications in Biomedical Engineering 1st Edition
Hongliang Ren

https://ebookmeta.com/product/deployable-multimodal-machine-
intelligence-applications-in-biomedical-engineering-1st-edition-
hongliang-ren/

Computational Intelligence and Data Sciences: Paradigms


in Biomedical Engineering 1st Edition Taylor & Francis
Group

https://ebookmeta.com/product/computational-intelligence-and-
data-sciences-paradigms-in-biomedical-engineering-1st-edition-
taylor-francis-group/

Artificial Intelligence and Computing Logic: Cognitive


Technology for AI Business Analytics 1st Edition Cyrus
F. Nourani

https://ebookmeta.com/product/artificial-intelligence-and-
computing-logic-cognitive-technology-for-ai-business-
analytics-1st-edition-cyrus-f-nourani/
Applied Biomedical Engineering Using Artificial
Intelligence and Cognitive Models
This page intentionally left blank
Applied Biomedical
Engineering Using Artificial
Intelligence and Cognitive
Models

Jorge Garza-Ulloa
CEO/Director Garza Ulloa Research Consulting Services,
University of Texas, El Paso, TX, United States
Academic Press is an imprint of Elsevier
125 London Wall, London EC2Y 5AS, United Kingdom
525 B Street, Suite 1650, San Diego, CA 92101, United States
50 Hampshire Street, 5th Floor, Cambridge, MA 02139, United States
The Boulevard, Langford Lane, Kidlington, Oxford OX5 1GB, United Kingdom
Copyright © 2022 Elsevier Inc. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical, including
photocopying, recording, or any information storage and retrieval system, without permission in writing from the publisher.
Details on how to seek permission, further information about the Publisher’s permissions policies and our arrangements with
organizations such as the Copyright Clearance Center and the Copyright Licensing Agency, can be found at our website: www.
elsevier.com/permissions.
This book and the individual contributions contained in it are protected under copyright by the Publisher (other than as may
be noted herein).
Notices
Knowledge and best practice in this field are constantly changing. As new research and experience broaden our understanding,
changes in research methods, professional practices, or medical treatment may become necessary.
Practitioners and researchers must always rely on their own experience and knowledge in evaluating and using any informa-
tion, methods, compounds, or experiments described herein. In using such information or methods they should be mindful of
their own safety and the safety of others, including parties for whom they have a professional responsibility.
To the fullest extent of the law, neither the Publisher nor the authors, contributors, or editors, assume any liability for any
injury and/or damage to persons or property as a matter of products liability, negligence or otherwise, or from any use or
operation of any methods, products, instructions, or ideas contained in the material herein.

British Library Cataloguing-in-Publication Data


A catalogue record for this book is available from the British Library
Library of Congress Cataloging-in-Publication Data
A catalog record for this book is available from the Library of Congress
ISBN: 978-0-12-820718-5

For Information on all Academic Press publications


visit our website at https://www.elsevier.com/books-and-journals

Publisher: Mara Conner


Acquisitions Editor: Chris Katsaropoulos
Editorial Project Manager: Emily Thomson
Production Project Manager: Niranjan Bhaskaran
Cover Designer: Greg Harris
Typeset by MPS Limited, Chennai, India
Dedication

Every human is unique, and their health and well-being must be assured with self-care under the supervision of healthcare pro-
fessionals who now have easy access to use Biomedical engineering tools based on artificial intelligence models for better
understanding of day-to-day pattern changes in their patients, and obtain measurable values for more precise feedback and rec-
ommend appropriate advice and support for staying healthy.

This book is dedicated to all those who face human illness, diseases, and disorders. These three can be defined as
follows:
G Human illness is defined as body damage that needs to be cured such as infections, injuries, cells degeneration.
G Human diseases can be defined as states or reactions that must be managed, for example, pain, discomfort, weak-
ness, and fatigue, and
G Human disorders can be defined as function abnormalities that must be treated such as physical, mental, genetic,
emotional/behavioral, and functionals.
The complexity for the kind of analysis needed is bondless and can only be analyzed through the combination of
multidisciplinary sciences such as Biomedical Engineering, Cognitive Science, and Computer science and applying dif-
ferent Artificial Intelligent and cognitive models.

Helping to find better solutions that affect human health,


so that all can have a better, more productively, and enjoyable world!

Jorge Garza-Ulloa
This page intentionally left blank
Contents

About the author xi 1.6.4 Cognitive computing applying AI


Foreword xiii technologies 29
Preface xv 1.6.5 Cognitive model obtainment 30
Acknowledgment xix 1.6.6 Inference engine 31
1.7 Neuroscience, cognitive science,
and AI models 31
1. Biomedical engineering and the 1.7.1 The near future of neuroscience,
evolution of artificial intelligence 1 cognitive science, and AI-ML-DL-CC 34
1.1 Introduction 1 References 35
1.2 Biomedical engineering 2
1.2.1 Main purposes of AI in biomedical
engineering 2 2. Introduction to cognitive science,
1.2.2 AI and biomedical engineering help in cognitive computing, and human
medical education 3
1.3 Artificial intelligence 4
cognitive relation to help in the
1.3.1 Turing test/Turing machine 4 solution of artificial intelligence
1.3.2 Basic types of AI systems based on biomedical engineering problems 39
capabilities 5 2.1 Introduction 39
1.3.3 Basic types of AI systems based on 2.2 Brain, spinal cord, and nerves 40
functionality 7 2.3 Neurons and neural pathways in cognition 41
1.3.4 AI technology evolution 8 2.3.1 Neurons and cognition 41
1.3.5 AI in industries 10 2.3.2 Neural pathway and cognition 43
1.4 Machine learning 11 2.3.3 Dopamine pathways and cognition 44
1.4.1 ML seven specific steps 11 2.4 Cognitive science 45
1.5 Deep learning 16 2.5 Natural Language Processing 48
1.5.1 Difference between deep learning and 2.5.1 Step 1) Reading dataset for NLP 49
machine learning 16 2.5.2 Step 2) Preprocessing text for NLP 49
1.5.2 Types of artificial neural networks 17 2.5.3 Step 3) Data vectorization in NLP 49
1.5.3 Feed forward neural network 18 2.5.4 Step 4) Feature engineering in NLP 50
1.5.4 Backpropagation neural network 20 2.5.5 Step 5) ML model selection for NLP 50
1.5.5 Recurrent neural networks 22 2.6 MATLABs toolboxes solution for natural
1.5.6 Memory augmented neural networks 25 language processing 50
1.5.7 Modular neural networks 25 2.6.1 Natural Language Processing
1.5.8 Evolutionary deep neural networks 26 applications with MATLAB 51
1.6 Cognitive science 27 2.6.2 “NLP Topic Models” with MATLAB 52
1.6.1 Cognitive computing 28 2.6.3 “NLP audio files” with MATLAB 57
1.6.2 Signal recognition instruments 29 2.6.4 “NLP Text to Speech” using MATLAB 58
1.6.3 Cognitive detection of human-like 2.6.5 “NLP Speech to Text” with MATLAB
abilities 29 and IBM Cloud API 60

vii
viii Contents

2.7 Cloud service and AI 76 4.2.4 Survival models 178


2.7.1 Cloud service providers and AI 76 4.2.5 Association Rules 178
2.8 IBM Cloud, IBM Watson, and Cognitive 4.3 ML clusters, classification, and regression
apps 77 models 179
2.8.1 IBM Cloud solution for natural 4.4 Naive Bayes family models for supervised
language processing 78 learning 180
2.8.2 IBM Cloud exercise to create APIs 4.4.1 Models: Gaussian Naive Bayes,
for NLP applications 78 multinomial Naive Bayes, Bernoulli
2.9 The future of the relationship between Naive Bayes, Kernel Naive Bayes 181
cognitive science, cognitive computing, and 4.5 k-Nearest neighbor family models for
human cognition 110 supervised learning 181
References 110 4.5.1 Family models: fine kNN,
Further reading 111 medium kNN, coarse kNN,
cosine kNN, cubic kNN, and
weighted kNN 181
3. Artificial intelligence models 4.6 Decision trees family models for
applied to biomedical engineering 113 supervised learning 182
3.1 Introduction artificial intelligence and 4.6.1 Family models: fine decision tree,
biomedical engineering 113 medium decision tree, and coarse
3.2 AI optimization in biomedical decision tree 182
engineering 114 4.7 Support vector machine family
3.3 Evolutionary algorithms for members 183
AI optimization in BME 115 4.7.1 Family models: linear SVM, fine
3.3.1 A typical evolutionary algorithm 116 Gaussian SVM, medium Gaussian
3.3.2 Genetic algorithms for SVM, coarse Gaussian SVM,
AI optimization in BME 118 quadratic SVM, and cubic SVM 183
3.3.3 Genetic algorithm for 4.8 Artificial neural network family models 184
AI optimization in BME under 4.8.1 Feed forward neural network family
MATLABs 120 models: perceptron, multilayer
3.3.4 General analysis and optimization of perceptron, radial basis network,
2D and 3D data in biomedical probabilistic neural network,
engineering 121 extreme learning machine 184
3.3.5 MATLAB analysis and optimization of 4.8.2 Backpropagation neural networks 185
“2D” data in biomedical 4.9 Discriminant analysis family models 185
engineering 124 4.9.1 Family models: linear discriminant
3.3.6 MATLAB analysis and optimization analysis, quadratic discriminant
of 3D data in biomedical analysis 185
engineering 126 4.10 Logistic regression classifier 186
3.4 IBM watson studio for artificial 4.10.1 Family models “logistic
intelligence 134 regression” 186
3.4.1 IBM SPSS Modeler Flow 136 4.11 Ensemble classifiers family models 186
3.4.2 IBM Watson using SPSS Modeler 4.11.1 Models: AdaBoost, RUSBoost,
Flow for general dataset analysis 138 Subspace kNN, Random Forrest,
3.5 Examples of applications of evolutionary Subspace discriminant 186
algorithms with other AI tools in 4.12 IBM ML Solution: IBM Watson SPSS 187
biomedical engineering 170 4.12.1 SPSS Modeler flows . Modeling 187
References 172 4.12.2 SPSS Modeler flows . Output 189
References 333
Further reading 334
4. Machine learning models applied to
biomedical engineering 175
4.1 Introduction 175 5. Deep learning models principles
4.2 Choosing the best ML model 175 applied to biomedical engineering 335
4.2.1 Unsupervised learning 176 5.1 Deep learning based on artificial neural
4.2.2 Supervised learning 176 networks 335
4.2.3 Reinforcement learning 177 5.2 Feed forward neural networks types 336
Contents ix

5.2.1 Perceptron (P) or single-layer 6.2.1 Recurrent Neural Network vanilla 509
perceptron network 337 6.2.2 Long/short-term memory 511
5.2.2 Multilayer perceptron 338 6.2.3 Gated recurrent unit networks 512
5.2.3 Radial basis function network 340 6.2.4 Recurrent convolutional neural
5.2.4 Probabilistic neural network 342 networks 536
5.2.5 Extreme Learning Machine 343 6.2.5 Regional-Convolutional Neural
5.3 Shallow neural network 346 Network Object detection in AI
5.3.1 Research 5.1 Feed Forward Neural models 536
Network to Analyze “Human Body 6.2.6 Hopfield Network 554
Fat” 346 6.2.7 Boltzmann Machine 561
5.3.2 Research 52 Neural Network for 6.2.8 Restricted Boltzmann Machine 562
clustering based on “Self-Organizing MAP 6.2.9 Liquid State Machine 569
through a Shallow Neural Network” to 6.2.10 Echo State Network 570
analyze Surface Electromyography 6.2.11 Korhonen Network 580
signals 370 6.3 Memory augmented neural networks
5.3.3 Research 5.3 Neural Network for types 581
Dynamic Time series based on a 6.3.1 Neural Turing machine 581
“NARX is a nonlinear autoregressive 6.3.2 Differentiable Neural Computers 583
exogenous model” to analyze vertical 6.4 Modular Neural Networks types 592
Ground Reaction Forces signals 389 6.4.1 Deep Belief Network 592
5.4 Backpropagation neural networks types 411 6.5 Evolutionary Deep Neural Networks
5.4.1 Auto Encoder 411 types 601
5.4.2 Variational Auto Encoder 413 6.5.1 Capsule Networks 601
5.4.3 Denoising Auto Encoder 414 6.5.2 Attention networks 603
5.4.4 Sparse Auto Encoder and stacked auto References 604
Further reading 607
encoders 415
5.4.5 Deep Convolution Network or
ConvNet 437
5.4.6 Deconvolutional network 438 7. Cognitive learning and reasoning
5.4.7 Deep Convolutional Inverse Graphics models applied to biomedical
Network 439 engineering 609
5.4.8 Generative Adversarial Network 439 7.1 Introduction 609
5.4.9 Deep Residual Network or Deep 7.2 Artificial intelligence and Cognitive
ResNet 440 Computing Agents System (AI-CCAS) 609
5.5 Transfer learning from pretrained deep 7.3 Inference engine and research example 612
learning networks 442 7.3.1 Research 7.1 612
5.5.1 Research 5.5 “Pretrained Deep 7.3.2 Research 7.2 615
Convolutional Neural Network to obtain 7.4 Action generation 627
an AI model to classify Mammograms 7.5 Business intelligence in healthcare 627
standard views types” 443 7.6 Learning and reasoning relationship of
biomedical engineering, cognitive science,
5.5.2 Research 5.6 modify a “Pretrained Deep
and computer science through artificial
Convolutional Neural Network” to obtain intelligent models 629
an AI model to “classify Mammograms 7.6.1 Cognitive learning and reasoning 629
view type and suggest breast abnormalities 7.6.2 Deductive reasoning 630
as possible breast tumor” 461 7.6.3 Inductive reasoning 630
5.5.3 Research 5.7 “custom Deep Convolutional 7.6.4 Abductive reasoning 631
Neural Network” to obtain an AI model to 7.6.5 Abductive reasoning for medical
“classify Cervical X-rays view types” 482 diagnosis 634
References 505
7.6.6 Metaphoric reasoning 635
7.6.7 Neuro-Fuzzy logic reasoning as
6. Deep learning models evolution applied cognitive reasoning 636
to biomedical engineering 509 7.6.8 Visuospatial relational reasoning 639
6.1 Deep learning models evolution 509 7.6.9 Cognitive learning and relationship
6.2 Recurrent neural networks types 509 with neuroscience of reasoning 640
x Contents

7.7 Cognitive Learning and Reasoning research and Reasoning with Cognitive
example applying AI-CCAS framework 640 Computing” 670
7.7.1 Research 7.3 641 7.8.5 Challenge research project # 5: Analyze
7.7.2 Research 7.4 653 Neurologic opinion words with positive
7.7.3 Research 7.5 661 and negative frequently used to describe
7.8 Challenge research for “Applied Biomedical patient’s behavior with the symptoms
Engineering using Artificial Intelligence and labeled” 671
Cognitive Models” 667 7.8.6 Challenge research project # 6:
7.8.1 Challenge research project # 1: “Classify status of neurologic disease
“Inductive Reasoning AI evaluation test patients analyzing their images,
for neurologic diseases patients under movements in real time video, and
Cognitive Learning and Reasoning speech 672
applying Cognitive Computing” 667 7.8.7 Challenge research project # 7:
7.8.2 Challenge research project # 2: “human voice cognitive analysis for
“Abducting Reasoning using AI cognitive services as voice
evaluation tests for patients under therapy” 672
Cognitive Learning and Reasoning 7.8.8 Challenge research project # 8:
applying Cognitive Computing” 669 Cognitive Behavioral Therapy 673
7.8.3 Challenge research project # 3: 7.8.9 Challenge research project # 9:
“Metaphoric reasoning for clinical detection of “prefatigue/fatigue
diagnosis using Cognitive Learning and by stress and anxiety” 673
Reasoning applying Cognitive 7.8.10 Top Challenge research project # 10
Computing” 669 building a Cognitive health
7.8.4 Challenge research project # 4 Dashboard 674
“Neurologic  evaluating anxiety in References 674
neurologic diseases using Cognitive Further Reading 676
Therapy Theory using Cognitive Learning
Index 677
About the author

G Applied Biomechatronics Using Mathematical Models


(Elsevier 2018) with the goal of developing biomedi-
cal solutions for degenerative disease and injuries, that
affect the human movements based on the mathemati-
cal modeling of human kinematics and kinetics to ana-
lyze motor-symptoms.
Dr. Garza-Ulloa has published his research in interna-
tional journals including
G Update on Parkinson’s Disease at American Journal
of Biomedical Science & Research (2019);
Jorge Garza-Ulloa, CEO/Director of Garzaulloa
G Theory of Stress-Anxiety-Sleep Disorders-Neural
Research Consulting Services at http://www.garzaulloa.
Damage Cyclic Chain and the Progression of
org/. He graduated from the doctoral program in
Parkinson’s Disease at the American Journal of
Electrical & Computer Engineering at the University of
Biomedical Science & Research (2019);
Texas at El Paso (UTEP) in May 2013. He received his
G A Parkinson’s disease journey from patient side view
Master of Science degree in electrical and computer engi-
at American Journal of Biomedical Science &
neering in 1980 from the University of Massachusetts at
Research (2019);
Amherst. Dr. Garza-Ulloa has been the recipient of
G Assessment and evaluation of the dynamic behavior of
numerous honors and awards including a University of
muscles with special reference to subjects with
Texas at El Paso Graduate School Research Award,
Diabetes Mellitus, Dr. Garza-Ulloa dissertation super-
Research Schellenberg Foundation, Stern Foundation,
vised by Dr. Thompson Sarkodie-Gyan (2013);
Elsevier grants, and others. Dr. Garza-Ulloa is currently G A Novel Mathematical Model for the Validation of the
teaching at the University of Texas at El Paso, United
Ground Reaction Force Sensor in Human Gait
States and continues his Biomedical Engineering research
Analysis at Journal Measurement Elsevier (2012);
at Research Consultant Services at El Paso, Texas, United
G A novelty mathematical model to predict Transition-
States.
to-Fatigue during isometric exercise on muscles of the
Dr. Garza-Ulloa is the author of the textbook/research
lower extremities at Engineering Supplement: World
books:
Congress on Engineering and Technology (2012);
G Applied Biomedical Engineering Using AI and G The Development/Design Theory and Methodology
Cognitive Models (Elsevier 2021), which focuses on Model for Mechatronics at International conference
the relationships between three different multidisci- meeting: ASEE Annual Conference (2012); and
pline engineering branches: Biomedical Engineering, others.
Cognitive Science and Computer science through
He has founded three international technologies
Artificial Intelligent models to study how the mental
research consulting companies and has been a leader in
process of the information during cognition when
developing new specialized solutions in multidisciplinary
“human illness, diseases, and disorders,” especially
fields.
neurologic diseases, are present in the human body
and

xi
This page intentionally left blank
Foreword

This book focuses on the relationships between three dif- during cognition when disorders of neurologic diseases
ferent multidisciplinary engineering branches: Biomedical are present in the human body, with the purpose of evalu-
Engineering, Cognitive Science, and Computer Science ating their nonmotors symptoms that will help find solu-
through different Artificial Intelligence models in order to tions for treatments, follow-ups, and, as a consequence,
analyze human illness, diseases, and disorders, with spe- improve their quality of life.
cial emphasis on the mental processes of the information Jorge Garza-Ulloa

xiii
This page intentionally left blank
Preface

This book Applied Biomedical Engineering Using basically as motors symptoms (related to movement disor-
Artificial Intelligence and Cognitive Models aims to help ders) and nonmotor symptoms (related to cognition and
people understand the importance of applying artificial not related to movement disorders). “Human Cognitive
intelligence (AI) and cognitive models following the Developmental Stages” and their relation to neurons and
development of mathematical models to be applied to neural pathways. These include Cognition and its integra-
many illnesses, diseases, and injuries with a special focus tion with multidiscipline sciences, Natural Language
on nonmotor aspects of neurologic disease process using Processing applications, NLP Text to speech, NLP
a biomedical engineering dataset to be analyzed, pro- Speech to Text, Audio Labeler for ML, and NLP analysis
cessed, classified, and predicted and obtain many AI mod- for Sentiment, Emotion, Keywords, Entities, Categories,
els to help in the developing of solutions that can be Concept and Semantic Roles with MATLABs and API
implemented in a standalone way or in revolutionaries as a set of functions and procedures allowing the creation
new frameworks as the Proposed General Architecture of applications that access the features or data of an oper-
framework of a Cognitive Computing Agents System (AI- ating system, application, or other services through IBM
CCAS) with special emphasis in their relationship with Cloud services.
neuroscience of reasoning based on Cognitive Learning Some examples and exercises for NLP Topics are in
and Reasoning (CL&R) using Cognitive Computing (CC). this chapter:
This book has seven chapters, covering the following G Theorical example of Bag of words NLP method (see
topics:
example 2.1)
Chapter 1, Biomedical Engineering and the G NLP Topic Models between a blog with a patient with
Evolution of Artificial Intelligence
neurologic disease and a researcher (see Research
A study of the interactions on different injuries, ill-
2.1)
nesses, and diseases with special emphasis in Neurology G NLP audio files with MATLAB (see example in
with Cognitive Science in Biomedical Engineering solu-
Section 2.6.3)
tions based on the evolution of AI through machine learn- G NLP Text to Speech using MATLAB (see example in
ing (ML), deep learning (DL), and CC. Provides an
Section 2.6.4)
introduction to the general framework architecture for AI- G NLP text to Speech as action generation using
CC Agent Systems (AI-CCAS) to help in the detection of
MATLAB (see example in Research 2.3)
cognitive human-like abilities with the objective of devel- G NLP text to Speech as action generation using
oping AI methods for medicine and healthcare through
MATLAB and IBM Cloud API (see example in
the analysis of numeric data, images, speech, and text to
Research 2.4)
help in the detection and diagnosis of illness or determine G Creating more IBM Cloud API services and testing
health conditions, with special emphasis on neurologic
them using from command lines with curl as an open
diseases.
software (see example at Research 2.5)
Chapter 2, Introduction to Cognitive Science, G And others
Cognitive Computing, and Human Cognitive Relation to
Help in the solution of AI Biomedical Engineering Chapter 3, Artificial Intelligence Models Applied to
Problems Biomedical Engineering
Provides an introduction for the analysis of bodily Provides an introduction for applying AI algorithms to
injuries, diseases, and neurological disorders separated resolve biomedical engineering problems through

xv
xvi Preface

evolutionary algorithms using the evolution of the spe- Chapter 5, Deep Learning Models Principles Applied
cies, trying to emulate the natural evolution as Genetic to Biomedical Engineering
Algorithms, Swarm Algorithms, traditional search meth- The underlying principle of DL is composed of neural
ods, optimization of numeric value problems in 2D and networks inspired by the biological elements that form
3D, visual analysis of Biomedical Engineering datasets of the human brain, as a collection of nodes emulating brain
different diseases from different Bioinstruments to ana- neurons, and their neuronal synapse connections as pri-
lyze the relationship between their attributes and applying mary elements of a net, that combined form mid-level ele-
AI tools. ments identified as artificial neural networks (ANNs),
Examples and tutorials in MATLAB and IBM Watson which in turn are combined with different architectures to
Studio SPSS Model Flow as form more complex networks. In this book, ANN is orga-
G
nized based on their architectural type, and the way of
Genetic Algorithm to deduct items in a bag from a list
their different components are connected to define the
that recommends taking to the hospital when a patient
specific learning goal as different types as Feed Forward
will stay for a month (see example in Research 3.1
Neural Network, Backpropagation Neural Networks,
and 3.2)
G
Recurrent Neural Networks, Memory Augmented Neural
Analysis and optimization of 2D data values from
Networks, Modular Neural Networks, and Evolutionary
Body measurement of nerve contractions applying
Neural Networks.
MATLAB (see example in Research 3.3)
G
The first two ANN types studied in this chapter are
Analysis and optimization of 3D data values from the
Perceptron (P), Multi-Layer Perceptron’s (MLP), Radial
center of mass of an upper extremity—right arm move-
Basis Function Network (RBF), Probabilistic Neural net-
ment from a patient applying MATLAB (see example
work (PNN), Extreme Learning Machine (ELM), Auto
in Research 3.4)
G
Encoders (AE), Variational Auto Encoder (VAE), Denoising
Diabetes analysis using IBM Watson using SPSS
Auto Encoder (DAE), Sparse Auto Encoder (SAE) &
Modeler Flow (see example in Research 3.5)
G
Stacked Auto Encoders, Deep Convolution Network (DCN),
And others
Deconvolutional Network (DN), Deep Convolutional
Chapter 4, Machine Learning Models Applied to Inverse Graphics Network (DCIGN), Generative
Biomedical Engineering Adversarial Network (GAN), Deep Residual Network
ML is presented as a subset of AI following the steps (DRN), plus family nets under Shallow Neural Network, and
to obtain a prediction model based on pattern recognition the special kind of net learning known as Transfer Learning
in data using clustering, classifiers, and regression mod- from Pretrained Deep Learning Networks.
els. Advice was given as to how to follow, select, find, All based on examples and practical research on
and implement the best ML models, according to the type Biomedical Engineering using existing AI tools from
of ML problem. Generally, this can be unsupervised MATLAB and IBM Watson Studio with research tutorial
learning, supervised learning, reinforcement learning, sur- examples to analyses and obtain prediction models for
vival models, association rules, and others. A study is pre- different biomedical datasets as:
sented of different the ML Models Families applying G Blood pressure reading using MLP
IBM Watson SPSS Modeler Flow/IBM Watson Machine G Heart rhythm analysis using RFB
Learning applications and MATLAB ML solution under G Types of flu classification using PNN
the Statistics and Machine Learning Toolbox with G Diabetes value prediction using ELM
research tutorial examples to analyses and obtain predic- G Human body fat estimation under FFN
tion models for different biomedical datasets as: G Diabetes readings clustering for consecutives visits
G K-Means ML Model for Diabetes using IBM Watson using Self-Organizing MAP (SOM)
SPSS Modeler Flow (see example in Research 4.1) G Ground reaction vertical forces using Neural Network
G Decision Tree ML Model for Heart disease using IBM for Dynamic Time series (NARX)
Watson SPSS Modeler Flow (see Research Tutorial G X-rays images reconstructions using AE
4.2) G Classify Mammograms standard views types under
G Kidney disease ML Auto Classifiers Models and Pretrained DCN
deploy the best model using IBM Watson SPSS G Classify Mammograms view type and suggest breast
Modeler Flow (see Research Tutorial 4.3) abnormalities as possible breast tumor under modifi-
G Breast cancer ML model and deploy the best model cation of a pretrained DCN
using IBM Watson AutoAI experimenter (see G Classify Cervical X-rays view types using a custom
Research Tutorial 4.4) DCN
G And others G And many others
Preface xvii

Chapter 6, Deep Learning Models Evolution Applied science using tools with exponential technologies such as
to Biomedical Engineering AI and others through its continuous exponential evolution
In this chapter, we focus on studying Deep Learning that includes ML, DL, and CC. With the main purpose of
Models Evolution that combine mid-level elements with obtaining useful AI models that can help analyze human
different connections. ANN forms more complex network health problems. Now is the time and place to apply them
family types organized as Recurrent Neural Networks, and many others in research challenge projects.
Memory Augmented Neural Networks, Modular Neural The AI cognitive models to be used for the AI-CCAS
Networks and Evolutionary Neural Networks. are studied in this chapter are: inference engine to extract
The ANN studied in this chapter are Vanilla Recurrent the information needed from knowledge storage AI stor-
Neural Network (RNN), Long Short-Term Memory age; Attention Network for NLP applying LSTM model
(LSTM), Gated Recurrent Unit (GRU), Recurrent to process information extracted by the AI-CCAS infer-
Convolutional Neural Networks (RCNN), Regional- ence engine; CL&R using deductive reasoning, inductive
Convolutional Neural Network (R-CNN), Hopfield reasoning, abductive reasoning, metaphoric reasoning,
Network (HN), Boltzmann Machine (BM), Restricted neuro-fuzzy logic reasoning, visuospatial relational rea-
Boltzmann Machine (RBM), Liquid State Machine soning, inferences fuzzy systems for fuzzy reasoning,
(LSM), Echo State Network (ESN), Korhonen Network cognitive sentiments analysis, reasoning evaluation for
(KN) also known as the Self-Organizing Map (SOM), neurologic diseases, and others.
Neural Turning Machine (NTM), Differentiable Neural Many research examples are explained to be applied
Computers (DNC), Deep Belief Network (DBN), Capsule to Biomedical Engineering solutions for this chapter as:
Networks (CapsNet), Attention Network (AN), and
others. G Extract text information about COVID-19 (SARS-
Many research examples are explained to be applied COVS-2) symptoms to develop the phenomenon
to Biomedical Engineering solutions as: fuzzy sets criteria to define the fuzzy input variables
G
needed for the appropriate fuzzy rules in the inference
Classify videos based on human body movements for
engine
human falls detection using LSMT G
G
Classify text of COVID-19 (SARS-COVS-2) symptoms
Classification for object detection of breast tumor in
extracted from the AI-CCAS inference engine using
mammogram using R-CNN
G
AN for NLP applying LSTM
Reconstruct noisy chest X-rays images using HN G
G
Abdominal body pain analysis to deduct cholecystitis
Reconstruct noisy chest X-rays images using RBM
G
applying inductive reasoning—causal arguments—
Differentiate normal and pneumonia on chest X-rays
inference of abduction
using Reservoir Computing approach for a simulation G Reasoning to be healthy applying abductive reason-
of LSM based on node-neurons from Spiking Neural
ing—causal argumentsbackward chaining
Networks (SNN) G
G
Deduct abnormal body temperatures applying abduc-
Analysis for COVID-19 respiratory transmission simu-
tive reasoning—causal arguments—paradigm case-
lation droplets/mini-droplets emissions simulating an
based
NTM based recursive function G
G
Reasoning to deduct if the patient has “flu” or
Analyze and differentiate normal and pneumonia chest
“COVID-19” applying Abductive reasoning—Causal
X-rays using DBN
G
arguments—Generative coherence metric
And many others G The impossible of reasoning for medical diagnosis of
Chapter 7, Cognitive Learning and Reasoning Parkinson’s disease applying Abductive Reasoning—
Models Applied to Biomedical Engineering causal arguments (cause  effect)
In this chapter, we will focus on many prestudies and G Metaphor inference reasoning to find behavior simi-
preanalyses of different Biomedical Engineering problems larities between cancer and COVID-19 by a metaphor
that need to be developed with specialized research pro- G Fuzzy Mamdani-type inference and/or Sugeno-type
jects applying the CL&R algorithm, that can be integrated inference for a liquid medicine for control cough in
into the Proposed General Architecture framework of a patients
Cognitive Computing Agents System (AI-CCAS) with G Deductive reasoning evaluation for neurologic dis-
special emphasis of Cognitive Learning and its relation- eases patients using NLP under CC
ship with the neuroscience of reasoning using CL&R G Cognitive sentiments analysis for neurologic diseases
under CC. The complexity of the analysis needed is bond- that affect mood changes applying NLP with CC
less, and only be analyzed through the multidisciplinary applying CNN-NLP model
sciences, where interactions of science as biomedical engi- G Linguistic Neuro-Fuzzing Modeling to analyze breast
neering, neurology, cognitive sciences, and computer cancer tumor
xviii Preface

G Challenge research to develop applications for G Challenge research project #6: Classify status of
Applied Biomedical Engineering using AI and neurologic disease patients analyzing their images,
Cognitive Models learned in this book movements in real-time video, and speech
G Challenge research project #1: Inductive Reasoning G Challenge research project #7: Human voice cogni-
AI evaluation test for neurologic diseases patients tive analysis for cognitive services as voice therapy
under CL&R applying CC G Challenge research project #8: Cognitive
G Challenge research project #2: Abducting Behavioral Therapy applying Cognitive Learning
Reasoning using AI evaluation tests for patients and its relationship with neuroscience of reasoning
under CL&R applying CC proposed as CL&R
G Challenge research project #3: Metaphoric reason- G Challenge research project #9: Detection of "prefa-
ing for clinical diagnosis using CL&R applying CC tigue/fatigue by stress and anxiety
G Challenge research project #4: Neurologic  evalu- G Top Challenge research project #10: Building a
ating anxiety in neurologic diseases using Cognitive health Dashboard
Cognitive Therapy Theory using CL&R with CC
G
Book companion website with MATLAB(R)
Challenge research project #5: Analyze Neurologic
/IBM Watson examples and dataset used in the
opinion words with positive and negative fre-
book: https://www.elsevier.com/books-and-jour-
quently used to describe patient’s behavior with
nals/book-companion/9780128207185.
the symptoms labeled
Acknowledgment

I would like to acknowledge all the people in my life, G Emma W. Schwartz, President and all MCA directives
especially those with “illness, diseases, and disorders,” and Team members
that trust in health care and have trusted in me to describe From Technological Institute of Ciudad Juárez
their limitations and their suffering, along with those who (Tecnológico Nacional de México Campus Cd. Juárez,
have provided suggestions for the ideas and the solutions (ITCJ):
explained in this book. G Mtro. Hermenegildo Lagarda Leyva Director ITCJ
I wish to acknowledge my family, who allowed me to G and students, researches and Faculty members
concentrate on this in-depth research for 3 years to From Viomed Consulting LLC
develop, organize, and write this textbook book; espe- G Jesus Carrillo CMDCP
cially my wife, in the advanced stages of Parkinson’s dis- From Mechatronics Automation
ease. Being her 24/7 caregiver inspired me to connect her G Javier Acosta, Engineer, Director
needs with the needs of many patients in order to reach G Charlie Yates, Ph.D President Chihuahua Cluster
an understanding of their feelings, and the urgency to find Energy & Consejo Nacional Clusteres Energéticos of
and develop processes to measure their status, to analyze Mexico (CONACEM)
the evolution of follow-ups, to develop analysis, and to G Jorge Young F. Eng. President Metropolitan Energy
try to find solutions for curing them or at least improving Cluster of México
their quality of life. “Applied Biomedical Engineering G Victor Hernandez, Engr. President Cluster of Artificial
Using Artificial Intelligence and Cognitive Models” can Intelligence & Cognitive Applications.
be used for learning and for analyzing the slow day-by- From Tesla Artificial Intelligence
day cognitive deterioration, in addition to the other symp- G Marcos Barraza, Engr.
toms of degenerative diseases. From The Piensa Institute
Special thanks go to all the people that helped in G Cruz A. Jimenez, Natural Intelligence & Business
many ways in the realization of this book: Intelligence
G
From Diest Consulting
Raul J Arizpe President and CEO, G
G
Hugo A. Becerra, President and many others
Diego Cruz IT, Ph.D UTEP Candidate IT System
researchers.
Director,
G Hugo Isuani. MD,FACR, Radiologist, I really think that every time that we meet people is
G Heidi Taboada-Jimenez, Ph.D., Associate Dean for special, because every human being is unique, and we
Research & Graduate and Associate Professor, IMSE complement each other with our learnings and teaching in
G Jaime Sanchez, Ph.D, Lecturer, IMSE life. Each of us can help to improve life based on our
G Vladik Kreinovich, Ph.D Professor, CS expertise and we can work together for solutions to the
G Thomas Boland, Ph.D Professor Director of problems, including health problems, that affect human-
Biomedical Engineering Program and many students, ity. Thanks to God, to give us the opportunity to be in the
faculty & researchers at UTEP right place, with the right people, in the right time, and to
G Pablo Rangel Ph.D. Assistant Professor S&E-School allow us to help others.
Of Engineering & CS Jorge Garza-Ulloa
From University of Trás-os-Montes é Alto Douro CEO/Director Garza Ulloa Research Consulting Services,
G Ivan Miguel Serrano Pires Ph.D Invited Assistant University of Texas, El Paso, TX, United States
Professor, Researcher Instituto de Telecomunicações http://www.garzaulloa.org
From Medical Center of the Americas Foundation
(MCA) & BIO El Paso-Juarez:

xix
This page intentionally left blank
Chapter 1

Biomedical engineering and the evolution


of artificial intelligence

1.1 Introduction the nature, tasks, and the functions of human cognition
as the process of acquiring knowledge and understand-
This book, “Applied Biomedical Engineering Using ing through thought, experience, and the senses.
Artificial Intelligence and Cognitive Models,” focuses on G Computer science (CS) is the scientific and practical
the relationship between three different multidisciplinary approach to computation using algorithms as a self-
engineering branches: “Biomedical Engineering,” contained sequence of actions to be performed as
“Cognitive Science,” and “Computer Science through calculation, data processing, and automated reasoning.
Artificial Intelligent models,” which includes “Machine In this book the study of “Artificial Intelligence (AI)”
Learning,” “Deep Learning,” and “Cognitive Computing,” is focused on the imitation of intelligent human behav-
to study how the nervous and musculoskeletal systems ior by a machine applying software algorithms to
obey movement orders, with the goal of the understanding develop models based on “Machine Learning,” “Deep
and obtainment of “AI models” of how information is Learning,” and “Cognitive Computing.” Each is
mentally processed during “cognition” when injuries, ill- described as follows:
ness, and/or neurologic diseases are present in the human x Machine Learning (ML) is a subset of “AI” that
body and affect the human body. Each of the multidisci- evolved from the study of pattern recognition and
plinary studies in this book is defined as the interaction computational learning theory.
between them as indicated in Fig. 1.1: x Deep Learning (DL) is another subset of “AI” and
G Biomedical engineering (BME) as the application of a special type of “ML” that simulates the neurons
engineering principles and design concepts to medi- and synapses of the human brain in its approach to
cine and biology for healthcare purposes (e.g., analy- processing data.
sis, diagnostic, confirmation, therapeutics). x Cognitive Computing (CC) is a subfield of “AI”
G Cognitive science (CoSi) is the interdisciplinary scien- that allow us to analyze human cognition to repre-
tific study of the mind and its processes. It examines sent the process studied in “Cognitive Science.”
“Cognitive Technology or Cognitive computing”
helps humans take better decisions with the help of
smart machines based on cognitive science that
studies the human brain and how it functions.
“CC” has also self-learning algorithms and lan-
guage tools; they rely on “data mining,” “pattern
recognition,” “Natural Language Processing” and
others tools to collect information to feed them-
selves, and computer systems based on cognitive
data, that can understand natural language and
interact with humans in a more natural way, with
the ability of these systems to understand, hold
FIGURE 1.1 The interaction of Biomedical Engineering, Cognitive firmly, and reason the collected information.
Science, and Computer Science, which includes Artificial Intelligence
The interactions of these three multidisciplines with
AI, Machine Learning ML, Deep Learning DL, and Cognitive
Computing CC, can be used for analysis detection, classification, and “Neurology”—a branch of medicine that studies disorders
forecast of neurologic diseases. and diseases of the nervous system including “central

Applied Biomedical Engineering Using Artificial Intelligence and Cognitive Models. DOI: https://doi.org/10.1016/B978-0-12-820718-5.00009-X
© 2022 Elsevier Inc. All rights reserved. 1
2 Applied Biomedical Engineering Using Artificial Intelligence and Cognitive Models

nervous system (brain and spinal cord),” and “peripheral regenerative tissue growth, pharmaceutical drugs, thera-
nervous system”—are studied in this book, with the main peutic biologicals, and many more that are developed
objective being the obtainment of “AI models on every day. “BME” is a multidisciplinary field that has
Biomedical Engineering,” especially with regard to inju- a lot of subfields such as *Bioinformatics,
ries and neurologic diseases of the human body, and Biomechanics, Biomaterials, Biomedical optics, Tissue
studying diseases of the brain, spine, and the nerves that engineering, Neural engineering, Pharmaceutical engi-
connect them and the musculoskeletal system. Based on neering, Clinical Engineering, Rehabilitation engineer-
the fact that there are more than 600 diseases of the ner- ing, and Medical devices.
vous system, such as brain tumors, epilepsy, Parkinson’s In all subfields of “BME” it is necessary to simulate
disease, and stroke, these diseases affect also the human the behavior of specific cases to understand them, and if
“cognitive system” that sends orders from the “central it is possible to resolve these complex problems through
nervous system (CNS)” through the “peripheral nervous the application of Artificial Intelligence models and
systems (PNS)” to do tasks using the musculoskeletal achieve solutions for different purposes, such as confirm
system and the way of reasoning. These actions can diagnoses, predict evolution, and many more.
be detected by many “Bioinstruments (Biomedical
Instruments)” and “cognitive data” allowing us to apply
“AI using ML-DL-CC models*” through algorithms to Note*: For more information on Biomedical Engineering
analyze, detect, classify, and forecast the process of dif- subfields, please read Chapter 1 of my book: “Applied
Biomechatronics Using Mathematical Models” [2].
ferent illnesses and injuries of the human body.
Note*: Examples and exercises Artificial Intelligence
using ML-DL-CC models are based on algorithms devel-
oped under MATLAB and IBM Watson Studio. 1.2.1 Main purposes of AI in biomedical
engineering
Important: The new concept for “Cognitive Learning and its The purpose of “AI in healthcare” is the use of “AI algo-
relationship with neuroscience of reasoning proposed as rithms” to approximate human cognition in the analysis of
Cognitive Learning-Reasoning (CL&R) using Cognitive multiple medical data through “AI models.” Recent tech-
Computing (CC)” is studied in Chapter 7, Cognitive nological AI advances are transforming medical science
Learning and Reasoning Models Applied to Biomedical and evolving biology through “AI systems and AI applica-
Engineering, with many research examples and challenges tions of Biomedical Engineering” with other multidisci-
for research to resolve. plinary fields, such as healthcare, bioclinical, medical
informatics, bioinformatics, medical data mining, medical
systems using automated reasoning and Meta-reasoning,
1.2 Biomedical engineering drug discovery, intelligent analysis of genomic and prote-
“Biomedical Engineering (BME)” is defined as the appli- omic data, biomedical ontologies, medical imaging, and
cation of engineering principles and design concepts to many other areas.
medicine and biology for healthcare purposes [1]. “BME” G “Healthcare using artificial Intelligence” has the
covers the gap between engineering and medicine, com- objectives of finding and applying efficient algorithms
bining the design and problem-solving skills of engineer- for analyzing the relationship between prevention,
ing with medical and biological science to advance treatment, and patient outcomes. AI helps healthcare
healthcare treatment, including diagnosis, monitoring, and in many different processes, such as management,
therapy. “BME” has recently emerged as its own study, clinical decision support systems, knowledge acquisi-
arising from many other engineering fields. Such an tion, and analysis of different illness and diseases, by
evolution is common from being an interdisciplinary applying “AI algorithms.”
specialization among already established fields, to being G “Bioclinical uses computational intelligence (CI),”
considered a field in itself. where “Bioclinical” is a specialty in clinical trials that
Much of the work of “BME” consists of research accelerates the development of new medical therapies,
and development, spanning a wide area of subfields. and “CI” is the theory, design application, and devel-
Prominent biomedical engineering applications include opment of biological and linguistic paradigms using
the development of biocompatible prostheses, many “AI algorithms,” encompassing computing paradigms
diagnostics, and therapeutic medical devices ranging like ambient intelligence, artificial life, cultural learn-
from clinical equipment to microimplants, common ing, artificial endocrine networks, social reasoning,
imaging equipment such as “magnetic resonance imag- and artificial hormone networks. Besides, “CI” plays
ing (MRI)” and “Electroencephalography (EEG),” a major role in developing successful intelligent
Biomedical engineering and the evolution of artificial intelligence Chapter | 1 3

systems, including games and cognitive developmental G “Biomedical ontologies.” In the “postgenomic era,”
systems [3]. “biomedical ontologies” are becoming increasingly
G “Medical informatics” is the intersection of “information popular in the computational biology community as
science,” “computer science,” and “healthcare.” This the focus of biology has started to shift from mapping
field deals with the resources, devices, and methods genomes to analyzing the vast amount of information
required to optimize the acquisition, storage, retrieval, resulting from functional genomics research. In fact,
and use of information in health and biomedicine. biomedical ontologies play a central role in integrating
G “Bioinformatics” is an interdisciplinary field combin- the information about various model organisms,
ing “biology,” “computer science,” “information engi- acquired under different conditions, and stored in het-
neering,” “mathematics and statistics” to analyze and erogeneous databases [7].
interpret biological data. “Bioinformatics scientists” G “Medical imaging” is the technique and process of
design and apply the computer systems and databases creating visual representations of the interior of a body
used to organize and analyze large amounts of geno- for clinical analysis and medical intervention, as well
mic, pharmacological, and other biological data. as visual representation of the function of some organs
G “Medical data mining” is the analysis of large datasets or tissues (physiology). “Medical imaging” seeks to
to discover patterns and use those patterns to forecast reveal internal structures hidden by the skin and bones,
or predict the likelihood of future events, thus helping as well as to diagnose and treat disease. it is part of
the healthcare industry to develop health systems to biological imaging and incorporates radiology, which
systematically use data and analytics to identify ineffi- uses the imaging technologies of X-ray radiography,
ciencies and best practices that improve care and magnetic resonance imaging, medical ultrasonography
reduce costs. The analytics can be “descriptive (what or ultrasound, endoscopy, elastography, tactile imag-
happened),” “predictive (what will happen),” and ing, thermography, medical photography, and nuclear
“prescriptive (determine what to do)” [4]. medicine functional imaging techniques, such as posi-
G “Automated reasoning and Meta-reasoning” are tron emission tomography (PET) and single-photon
applied in “biomedical engineering.” emission computed tomography (SPECT).
x “Automated reasoning” is an area of “computer sci- G Many others AI biomedical subfields.
ence,” “cognitive science,” and “mathematical
logic” dedicated to understanding different aspects
of reasoning. The study of automated reasoning
1.2.2 AI and biomedical engineering help in
helps to produce computer programs that allow
computers to reason completely, or nearly medical education
completely, automatically. Classically, a “physician” is defined as a professional
x “Meta-reasoning is the reasoning about reasoning” who possesses special knowledge and skills derived from
[5]. In a computer system, this means that the system rigorous education, training, and experience [8], in other
is able to reason about its own operation. This is dif- words “medical education remains based on information
ferent from performing object-level reasoning, which acquisition and application.” Currently, the amount of
refers in some way to entities external to the system. available medical knowledge now exceeds the organizing
A system capable of meta-reasoning may be able to capacity of the human mind [9]. In addition, the skills
reflect, or introspect, that is, to shift from meta- required of practicing physicians will increase in two
reasoning to object-level reasoning and vice versa. areas [10]: “Collaborating with and managing Artificial
G “Drug discovery.” “AI” has the potential to stimulate Intelligence (AI) applications, and the need for more
and streamline drug discovery and development by sophisticated mathematical understanding.”
increasing our understanding of complex biology, such
as guide drug design, aggregate and synthesize infor- G “Collaborating with and managing Artificial
mation, understand mechanisms of disease, establish Intelligence (AI) applications” that aggregate vast
biomarkers, generate data and models, repurpose exist- amounts of data, generate diagnostic and treatment
ing drugs, generate novel drug candidates, and other recommendations, and assign confidence ratings to
research phases. those recommendations [11]. Then, the long-standing
G “Intelligent analysis of genomic and proteomic data.” approach of basing diagnostic or treatment choices on
“Genomics” can be broadly defined as the systematic the “average patient” in a large population is no lon-
study of genes, their functions, and their interactions. ger precise enough to meet the standards of personal-
Analogously, “proteomics” is the study of proteins, ized medicine. As a result, treatments for patients with
protein complexes, their localization, their interac- different physical, cultural, and genetic attributes will
tions, and posttranslational modifications [6]. vary in personalized medicine.
4 Applied Biomedical Engineering Using Artificial Intelligence and Cognitive Models

G “The need for more sophisticated mathematical under- and their ability to do intelligent things, such as play
standing” is driven by the analytics of precision and chess, analysis, classification, prediction, etc. Turing then
personalized medicine generated by AI. The ability to went on to propose a method for evaluating whether
correctly interpret probabilities requires mathematical machines can think, which came to be known as the
sophistication in stochastic processes, something cur- “Turing Test,” as a central and long-term goal for “AI
rent medical curricula address inadequately. research.” Will we ever be able to build a computer that
can sufficiently imitate a human to the point where a sus-
picious judge cannot tell the difference between human
Biomedical Engineering and AI can help to manage the
medical information that grows constantly by developing and machine?
more efficient algorithms, easy to use medical devices and Alan Turing worked on the problem to help define a
medical applications with the goals of help physicians to: system for identifying which statements could be proven.
G Focus on “knowledge capture, not knowledge retention.” In the process, he proposed the “Turing Machine” con-
G Facilitate collaboration with and management of cept, and in a research paper he defined a “computing
information. machine” with the ability to read and write symbols to a
G Enable simpler ways to understand probabilities and tape using those symbols to execute an algorithm [13].
how to apply them for AI clinical decisions. This paper and the “Turing Machine” provided the basis
for the “theory of computation.” Initially it looked to be
difficult but possible if hardware technology reached a
These AI systems and their applications are developed certain point, only to reveal itself to be far more compli-
by applying many different algorithms, such as “Genetic cated than initially thought with progress slowing to the
algorithms,” “Bayesian models,” “Machine Learning,” point where some wonder if it will ever be reached.
“Deep Learning Artificial Neural Networks,” “Expert Despite decades of research and great technological
Systems,” “Fuzzy Logic,” and many more “AI methods” advances the “Turing test” still sets a goal that “AI
that are explained in this book, but a continuous learning researchers” strive toward while finding along the way
attitude is recommended in order to try to stay up-to-date how much further we are from realizing it.
in these “exponential technologies.” “A complete AI system must think and act humanly,
think and act rationally,” as indicated in Fig. 1.2. The AI
system can be tested with the following steps:
1.3 Artificial intelligence
G “Think humanly” can be reached by going inside the
“Artificial intelligence (AI)” is an area of computer sci- actual working of human minds through introspection,
ence that emphasizes the creation of intelligent machines trying to catch our own thoughts, and psychological
that work and react like the human brain. In other words, experiments.
“AI” is any software process that enable machines to G “Act humanly” can be tested using the “Turing Test”
“mimic human intelligence” through computer systems. approach based on a smart system that possesses the
These processes include “learning,” “reasoning,” and following capabilities: “Natural Language Processing,”
“self-correction.” “Knowledge Representation,” “Automated Reasoning,”
G “Learning” is based on the acquisition of information and “Machine Learning.”
and rules created for using the information. x “Natural Language Processing (NLP)” to enable it
G “Reasoning” is the application of rules to reach an to communicate successfully in English and/or
approximation of a conclusion. other human languages.
G “Self-correction” is achieved when the acquainted x “Knowledge Representation” to store what it is
information grows, and the process adjusts the rules learning, reasoning, sensing, seeing, or hearing.
continually in a circular way of learning and reasoning x “Automated Reasoning” is the ability to use the
to achieve a better approximation of the conclusion. stored information to answer questions and draw
new conclusions,
x “Machine Learning (ML)” adapts to new circum-
1.3.1 Turing test/Turing machine stances and can detect and extrapolate patterns.
The term “Artificial Intelligence” was created by John “ML” can be defined as an application of
McCarthy in 1956 when he held the first academic con- “artificial intelligence (AI)” that provides systems
ference on this subject [12]. “AI” was documented by the ability to automatically learn and improve from
Alan Turing in his paper: “Computing Machinery and experience without being explicitly programmed.
Intelligence,” which opened the door to this field with the G Think rationally can be resolved by “the laws of
notion of machines being able to simulate human beings thought” based on the three fundamental “laws of
Biomedical engineering and the evolution of artificial intelligence Chapter | 1 5

logic”: “contradiction,” “exclude the middle,” and decisions, typically a person, firm, machine, or soft-
“the principle of identity” [14]. ware. “Rational agents” are also studied in the fields
x “Law of contradiction” establishes that for all pro- of “cognitive science (study of thought, learning, and
positions “p,” it is impossible for both “p” and mental organization),” ethics, and philosophy, includ-
“not p” to be “true,” as shown in Eq. (1.1). ing the philosophy of practical reason.
Law of contradiction:BðpBpÞ;
in which B means ‘‘not’’ and ‘‘’’ (1.1) To study Artificial Intelligence, we must assume theoreti-
 cally its main goal:
means ‘‘logic AND function ’’:
“A complete AI system that must think and act humanly,
Note*: Logic AND function states that two or think and act rationally, can be created and being tested.”
more events must occur together and at the same
time for an output action to occur.
x “Law to exclude middle” establishes that either “p”
or “Bp” must be “true,” there being no third or 1.3.2 Basic types of AI systems based on
middle true proposition between them, as repre- capabilities
sented in Eq. (1.2). Today “AI” covers a broader area of “computer science”
that makes systems or machines seem like they have
Law to exclude middle : p3Bp;
(1.2) human intelligence based on the following actions: when
in which 3 means ‘‘Logical OR function ’’ a machine can solve problems, complete a task, or exhibit
Note*: Logic OR function states that an output other cognitive functions that humans can, then we refer
action will become TRUE if either one “OR” more to it as having “artificial intelligence.”
events are TRUE, but the order at which they occur Actually, “AI” is something that we have to deal with
is unimportant as it does not affect the final result. every day in different application, such as e-mail communi-
x “Law of principle of identity” asserts that a thing is
cations, social media, web searching, stores and services,
identical with itself, as indicated in transportation, businesses, manufacturing, domestic appli-
ances, and thousands more services and applications. We
Law of principle of identity: ð’xÞðx 5 xÞ; are in front of real “exponential AI technology” that is
in which ’ means ‘‘for every’’; (1.3) changing the world, and we must understand the advantages
of using “AI and learn to differentiate between the possible
or simply that ‘‘x is x’’:
types of AI based on capabilities,” which can be identified
G “Act rationally” can be based on the “rational agent on three different levels as “Weak or Narrow AI,” “General
theory”; a rational agent can be anything that makes AI,” and “strong AI,” as indicated in Fig. 1.2.

FIGURE 1.2 AI types based on Capabilities and Functionality.


6 Applied Biomedical Engineering Using Artificial Intelligence and Cognitive Models

G “Weak or Narrow AI, also known as Artificial Narrow judgements under uncertainty, be innovative, be
Intelligence (ANI).” This type of AI enables a system imaginative and creative.”
to perform a dedicated task with intelligence, these x “Human have consciousness, the fact of awareness
days it is the most common available “AI system.” It is by the mind of itself and the world.”
a kind of “AI” that cannot perform beyond its field or G “Super or strong AI also known as Artificial Super
limitations, and it is only trained for one specific task Intelligence (ASI)” is applied to a level of Intelligence
and can fail in unpredictable ways if it goes beyond its of systems/machines that could surpass the human
limits, for example: intelligence, and they could perform any task better
x “Virtual assistant or AI assistant are ANI applica- than a human with cognitive properties. Some keys for
tions” based on computer programs that understand this hypothetical concept of “Strong AI” include the
“natural language voice commands and complete ability to think, reason, make judgments, plan, learn,
tasks,” such as Apple Siri, Amazon Alexa, Google and communicate on their own. The concept of the
Assistant, Cortana and others. All of them process “ASI system” is based on:
the human language then enter the information into x “An imaginary supersystem/computer that will
a search engine and return to us with the results; surpass human intelligence in all aspects,” from
they operate with a limited predefined range of creativity, to general wisdom, to problem-
functions. This can be tested when we make an solving.
abstract question like the meaning of life, which is x “A hypothetical superagent that possesses intelli-
why sometimes we get vague responses that often gence far surpassing the brightest and most gifted
do not make any sense or we get the links to exist- human minds.”
ing articles in the web.
One breakthrough example of “AI systems trying
x “IBM’s Watson supercomputer.” This is another
to behave as an AGI system” was the development
example of an ANI machine that uses an expert
of the computer program: AlphaGo [15], although it
system approach combined with Machine learning
was designed only to play Go. “Go” is an abstract strat-
(ML) and Natural language processing (NLP).
egy board game for two players invented in China more
x Self-driving cars or autonomous cars are a special
than 3000 years ago, in which the rules are simple:
kind of “ANI application” made up of controls
from “multiple Narrow AI systems working G Players take turns to place black or white stones on a
together,” to analyze in real time signals from dif- board of 19 3 19;
ferent types of sensors, cameras, radar, and com- G The objective is to try to capture the opponent’s
munications, thus enabling the vehicle to see, stones; or
think, and make fast decisions. G Surround empty space to make points of territory.
x Other examples are computer games (e.g., chess),
“Go” is a game of profound complexity, there are
purchasing suggestions on “e-commerce,” “speech
10170 possible board configurations, making “Go a googol
recognition,” “image recognition,” and many more
(1:0 3 10100 ) times more complex than chess.” “AlphaGo”
applications identified as “ANI.”
G
was initially trained on thousands of human amateur and
“General AI also known as Artificial General
professional games to learn how to play “Go,” but the
Intelligence (AGI)” is a type of intelligence that per-
version “AlphaGo Zero” learned to play the game of Go
forms any intellectual task with human-like efficiency;
simply by playing games against itself. In other words
the idea is to have smarter systems that think like a
“AlphaGo Zero” became its own teacher by applying
human on their own. Currently, there is no such exist-
“Reinforcement Learning algorithms,” starting from
ing system that can perform any task as perfectly as a
completely random play; it was trained without any
human; commonly they do only one AI specialized task
human interference such as input data or labels. In doing
without specialized human thinking and deduction func-
so, it surpassed the performance of all previous versions,
tions. An “AGI system” will be not easy to replicate in
including those which beat the World Go Champions Lee
machines using actual technology, because an “AGI
Sedol and Ke Jie, becoming arguably the strongest Go
system” must be based on the following human facts:
player of all time.
x “Humans have the ability to think abstractly, strat-
egize, understand, and express beliefs” or attitudes
based on our thoughts and memories to make deci- In my modest opinion:
sions or to come up with other creative ideas. G Currently, scientists are far away from building a Strong
x “Humans are sentient creatures with the capacity AI, but worldwide researchers are continuously creating
to feel, perceive, or experience subjectively.” AI systems based on complex single or multiple Narrow
x “Humans have the abilities to plan, learn, reason, AI systems. They are trying to develop General AI
(Continued )
integrate prior knowledge, solve problems, make
Biomedical engineering and the evolution of artificial intelligence Chapter | 1 7

One example is the “Deep Blue IBM’s chess-playing


(Continued) supercomputer,” as indicated in Fig. 1.3. Deep Blue
systems, but, based on the resources needed that are beat the world grandmaster Garry Kasparov in the late
not yet available today, this is going to take time, but 1990. “Deep Blue” can identify the pieces on a chess
how long is the big question. board and know each move. It can make predictions
G Humans have a special and nonreproducible gift about what moves might be next for it and its opponent.
from God; dimensionless from infinity to 1 infinity, And it can choose the most optimal moves from among
abstractness, creativeness, kindness, spirituality that the possibilities. But it does not have any concept of
cannot be reached, which can be defined as “ASI.” the past, nor any memory of what has happened before.
Nevertheless, there is the danger with “AI,” that it can Apart from a rarely used chess-specific rule against
handle our daily activities, important decisions, and repeating the same move three times, “Deep Blue”
may cause more damage to us if we were to apply poor
ignores everything before the present moment.
judgments when using and applying AI systems in
G “Limited Memory” type AI systems can store past
applications that can control us and guide us, leading
to the loss of the great meaning of our lives. experiences or some data for a limited short period of
time and apply them to a preprogrammed representa-
tion of their surrounding environment. For example,
self-driving cars can store the recent speed of nearby
1.3.3 Basic types of AI systems based on
cars, the distance of other cars, the speed limit, and
functionality other information to navigate the road. These observa-
Another way of recognizing the “AI types is based on tions are added to the “self-driving cars” prepro-
their functionality,” as shown bottom right in Fig. 1.2. grammed representations of the world, which also
These are: Reactive Machines, Limited Memory, Theory include lane markings, traffic lights, and other impor-
of Mind, and Self-Awareness [16]. Where: tant elements like curves in the road. They are
included when the car decides when to change lanes to
G “Reactive Machines” type systems are a simple type of avoid cutting off another driver or being hit by a
“AI,” which does not have the ability to form memories nearby car. But these simple pieces of information
or to use experience to take a decision. “Reactive about the past are only transient. They are not saved
machines” have an intelligence that only perceives the as part of the car’s library of experience from which it
world directly and acts on what it sees; they cannot can learn, the way human drivers compile experience
function beyond the specific task for which they were over years behind the wheel.
designed. These machines will behave exactly the same G “Theory of Mind” type AI systems will be the
way every time they encounter the same situation [17]. machines based on psychology concepts for

FIGURE 1.3 Artificial Intelligence evolution includes ML, ML includes DL, DL includes CC (or CL).
8 Applied Biomedical Engineering Using Artificial Intelligence and Cognitive Models

understanding people, creatures, and objects in the models that computer systems use in order to perform a
world, which can have thoughts and emotions that specific task effectively without having to use explicit
affect their own behavior. If this kind of AI systems is instructions, relying on patterns and inference.
designed to walk around us, and have thoughts, feel-
ings, and expectations for how we should be treated, The algorithms for ML models are studied in this book
they will have the capability to adjust their behavior in Chapter 4, Machine Learning Models Applied to
according to each situation. Biomedical Engineering. “Machine Learning” is studied
G “Self-Awareness” type of AI systems will be the as a subset of “AI” following the steps to obtain a “pre-
machines that form representations of themselves and diction model” based on “pattern recognition” in data
have consciousness as an extension of the “theory of using: “clustering,” “classifiers” and “regression” models.
mind types.” Conscious beings will be aware of them- Some advice to apply the most appropriated “ML
selves, know about their internal states, and will be Model,” is to pre-analyze the actual problem to resolve
able to predict the feelings of others. and deduct which type of machine learning fit best for
the answer needed. Generally, it is based on under-
standing very well the different between ML types avail-
Currently, Reactive Machines and Limited Memory AI types able as “Unsupervised Learning,” “Supervised
have achieved success, whereas researchers around the Learning,” “Reinforcement Learning,” “Survival Models,”
world are working on “Theory of Mind and Self-Awareness “Association Rules,” and others. The study of different
machines AI types.” However, the most successful projects “ML Models Families” in this book are based on avail-
are based on the integration of many AI technologies, that able ML models from “IBM Watson SPSS Modeler Flow/
is, projects melding humans and AI machines and other IBM Watson Machine Learning applications” and
revolutionary concepts. “MATLAB ML solution under the Statistics and Machine
Learning Toolbox” , applied in research tutorial exam-
ples to be analyzed with the purpose of obtain predic-
tion AI models for different biomedical datasets as:
1.3.4 AI technology evolution “Heart diseases,” “Kidney diseases,” “Breast cancers,”
We can detect that the “AI technology evolution” is on and “Diabetes Mellitus.”
its way and growing, based on the availability of
resources needed for its evolution, as indicated in
G “Deep Learning (DL)” is a subset of “ML,” and it
Fig. 1.3. Each AI technology can be seen as a set of algo-
rithms that give a smart system a special way of behav- is defined as the algorithms inspired by the structure
ing; these are AI, ML, DL, CC, and others. Where each and function of the “human brain,” such as the
can be defined as: “Artificial Neural Networks (ANN)” that are designed
to recognize patterns that are represented by numeric
G “Artificial intelligence (AI)” is an area of “computer vectors that represent images, sound, text, or time
science” that emphasizes the creation of intelligent series.
machines that work and react like humans.
The algorithms for DL models are studied in this book in
The algorithms for AI models are studied in this book in Chapter 5, Deep Learning Models Principles Applied to
Chapter 3, Artificial Intelligence Models Applied to Biomedical Engineering and in chapter 6, Deep Learning
Biomedical Engineering. In the application of AI, algo- Models Evolution Applied to Biomedical Engineering.
rithms are directed to resolve Biomedical Engineering G Chapter 5, Deep Learning Models Principles Applied
problems through “Evolutionary Algorithms” that emu- to Biomedical Engineering. The underlying principle
late natural evolution, such as “Genetic Algorithms,” of “Deep Learning” is a compositional nature of
“Swarm Algorithms,” “traditional search methods,” “neural network” inspired by the biological elements
“optimization of numeric value problems in 2D and that forms the “human brain,” as a collection of
3D,” and “visual analysis of Biomedical Engineering “nodes” emulating “brain neurons,” and their “neu-
datasets of different diseases from different ron synapses connections as primary elements of a
Bioinstruments to analyze relation between their attri- net, that combine to form mid-level elements identi-
butes” by applying “AI tools.” There are examples and fied as “Artificial Neural Networks (ANN),” which in
tutorials in MATLAB and IBM Watson Studio SPSS turn are combined with different architectures to
Model Flow. form more complex networks. In this book “ANN”
are organized based on their architectural type, and
the way their different components are connected
G
to one another define the specific learning goal with
“Machine Learning” is a subset of “AI,” and it defined
(Continued )
as the scientific study of algorithms and statistical
Biomedical engineering and the evolution of artificial intelligence Chapter | 1 9

(Continued) (Continued)
different types such as “Feed Forward Neural integration with multidiscipline sciences.” “Natural
Network,” “Backpropagation Neural Networks,” Language Processing applications,” examples and/or
“Recurrent Neural Networks,” “Memory Augmented exercise for NLP Topics, Audio Labeler for Machine
Neural Networks,” “Modular Neural Networks,” and Learning, NLP Text to speech, NLP Speech to Text,
“Evolutive Neural Networks.” The first two “ANN NLP analysis for: Sentiment, Emotion, Keywords,
types” are studied in this chapter along with a general Entities, Categories, Concept and Semantic Roles with
net “Shallow Neural Network” and a special kind of MATLAB and API as a set of functions and procedures
learning known as “Transfer Learning from pretrained allowing the creation of applications that access the
Deep Learning Networks.” All are based on examples features or data of an operating system, application, or
and practical research of Biomedical Engineering other service through IBM Cloud services.
using existing “AI tools” from: “MATLAB and “IBM G Chapter 7, Cognitive Learning and Reasoning Models
Watson Studio.” Applied to Biomedical Engineering. In this chapter
G Chapter 6, Deep Learning Models Evolution Applied we focus on many “prestudies and preanalysis of dif-
to Biomedical Engineering. This chapter focuses on the ferent Biomedical Engineering problems that need to
study of “Deep Learning Models Evolution” which be develop with specialized research projects apply-
combines mid-level elements with different connec- ing Cognitive Learning and Reasoning (CL&R) algo-
tions of “ANN” to form more complex networks types, rithm, that can be integrated to the Proposed General
such as “Recurrent Neural Networks,” “Memory Architecture framework of a Cognitive Computing
Augmented Neural Networks,” “Modular Neural Agents System (AI-CCAS)” with special emphasis on
Networks,” and “Evolutive Neural Networks.” Many “Cognitive Learning and its relationship with neurosci-
research examples are explained in this chapter ence of reasoning proposed as CL&R using CC.” In
applied to Biomedical Engineering solutions. this book, we have studied many interactions of dif-
ferent human illness, diseases, and disorders, where
“human illness” is defined as body damage that needs
G Cognitive Computing (CC) or Cognitive Learning to be cured, such as infections, injuries, cells degen-
(CL) is special applications that are implemented using eration, etc.; “human diseases” are defined as states
or reactions that must be managed, such as pain, dis-
any combination of “AI” technologies to build “cogni-
comfort, weakness, fatigue, etc.; and “human disor-
tive models” that “mimic human thought” processes ders” are defined as functions or abnormalities that
using “NLP,” “handwriting recognition,” “face identi- must be treated, such as physical, mental, genetic,
fication,” “behavioral pattern determination” and emotional/behavioral, and functional disorders. The
other special algorithms, such as “sentiment analysis.” complexity for the analysis needed is boundless and
“CC” is used to assist humans in their decision- can only be analyzed through the multidisciplinary
making process and in this book are proposed as meth- sciences, where interactions of science such as “bio-
ods to evaluate “human cognitive status.” medical engineering,” “neurology,” “cognitive
sciences” and “computer science” using tools with
Note*: In the rest of this book, the term “Cognitive “exponential technologies” such as AI and others
Computing abbreviated CC” is synonymous with through “continuous exponential evolution” that
“Cognitive Learning abbreviated CL”. includes ML, DL, and CC. The main purpose is
obtaining useful “AI models” that can help analyze to
human health problems. Now it is the time to apply
The algorithms for CC models are studied in this book in
them and many others in research projects.
Chapter 2, Introduction to Cognitive Science, Cognitive
Computing, and Human Cognitive Relation to Help in
the Solution of AI Biomedical Engineering Problems,
and Chapter 7, Cognitive Learning and Reasoning In summary, we can deduce that in general terms:
Models Applied to Biomedical Engineering. “CC is a subset of DL,”and “DL is a subset of ML,” and
G Chapter 2, Introduction to Cognitive Science, “ML is a subset of AI,” as shown in Eq. (1.4).
Cognitive Computing, and Human Cognitive Relation
AI subsets : CC D DL D ML D AI
to Help in the Solution of AI Biomedical Engineering (1.4)
Problems. This chapter introduces the analysis for where Dmeans a subset
“nonmotor symptoms (related to cognition and no
related to movement disorders)”; “Human cognitive
development stages” and their relation to “brain neu- If Artificial Intelligence is any system/machine/computer
rons and neural pathways”; “Cognition and its program that can imitate intelligent human behavior, then
(Continued ) all CC applications are AI, but not all AI are CC.
10 Applied Biomedical Engineering Using Artificial Intelligence and Cognitive Models

1.3.5 AI in industries shopping and give smart recommendations for target


audiences. Currently, “AI solutions” for this industry
“AI” is revolutionizing almost all industries to enhance
are “IBM Marketing Solutions,” “IBM Watson
their business like never before with thousands of “AI ser-
Marketing Insights,” and others
vices” and “AI products.” Some are manufacturing, sup- G “Advertising process” can be improved by utilizing
ply chain, human resources, customer services, marketing,
dynamic creative tools that are aware of the weather,
advertising, building management, automotive, agricul-
time of day, location, consumer behavior, etc., to
ture, and medicine:
deliver personalized ads to customers. Currently, “AI
G “Manufacturing processes” always can be improved solutions” are “Google advertising,” “IBM Watson
by applying “AI technologies”; even when machines Advertising,” and others.
do some of the labor, by analyzing continuously many G “Building Management” can be improved by analyzing
issues, such as predictive and preventive maintenance, how the buildings are operating with sensors that give
enhancing testing machines and robot manufacturing the information in real time, reducing maintenance
effectiveness, quality management, mass customiza- costs, improving safety, increasing sustainability, and
tion, and many more processes. Currently, “Industry optimizing their functionality. Currently, “AI solutions”
4.0*” is a name given to the idea of smart factories are “IBM IoT Building Insights,” and others.
where machines are augmented with web connectivity G “Automotive industry” can be improved with “IoT sen-
and connected to a system that can visualize the entire sors” that report vehicle issues in real time, analyzing
production chain and make decisions on their own. and taking actions as quickly as possible for a more
The trend is toward automation and data exchange in efficient behavior of the transportation vehicle.
manufacturing technologies which currently include: Currently “AI solutions” for this industry are “IBM
“Cyber-Physical Systems (CPS),” “Internet of things Watson IoT,” “IBM Watson Assistant for Automotive,”
(IoT),” “Industrial Internet of Things (IIOT),” “Cloud and others.
Computing” [18], and others, G “Agriculture processes” can be improved by creating
an electronic field record with up-to-date data, such as
Note*: Industry 4.0 is also referred to as the fourth
weather with satellite image or drones, soil reading,
industrial revolution [19].
crop health analysis to take actions for crop protection,
G “Supply Chain processes” have numerous uncontrolla- higher-quality crops to help eradicate extreme poverty
ble factors, such as weather, delivery delays, and hunger in the world. Currently “AI solutions” for
unstable suppliers, and others that can create issues for this industry are “Watson Decision Platform for
an entire company. Due to large amounts of informa- Agriculture” and others.
tion needing to be processed at any given time, AI G “Medicine and healthcare” also always need to
technologies can analyze, detect, and give faster and improve processes by applying “AI Technologies” for
better solutions. Currently, some “AI supply” chain resources for hospitals, clinics, doctors, researches,
solutions are already revolutionizing, such as “IBM patients, consumers, etc. Some examples are:
Watson Supply,” “Watson supply chain Insight,” and x leverage data: analyzing data and making cross-
others. references with previous cases and studies;
G “Human Resources Processes” can be improved using x optimizing collaboration: sequencing of the human
“AI technologies,” such as reviewing hundreds of genome with partnerships with diagnostics labs
resumes a day, analyzing and creating scores for each and research centers;
candidate to facilitate the hiring decision based on up- x human resources: optimizing care programs by
to-date statistical facts, and removing the possibility of increasing coordination, detecting inefficient pro-
bias. Currently, there are AI solutions, such as “IBM cesses, defining priorities on value-based health-
Watson Recruitment,” “IBM Watson Career Coach,” care; and
and others. x many more processes.
G “Customer Services processes” can be improved by
gathering and analyzing a company’s data from vari-
This book focuses on AI applied in Biomedical Engineering
ous sources and the previous cases and issues, with the and the fields/subfields involved, such as medicine, biology,
objective of enriching and efficient interactions with healthcare services, and related fields, with the purpose
customers. Currently, “AI solutions” for this industry of obtaining models for analysis, classification, forecasts; to
are “Watson Discovery for Salesforce,” “Zendesk,” be used to confirm diagnostics and therapeutics, making
and others. special emphasis in neurologic diseases with nonmotor
G “Marketing processes” can be improved by under- symptoms.
standing and predicting how a customer behaves when
Biomedical engineering and the evolution of artificial intelligence Chapter | 1 11

1.4 Machine learning G “Data mining” has the goal of extracting information
using intelligent methods from a large dataset to dis-
As shown in Fig. 1.2, and stated in Eq. (1.4), “ML” is a sub- cover patterns and useful knowledge.
set of “AI” that provides systems with the ability to automat- G “Know discovery database (KDD)” is the process of
ically learn and improve from experience without being discovering useful knowledge from databases. It is a
explicitly programmed. We can differentiate “AI” and “ML”: data mining technique that includes data preparation
G “AI” is a broader concept of machines that are being and selection, data cleansing, incorporating prior
to carry out smart tasks, knowledge on datasets and interpreting accurate solu-
G “ML” is a subset of “AI” that gives machines access to tions from the observed results.
data and let them learn from themselves. G “Mathematical optimization or mathematical program-
“ML” are machines that learn for themselves from the ming” is the selection of a best element from some set
data history. “ML” has as a primary objective the discovery of available alternatives.
G “Exploratory data analysis (EDA)” is a statistics
of patterns in the data, to create a model that is useful for
taking decisions from the data. “ML algorithms” build a approach to analyzing datasets to summarize
mathematical model based on “training data” from sample their main characteristics, often with visual methods.
data, to make predictions or decisions without being explic- A statistical model can be used or not, but primarily
itly programmed to perform the task [20]. “ML” is a branch “EDA” is for seeing what the data can tell us
of “computer science” and applies multidisciplinary fields beyond the formal modeling or hypothesis testing
and different processes to reach its objectives, these are: task.
“statistics,” “computational statistics,” “databases,” “know
discovery database,” “data mining,” “mathematical optimi- “It is very important to point out that this book makes fre-
zation,” “exploratory data analysis,” and others, where: quently uses of these multidiscipline fields to reach the
G
objectives of “Artificial Intelligence”; the magic of “AI” is
“Statistics” is the science of collecting and analyzing
based specially on “mathematics” that is used to define
numerical data in large quantities, especially for the each “AI model,” “statistics” that help in the criteria for vali-
purpose of inferring proportions in a whole from those date if a model is accepted or not, and “data mining” to
in a representative sample. extract important information from the databases.”
G “Computational statistics (also known as statistical
computing)” is the area of computational science spe-
cifically dedicated to the study of the mathematical 1.4.1 ML seven specific steps
science of statistics. It is the interface between statis-
tics and computer science. “ML” has seven general steps to achieve its goal of
G “Database” is an organized collection of data. It is the obtaining a valid model for prediction. These steps are
collection of schemas, tables, queries, reports, views, shown in Fig. 1.4 and they are: “data collection,” “data
and other objects. The data are typically organized to preparation and exploration,” “feature engineering,”
model aspects of reality in a way that supports pro- “model selection,” “model training,” “model evaluation,”
cesses requiring find information. and “model prediction and deployment.”

FIGURE 1.4 Machine Learning—seven gen-


eral steps for an AI model to achieve
predictions.
12 Applied Biomedical Engineering Using Artificial Intelligence and Cognitive Models

1.4.1.1 Step 1) Data collection G Applying dimensionality reduction using special tools,
“Data collection” is very important because the quantity such as Principal Component Analysis (PCA);
G Finally, splitting the dataset into training and evalua-
and quality of the data dictate how accurate the model
will be. “Data collection” is made under two terms: data tion sets. The training set is used to build a model,
schema and semantic types, where: while the evaluation set is used to validate the model
built. “It is important to not include the same data
G “Data schema” is a structure for organizing the data. points of the training set in the test (evaluation) set.”
It defines both the data contents and relationships.
The most common data schemas formats are “csv” as
1.4.1.4 Step 4) Model selection
comma-separated values are tabular data such as
spreadsheet or database, and “json” as JavaScript Model selection refers to the selection of the best algo-
Object Notation is a lightweight data-interchange for- rithm and the platform, which could be “open source lan-
mat, it is used primarily to transmit data between a guage,” “high-performance language,” or “special AI
server and web application, as an alternative to XML. cloud applications,” where:
G “Semantic types” are the labels that are specified for G “Open source language,” such as “Python language,”
each column of the data in tabular form, that is, a free AI and general-purpose programming language,
Address, Name, Phone, Income, etc. or “R language” a free AI data-statistical analysis pro-
Note*: “Precollected data” can be used too for this gramming language.
G “High-performance language,” such as MATLAB,
step of data collection, these are “web sources datasets,”
such as “Kaggle,” an open datasets web platform for Lisp, Prolog, and others.
G “Special AI cloud applications,” such as the IBM
data science at https://www.kaggle.com, “UCI Machine
Learning Repository” in https://archive.ics.uci.edu/mL/ Cloud Watson computer and others.
datasets.php, and others. The algorithm to select depends on the type of
machine learning problem, generally this can be
1.4.1.2 Step 2) Data preparation and “Supervised Learning,” “Unsupervised Learning,”
exploration “Reinforcement Learning,” “Survival Models,” and
G
“Association Rules,” where each type is as follows:
“Data preparation” is the cleaning of data collected by
applying the following substeps: clean-tools to remove G “Unsupervised Learning” is used when the data does
duplicates, correct errors, deal with missing values, nor- not include the result for each case, meaning that that
malization, data type conversions, etc., and randomize the ground truths are unknown. These unsupervised
data, which erases the effects of the particular order in algorithms can find patterns in a stream of inputs.
which the data are collected and/or otherwise prepared. Some commons algorithms are based on the “cluster-
G “Data exploration,” is a very important tool for avoid- ing technique,” such as “k-means,” “k-modes,” “k-
ing “AI bias”; where, “AI bias” is a phenomenon that prototypes,” “DBScan,” “Expectation Maximization,”
occurs when an algorithm produces results that are and others.
systematically prejudiced due to erroneous assump- x “k-means clustering” is an “ML-Unsupervised
tions in the ML process. Some of the tools are: Learning algorithm” that uses “vector quantization”
x statistical tools for the measuring of tendency, dis- and obtains “k clusters” in which each observation
persion, and shape, such as mean, median, standard belongs to the cluster with the nearest mean.
deviation, variance, skewness, kurtosis, etc.; x “k-modes clustering” is an “ML-Unsupervised
x correlation to help detect relevant relationships Learning algorithm” that uses “modes”: where
between variables or class imbalances, between “modes” means having highest frequency, instead
variables; and of means to form clusters of categorical data. In
x visualizing of the data distribution plots as histo- other words, “k-modes algorithm” distance is mea-
grams, boxplots, bar plots, etc. sured by the number of common categorical attri-
butes shared by the two data points.
1.4.1.3 Step 3) Feature engineering x “k-prototypes” is an “ML-Unsupervised Learning
algorithm,” which is the simple combination of “k-
“Feature engineering consists of:
means and k-modes” in clustering mixed attributes
G Feature selection includes the deletion of noisy or of numerical and categorical values.
irrelevant attributes; x “DBScan” is an “ML-Unsupervised Learning algo-
G Determining which features are more relevant and rithm” for “Density-Based Spatial clustering” of
even creating new features; applications with noise. “DBScan” is one of the
Biomedical engineering and the evolution of artificial intelligence Chapter | 1 13

algorithms in which a density-based clustering x “Artificial Neural Networks” is an “ML-Supervised


method is used to detect outliers. Learning algorithm” with multilayers perceptron
x “Expectation maximization” is an “ML- as the “backpropagation algorithm” and others
Unsupervised Learning algorithm” that uses an such as “Deep Learning algorithms” based on big-
iterative method to “find maximum likelihood or ger and complex neural networks.
maximum a posteriori (MAP) estimates of para- G “Reinforcement Learning” is an “ML algorithm”
meters in statistical models,” where the model inspired by behaviorist psychology, concerned with
depends on unobserved latent variables. how software agents ought to take actions in an envi-
x “Recommendation systems” is an “ML- ronment to maximize some notion of “cumulative
Unsupervised Learning algorithm” that is a sub- reward.”
class of an information filtering system that seeks G “Survival Models” is an “ML algorithm” that is used
to predict the “rating” or “preference” that a user to analyze data in which the time until the event is of
would give to an item, applying matrix factoriza- interest. The response is often referred to as a failure
tion and collaborative filtering. time, survival time, or event time.
G “Supervised Learning” is used when data include a G “Association Rules” is an “ML algorithm” that is a
result for each case. This kind of algorithm is used for rule-based machine learning method for discovering
“classification and regression,” where: interesting relations between variables in large data-
x “Classification” is a method used to determine bases. It is intended to identify strong rules discovered
what category or class something belongs to, after in databases using some measures of interestingness.
seeing several examples of things from several cat-
egories; the final category is a discrete variable.
1.4.1.5 Step 5) Model training
x “Regression” is a method that attempts to produce
a function that describes the relationship between “Model Training” is running the algorithm to obtain a
inputs and outputs and predicts how the outputs process model based on iteration as a training step using
should change as the inputs change; the prediction the actual dataset, to train the model for performing
is a real number. various actions. This is the actual data in the ongoing
Some of the most common supervised learning development process models learning with various
algorithms are “decision tree,” “random forest,” “Application Programming Interfaces* (API)” and algo-
“logistic regression,” “regression,” “support vector rithms to train the machine to work automatically.
machines,” “neural nets,” and others, where: Note*: API in general terms is a set of clearly defined
x “Decision tree” is an “ML-Supervised Learning methods of communication among various components.
algorithm” decision support that uses a tree-like Examples of APIs will be studied in Chapter 2,
graph or model of decisions and their possible con- Introduction to Cognitive Science, Cognitive Computing,
sequences, including chance event outcomes, and Human Cognitive Relation to Help in the Solution of
resource costs, and utility. AI Biomedical Engineering Problems, of this book.
x “Random forest” is an “ML-Supervised Learning
algorithm” that constructs a multitude of “decision 1.4.1.6 Step 6) Model evaluation and tuning
trees” at training time and outputting the class that
“Model evaluation” is the use of metrics or a combination
is the mode of the classes applying classification
of them to measure the objective performance of the model
or mean prediction applying regression of the indi-
and to select the best algorithm for that specific purpose.
vidual trees.
The most common techniques are “cross-validation,” “con-
x “Logistic regression” is an “ML-Supervised
fusion matrix,” “precision and recall,” “ROC,” “AUC,” “R-
Learning algorithm” that uses the logistic function
squared error,” and “Accuracy,” where:
to predict a binary class.
x “Regression” is a set of “ML-Supervised Learning G “Cross-validation” is a resampling method used for
algorithms,” such as “Linear regression,” “GLM model evaluation to avoid testing a model on the same
regression (Generalized Linear Models),” “Least dataset on which it was trained.
Squares regression,” etc. G “Confusion matrix” is a specific table layout that
x “Support Vector Machines (SVM)” is an “ML- allows visualization of the performance of an algo-
Supervised Learning algorithm” that performs clas- rithm, typically a supervised learning, it is usually
sification by finding the hyperplane that maximizes called a “matching matrix.”
the distance margin between the two classes. The G “Precision and recall,” where:
extreme points in the datasets that define the I. “Precision” is the proportion of positive identifica-
hyperplane are the support vectors. tions that was actually correct. A model that
14 Applied Biomedical Engineering Using Artificial Intelligence and Cognitive Models

produces no false positives has a precision of 1. TN


“Precision” is calculated by applying Eq. (1.5). Specificity rate 5 (1.8)
TN 1 FP
TP where TN are the True Negative, FP are the False
Precision in ML Precision 5 (1.5)
TP 1 FP Positives.
where TP are the True Positives, FP are the False II. “FPR” values are shown in the horizontal axis of
Positives. the “ROC curve” and are calculated using
II. “Recall” is the proportion of actual positives that Eq. (1.9).
were identified correctly. A model that produces
no false negatives has a recall of 1. “Recall” is cal- False Positive Rate FPR 5 1 2 Specificity
culated by applying Eq. (1.6). FP (1.9)
5
TP FP 1 TN
Recall in ML Recall 5 (1.6)
TP 1 FN where FP are the False Positives, TN are the True
where TP are the True Positives, FN are the False Negatives.
G “Area Under the Curve (AUC)” is a measurement of
Negatives.
G “ROC (Receiver Operating Characteristic),” where the area under the entire function “ROC curve” in all
the “ROC curve” is a graphical plot that summarizes the range, where the “AUC” values range from 0 to 1.
how a classification system performs and allows us to “AUC” represents the probability that the evaluated AI
compare the performance of different classifiers. The model ranks a positive example more highly than a
“ROC curve” plots two parameters: “True Positive random negative example. In other words, “AUC 5 0”
Rate (TPR)” and “False Positive Rate (FPR).” means that the model’s predictions are 100% wrong,
I. “TPR” values are shown in the vertical axis of the and “AUC 5 1” means that the model’s predictions are
“ROC curve” and are calculated using the 100% correct.
Eq. (1.7). Another useful parameter is “specificity
rate” as shown in Eq. (1.8). “It is important to differentiate between AUC and ROC
curve: ROC is a probability curve and AUC represents the
TP
True Positive Rate TPR 5 Recall 5 (1.7) degree of separability.” To understand these two concepts
TP 1 FN four cases of AUC and ROC and their relationships are
where TP are the True Positives, FN are the False shown in Fig. 1.5.
Negatives.

FIGURE 1.5 Analysis of a model using AUC and ROC: (I) ideal case, (II) acceptable case, (III) worst case, and (IV) unacceptable case.
Biomedical engineering and the evolution of artificial intelligence Chapter | 1 15

I. “Ideal case: AUC 5 1 with threshold 5 0.5,” this predicted values, subtract actual values and
is when the two probability distribution curves do square the results. This yields a list of errors
not overlap and the model has a perfect way of squared, which is then summed and equals the
distinguishing between TN and TP. explained variance. These steps are stated in
II. “Acceptable case: AUC 5 0.7 with threshold 5 0.5,” Eqs. (1.12) and (1.13).
this is when the two probabilities’ distributions over-
Explained sum of squares
lap a reasonable value, and AUC . Threshold. This X (1.12)
means that there is 70% chance that the model dis- SSreg 5 i
ð fi 2y Þ2
tinguishes between TN and TP.
III. “Worst case: AUC 5 threshold 5 0.5,” this is where where fi are the predicted values and
P
n
both probabilities’ distribution curves overlap y 5 1n yi is the mean of the n observed data.
100%, this is an indication that the model does not i51
have a way to differentiate between TN and TP. Residual sum of squares
IV. “Unacceptable case: AUC 5 0 and Threshold 5 X X
SSres 5 ð yi 2fi Þ2 5 e2i (1.13)
0.5,” in this case the model has the same chance of i
i
predicting a TN as a TP or vice versa.
G “R-squared error (R2 ),” also known as the where yi are the values of the dataset and fi
“coefficient of determination,” is a statistical are the predicted values.
measure that represents the proportion of the In some cases, the “total sum of squares”
variance for a dependent variable that is equals the sum of the two other sums of
explained by an independent variable or vari- squares defined above, as shown in Eq. (1.14).
ables in a regression model. Whereas correla-
Total sum of squares SStot 5 SSres 1 SSreg (1.14)
tion explains the strength of the relationship
between an independent and dependent vari- G “Accuracy” is one metric for evaluating classifica-
able, “R-squared error” explains to what tion models, analyzing the fraction of predictions
extent the variance of one variable explains the the ML model got right using the Eq. (1.15).
variance of the second variable. So, if the R2
Number of correct predictions
of a model is 0.50, then approximately half of Accuracy 5
the observed variation can be explained by the Total number of predictions
(1.15)
model’s inputs, based on the range: TP 1 TN
5
0 # R2 # 1:R2 is calculated using Eq. (1.10). TP 1 TN 1 FP 1 FN
R 2 squared error where TP 5 True Positives, TN 5 True Negatives,
FP 5 False Positives, and FN 5 False Negatives.
Explained Variance
R2 5 1 2 (1.10)
Total Variance Once the evaluation of the model is finished, an
SSres improvement can be made by “tuning the model” also
512 known as “hyperparameter optimization.” A “hyperpara-
SStot
meter” is a parameter whose value is used to control the
Explained Variance (SSres Þ and learning process; this is different to other parameters, such
Total Variance (SStot Þ are calculated by the as the typically node weight, that are learned. The hyper-
following steps: parameters give a way for model optimization that mini-
G “Total Variance,” also known in statistics as
mizes a predefined “loss function,” also known as cost on
“total sum of squares (SStot Þ;” is calculated by
given independent data [21]. The “hyperparameters” are
subtracting the average actual value from the
often set by heuristics or tuned for a given predictive
predicted values, squaring the results and sum-
modeling problem. For example, when a “machine learn-
ming them. These steps are stated in Eq. (1.11).
ing algorithm” is tuned for a specific problem, such as
Total Variance or total sum of square when you are using a “grid search” or a “random search,”
X (1.11) then we are tuning the “hyperparameters of the model” or
SStot 5 ðy 2y Þ2
i i order to discover the parameters of the model that result in
G “Explained Variance,” also known in statistics the most skillful predictions. A good rule of thumb to over-
as “explained sum of squares (SSreg ),” is calcu- come this confusion is as follows:
lated by taking the data points (observations)
of dependent and independent variables and “If you have to specify a model parameter manually then it
finding the line of best fit, often from a regres- is probably a model hyperparameter.”
sion model. From there you would calculate
16 Applied Biomedical Engineering Using Artificial Intelligence and Cognitive Models

1.4.1.7 Step 7) Model prediction and “AI model” learns to perform a classifications task
deployment directly from images, text, and sound. DL is usually
“ML” is basically using data to answer questions. In this implemented using an “ANN architecture.” The “ANN”
final step we get the answer for our questions; the “ML created from these components are in the field of “AI”
model” is used to predict the outcome of what we need. that comes closest to modeling the workings of the human
Nevertheless, building a “ML model” is not the end of a brain. In “DL” improved mathematical formulas and
project; we need to apply the concept of “deployment,” increased computer processing power are enabling the
that refers to creating applications of a model for predic- development of more sophisticated applications than ever
tions using new data where it is need it. “Deployment” before. “DL” is also called “structured learning” and
means putting the “ML model in production in a com- “hierarchical learning”; it is the kind of machine intelli-
puter, company server or in a web cloud,” where the gence used to create “AI systems.” Examples are:
model can make predictions in real time. The “deploy- G Transportation: self-driving in vehicles, buses, taxis,
ment model” has many challenges, such as “scalability,” airplanes, etc.
“performance,” “response time,” and “model retraining.” G Voice applications, such as search and voice-activated
G “Scalability in machine learning” is the models which assistant, voice generation, music composition, etc.
G Business applications, such as advertising, finance,
can deal with any amount of data, without consuming
tremendous amounts of resources like memory. marketing, etc.
G Robotics, where smart robots can be trained to carry
G “Performance value in ML” indicates how successful
the predictions of a dataset have been by the training out complex tasks that require more thought and adap-
model. Usually the performance can be measured by tation, others can learn just by observing the human
metrics, such as ‘‘R2 ; ’’ “Average Error,” “Mean task, etc.
G Computer games, such as GO, chess, and others.
Square Error,” and others. Performance must be better
G Images applications, such as image recognition, auto-
if we add more data, add more features, do a right fea-
ture selection, use regularization, etc. matic image caption generation, automatic image col-
G “Response time” is the time to obtain the prediction orization, etc.
G Text applications, such as automatic machine transla-
from the model in any specific application, usually
fastest is better. tion of text, automatic text generation. automatic hand-
G “Model retraining” is part of the model life cycle to writing generation, etc.
G Healthcare applications, such as smart algorithms that
update the model the current data. In “Model retrain-
ing,” it is needed to run all the process again including measure diagnose condition, advise plan treatment, and
integration of “new data,” “preprocessing,” “training,” if approved by physicians it executes the delivery of
“evaluation,” and “deployment.” It is necessary for treatment for different illnesses and diseases, applying
there to be a way of automating all this process to neural networks for brain cancer detection, tumors, etc.
G Many more new DL applications are being created in
maintain the model and to be an “ML application”
that is successful with the evolution of new data. different areas currently.

This book will focus on “DL in Biomedical Engineering


In summary, “ML” has as a primary objective the discovery
applying to medicine and healthcare, that is, analyzing
of patterns in the data, to create a model that is useful
images, text, detecting and diagnosing medical conditions,
for taking decisions from new data. Every one of the
with a special emphasis on neurologic diseases through cog-
seven basic steps are especially important to achieve a good
nitive functions.”
prediction of the data using an “ML model.” These seven
general steps must be very well understood and followed.
Note: This is only an introduction ML; this subset of AI
is explained with more detail, specific examples and 1.5.1 Difference between deep learning and
exercises on MATLAB and IBM Watson Studio in Chapter 4, machine learning
“Machine Learning Models Applied to Biomedical
Engineering,” of this book. “DL” is a subset of “ML,” and “ML is a subset of AI.”
Usually, the term “deep learning refers to deep artificial
neural networks,” and somewhat less frequently to “deep
1.5 Deep learning reinforcement learning.” The main differences between
“DL” and “ML” are:
DL includes aspects of “ML algorithms”, “ANN,” and
“AI.” This is explained graphically in Fig. 1.2 and stated G Traditional Machine Learning Artificial Neural
in Eq. (1.4); where “DL” is a subset of “ML,” in which an Networks contain only two or three layers, while the
Biomedical engineering and the evolution of artificial intelligence Chapter | 1 17

deep learning network can have hundreds. This is the 1.5.2 Types of artificial neural networks
reason for the term Deep, that refers to the number of
“ANN” is an algorithm based on how the “human brain
layers in the network—the more layers, the deeper the
and the human nervous systems works.” It is based on a
network.
G
large collection of simple neural units known as “artificial
Multiple hidden layers allow deep neural networks to
neurons,” “loosely analogous to the observed behavior of
learn features of the data in the so-called feature hier-
a biological brain’s axons of the human brain*.”
archy, because simple features (e.g., two pixels)
recombine from one layer to the next, to form more
complex features (e.g., a line). Nets with many layers Note*: For more detailed information on the human brain
pass input data of features through more mathematical and neurons, please refer to Chapter 2, “Introduction
operations than nets with few layers and are therefore to Human Neuromusculoskeletal System,” of my book
more computationally intensive to train. Applied Biomechatronics Using Mathematical Models [22].
G “ML” works fine with small and medium size datasets,
their models are medium size and the computer power
needed is not so intense; whereas “DL needs big Each neural unit relates to many others, and links can
data, big models, and big computational power.” enhance or inhibit the activation state of adjoining neural
“Computational intensity” is one of the hallmarks of units. Each individual neural unit computes using sum-
“DL,” and it is one reason why a new kind of chip mation and activation function, as shown in the upper
called GPUs* are in demand for the training of deep- region of Fig. 1.6A. One brain neuron is connected from
learning models. axon terminals to dendrites of the next neuron in a pro-
cess known as “type 1 synapse.” Similarly, an “ANN is a
Note*: GPU (Graphics Processing Units) are massive parallel distributed processor” that has a natural
programmable logic processors specialized for fast propensity for storing experiential knowledge and mak-
numeric calculation and graphic rendering, that is, ing it available for use, as indicated in the lower region
NVIDIA. of Fig. 1.6B. It resembles the brain in two respects [23]:
“Learning process” and “Interconnection strengths,”
Please pay special attention to differentiate and recognize where:
algorithms and application of Deep Learning with respect G “Learning process” is the way that the knowledge is
to Machine Learning, cognitive computing, and Artificial acquired by an “ANN.” “Learning” is a process in
Intelligence. which the parameters such as the “synaptic weight”
indicated, such as wn in Fig. 1.6B, and “bias levels” of

FIGURE 1.6 Artificial Neural Network (ANN) is an algorithm based on how the human brain and the human nervous systems works. Analogy: (A)
two brain neurons are joined through the type I synapse versus (B) two ANNs.
18 Applied Biomedical Engineering Using Artificial Intelligence and Cognitive Models

a neural network are adapted through a continuous “Feed Forward Neural Network,” “Backpropagation
process of stimulation by the environment in which Neural Networks,” “Recurrent Neural Networks,” “Memory
the network is embedded. The basic learning processes Augmented Neural Networks,” “Modular Neural Networks,”
can be basically of two types: “Supervised learning” and “Evolutionary Neural Networks”.
and “unsupervised learning.”
G “Interconnection strengths” in an “ANN” are similar to 1.5.3 Feed forward neural network
the “synaptic human weight in the brain, which are
used to store the knowledge.” There may be a “thresh- “Feed Forward Neural Network” implies a signal that can
old function or limiting function” on each connection only be fed forward, meaning the absence of recurrent or
and on the unit, itself, such that the signal must sur- feedback connections. Where the data path is only for-
pass the limit before propagating to other neurons. ward facing, no backward feed connections between neu-
rons are present. Some frequently used examples of
The main advantage is that the “ANN” can be “self- “Feed Forward Neural Network” are shown in Fig. 1.8,
learning” as an “unsupervised network,” or trained as a and these are:
“supervised network,” rather than explicitly programmed, “Perceptron (P),” “MultiLayer Perceptron’s (MLP) or
and used in areas where the solution or feature detection Feed Forward Neural Network (FFN) or Deep Feed
is difficult to express in a traditional computer program. Forward Network (DFF),” “Radial Basis Network
The main disadvantage of “learning algorithms as ANN is (RBF),” “Probabilistic neural network (PNN)”, Extreme
that they may require an exponential number of iterations Learning Machine (ELM), and others.
with respect to the number of weights until a solution to a
G “Perceptron (P)” is usually a single layer neural net-
learning task is found.” This means more processing time
to obtain the desired solution [24]. work; it is used to classify the data into two parts.
There is not standard definition to classify the different Therefore it is also known as a “Linear Binary
types of available “ANN” based on different approaches, Classifier.” It is used in “supervised learning” and
such as architectures and other characteristics. For the pur- helps to “classify” the given input data.
pose of “ANNs” study, they are separated in this book based
on the “methodology to process the information on the neu- The “Perceptron (P)” is studied in more detail in
rons (nodes) to achieve their decisions in the outputs”. Section 5.2.1.
These are of six different types, as indicated in Fig. 1.7:

FIGURE 1.7 Artificial Neural Network types based on the way data are processed in neurons (node).
Biomedical engineering and the evolution of artificial intelligence Chapter | 1 19

FIGURE 1.8 Examples of ANNs as Feed Forward Networks.

G “Multilayer perceptron (MLP)” also called “Feed for- resembles the class A prototypes than the class B pro-
ward Neural Network (FFN)” is when the network has totypes, it is classified as class A, and so on. “RBF”
three or more hidden layers. In “MLP,” the percep- have many applications, such as function approxima-
trons are arranged in layers, with the first layer taking tion, time series prediction, classification, and system
in inputs and the last layer producing outputs. The control.
middle layers have no connection with the external
world, and hence are called hidden layers. The goal of The “RBF” is studied in more detail in Section 5.2.3.
a “MLP” is to approximate some function ‘‘f  ðxÞ:’’
For example, for a classifier, ‘‘y 5 f  ðxÞ’’ maps an
input “x” to a category “y.” Then, an “MLP” defines a G “Probabilistic Neural Network (PNN)” is a type of
mapping ‘‘y 5 f ðx; [Þ’’ and learns the value of the
“ANN” derived from the “Bayesian network” [25] and
parameters “[” that result in the best function approx-
a statistical algorithm called “Kernel Fisher discrimi-
imation. “MLP” utilizes “supervised learning” that
nant analysis” [26], where the parent “probability dis-
can distinguish data that are not linearly separable.
tribution function (PDF)” of each class is
approximated by a “Parzen window” method and a
The “MLP” is studied in more detail in Section 5.2.2. nonparametric function. Then, using “PDF” of each
class, the class probability of a new input data is esti-
mated and “Bayes’ rule” is then employed to allocate
the class with highest posterior probability to new
G “Radial Basis Network (RBF)” can be used in nonlin-
input data. In a “PNN,” the operations are organized
ear classifications and other applications, such as func-
into a “multilayered feed forward network” with four
tion approximation. It performs classification by
layers: “Input layer,” “Pattern layer,” “Summation
measuring the input’s similarity to examples from the
layer,” and “Output layer.” It is widely used in classi-
training set. Each “RBF neuron” stores a “prototype,”
fication and pattern recognition problems [27].
which is just one of the examples from the training
set. Where the goal is to “classify a new input,” each
“neuron” computes the “Euclidean distance” between The “PNN” is studied in more detail in Section 5.2.4.
the input and its prototype. If the input more closely
20 Applied Biomedical Engineering Using Artificial Intelligence and Cognitive Models

G “Extreme Learning Machine (ELM)” is a method that frequently used examples of “Backpropagation neural
is essentially a “single feed forward neural network”; networks” are shown in Fig. 1.9: “Auto Encoder (AE),”
its structure consists of a single layer of hidden nodes, “Variational Auto Encoder (VAE),” “Denoising Auto
where the weights between inputs and hidden nodes Encoder (DAE),” “Sparse Auto Encoder (SAE),” “Deep
are randomly assigned, this means that it does not Convolution Network (DCN) or ConvNet (CNN),”
need a learning process to calculate the parameters of “Deconvolutional Network (DN),” “Deep Convolutional
the models, and remains constant during training and Inverse Graphics Network (DCIGN),” “Generative
predicting phases. On the contrary, the weights that Adversarial Network (GAN),” “Deep Residual Network
connect hidden nodes to outputs can be trained very (DRN), or Deep ResNet” and others.
fast [28]. The greatest advantage of “EMLs” is that
G “Auto Encoder (AE)” is an “unsupervised artificial neu-
they are very cheap computationally for implementing
online models [29]. “ELM” is used for pattern classifi- ral network” that learns how to efficiently compress
cation and function approximation. and “encode data from images, and how to reconstruct
the data back from the reduced encoded representa-
tion” to a representation that is as close to the original
The “ELM” is studied in more detail in Section 5.2.5. input as possible. “Auto Encoder,” by design, reduces
data dimensions by learning how to ignore the noise in
data and images [30]. “AE” consists of four main parts:
G And many others that are based on Feed Forward neu- (1) “Encoder” is where the model learns to reduce input
ral network architecture. dimensions and compress input data; (2) “Bottleneck”
is a layer that contains the compress representation of
the input data of images; (3) “Decoder” is where the
1.5.4 Backpropagation neural network model learn to reconstruct data from the encoded repre-
“Backpropagation neural networks” imply that the signal sentation, and (4) “Reconstruction loss” is a method
propagates from the input data forward through its para- that measures the decoder and how outputs compare to
meters toward the decision, and then propagates informa- the original data.
tion about the error in reverse, and thus in this way can Note: An “Auto Encoder Neural Network (AE)” is
adjust the parameter until finding the smallest error. Some an unsupervised learning or feature learning that has

FIGURE 1.9 Examples of ANNs as backpropagation networks.


Biomedical engineering and the evolution of artificial intelligence Chapter | 1 21

“Encoders” and “Decoders,” they are “feed forward “P300 Component Detection and Classification of 3D
NN but applies backpropagation algorithms,” for set- Spine Models in Adolescent Idiopathic Scoliosis,”
ting the target values to be equal to the inputs, that is, where, the “classification” of the rich and complex
for “y(i) 5 x(i).” variability of spinal deformities is critical for compari-
sons between treatments and for long-term patient
follow-ups.
The “AE” is studied in more detail in Section 5.4.1.

The “SAE” is studied in more detail in Section 5.4.4.


G “Variational Auto Encoders (VAE)” are powerful gen-
erative models, with diverse applications: from gener-
G “Deep Convolution Network (DCN) or ConvNet
ating fake human faces, to producing purely synthetic
music. VAE uses the input to the encoder, then com- (CNN)” is a class of “deep neural networks,” most
press and finally decoder, its objective is to replicate applied to analyzing visual imagery. “DCN” can take
the same image from the input in the output. In gener- in an input image, assign importance using learnable
ative models, the objective is to generate variations in weights and biases to various aspects/objects in the
the output from an input image. image, and be able to differentiate one from the
other. A “ConvNet” architecture is in the simplest
case a list of layers that transform the image volume
The “VAE” is studied in more detail in Section 5.4.2. into an output volume. The preprocessing required in
a “ConvNet” is much lower as compared to other
classification algorithms. “CNNs” are regularized
G “Denoising Auto Encoder (DAE)” solves the problem versions of multilayer perceptrons that are fully con-
known as “Identify Function*” by corrupting the data nected networks, that is, each neuron in one layer is
on purpose by randomly turning some of the input connected to all neurons in the next layer. In the clas-
values to zero. In general, the percentage of input sical backpropagation algorithm, the weights are
nodes that are set to zero is about 50%. When calcu- changed according to the gradient descent direction
lating the “Loss function,” it is important to compare of an error surface [33]. The architecture of a
the output values with the original input, not with the “ConvNet” is analogous to that of the connectivity
corrupted input. This way, the risk of learning the pattern of neurons in the human brain and was
identity function instead of extracting features is inspired by the organization of the visual cortex.
eliminated [31]. Individual neurons respond to stimuli only in a
Note*: Identify Function or “Null Function” is restricted region of the visual field known as the
present in neural network when there are more nodes “Receptive Field.” A collection of such fields over-
in the hidden layer than there are in the inputs, this laps to cover the entire visual area. “DCN” are used
issue could limited the mathematical learning of in applications for image and video recognition,
important behaviors to obtain a useful AI model image analysis and classification, media recreation,
recommendation systems, natural language proces-
The “DAE” is studied in more detail in Section 5.4.3.
sing, etc. [34,35].

The “DCN” is studied in more detail in Section 5.4.5.


G “Sparse Auto Encoder (SAE)” consists of a single hid-
den layer, which is connected to the input vector by a
weight matrix forming the encoding step. The hidden G Deconvolutional Network (DN) also known as
layer then outputs to a reconstruction vector, using a “deconvs” or “transposed convolutional neural net-
tied weight matrix to form the decoder. “A stacked works.” “DN” is a neural network that performs an
auto encoder” is a neural network consisting of several “inverse convolution model”; its most frequent appli-
layers of “sparse autoencoders” where the output of cation is for object recognition in images. “DN” is
each hidden layer is connected to the input of the suc- an “unsupervised construction of hierarchical image
cessive hidden layer [32]. “Stacked auto encoder” representation learning” of mid- and high-level
improves accuracy in deep learning with noisy autoen- image representation, this can be achieved using fea-
coders embedded in the layers. Stacked auto encoders ture hierarchy from alternative layers of “convolu-
are used for many medical science purposes, such as tional sparse coding or deconvolution”; it is a method
22 Applied Biomedical Engineering Using Artificial Intelligence and Cognitive Models

for learning by shift-invariant dictionaries in image G And many others that use “Backpropagation neural
and “max pooling” as a sample-based discretization networks” architecture.
process [36].

The “DN” is studied in more detail in Section 5.4.6.


1.5.5 Recurrent neural networks
“Recurrent neural networks” imply the use recurrent or
feedback connections between neurons. Such networks
G “Deep Convolutional Inverse Graphics Network are “Turing complete,” in the sense that they can learn
(DCIGN)” has the objective to learn an interpretable any function, spatial 1 temporal functions. Some fre-
representation of images that is disentangled with quently used examples of “Recurrent neural networks”
respect to various transformations such as object out- are shown in Fig. 1.10, these are: “Recurrent Neural
of-plane rotations, lighting variations, and texture. The Network (RNN) vanilla,” “Long/short-term memory
“DCIGN model” is composed of “multiple layers of (LSTM),” “Gated recurrent unit (GRU) networks,”
convolution and deconvolution operators” and is “Recurrent convolutional neural networks (RCNN),”
trained using the “Stochastic Gradient Variational “Hopfield Network (HN),” “Boltzmann Machine (BM),”
Bayes (SGVB)” algorithm [37]. “Restricted Boltzmann Machine (RBM),” “Liquid State
Machine (LSM),” “Echo State Network (ESN),”
The “DCIGN” is studied in more detail in Section 5.4.7.
“Korhonen Network (KEN),” and many more. Where:
G “Recurrent Neural Network (RNN) vanilla” takes the
previous output or hidden states as inputs. The com-
G “Generative Adversarial Networks (GAN) belong to posite input at time “t” has some historical information
the set of “generative models.” It means that they are about the happening at time T , t.
able to produce/to generate new content form the input
of random variables, then a generative network is
The “RNN vanilla” is studied in more detail in
trained to maximize the final classification error, the Section 6.2.1.
results are a generated distribution, and finally a dis-
criminate network is trained to minimize the final clas-
sification error that is used as a reference metric for
G “Long/Short-Term Memory (LSTM)” is a special
both networks [38].
“RNN” capable of learning long-term dependencies,
simulating in its feedback connections a “general-
The “GAN” is studied in more detail in Section 5.4.8. purpose computer.” It can be used for classifying, pro-
cessing, and predictions. The “LSTM” process uses
single data points, such as images to sequences of data
G “Deep Residual Network (DRN) or Deep ResNet” is a as text, speech, audio, and video [39]. “LSTM gates”
“neural network using a residual learning framework” have three types of memory cells: “Forget Gate” that
that preserves inputs and improves accuracy using decides what information to discard from the cell;
many layers. “Deep ResNet” architecture “holds many “Input Gate” that decides which values from the input
staked layers including convolutional, pooling, and to update the memory state; and “Output Gate” that
fully connected.” This network has a “skip function” decides what to output based on input and the memory
that reduces the number of times a linear function is of the cell [40].
used to achieve an output creating “residual block”
that eliminates the “varnished gradients,” so that when
The “LSTM” is studied in more detail in Section 6.2.2.
a gradient becomes very small, even a very big change
in the input will not affect the output as desired;
and “exploding gradients” so that when a gradient
G “Gated Recurrent Unit (GRU)” is a “variant RNN”
becomes exponentially big, the algorithm can no lon-
ger be used to train the model. “DRN” are often used like an “LSTM” unit but “without an output gate using
for image recognition applications. a gating mechanism.” A “GRU” can be considered a
specific variation of an “LSTM” unit because both
have a similar design and produce equal results
The “DRN” is studied in more detail in Section 5.4.9. in some cases. “GRU” uses a gating mechanism to
control and manage the flow of information between
Biomedical engineering and the evolution of artificial intelligence Chapter | 1 23

FIGURE 1.10 Examples of ANN as Recurrent neural networks.

cells in the neural network. “GRUs” can solve the networks lack the lateral and feedback connections,
“vanishing gradient problem*” by using an “update and the resulting “recurrent neuronal dynamics, of the
gate” and a “reset gate.” The “update gate” controls ventral visual pathway in the human and nonhuman
information that flows into the memory, and the “reset primate brain” [41].
gate” controls the information that flows out of the
memory. The “update gate and reset gate” are two
The “RCNN” is studied in more detail in Section 6.2.4.
vectors that decide which information will get passed
on to the output. They can be trained to keep informa-
tion from the past or remove information that is irrele- G “Regional-Convolutional Neural Network (R-CNN)
vant to the prediction.
Object detection in AI Models” is a special kind of stan-
Note*: The vanishing gradient problem occurs
dard “CNN”, it can handle different spatial locations
when the calculated partial derivatives are used
with different ratios. “R-CNN” can analyze a huge num-
to compute the gradient as one goes deeper into the
ber of regions, using special methods to avoid long
network. Since the gradients control how much
computational process and powerful hardware. There
the network learns during training, if the gradients are
are some “AI procedures to resolve this problem,” such
very small or zero, then little to no training can take
as “Regional-Convolutional Neural Network (R-CNN),”
place, leading to poor predictive performance.
“Fast R-CNN”, “YOLO” and others.

The “GRU” is studied in more detail in Section 6.2.3. The “R-CNN” is studied in more detail in Section 6.2.5.

G “Recurrent convolutional neural network (RCNN)” is G “Hopfield Network (HN)” is a form of “recurrent arti-
a “convolutional neural network that includes lateral ficial neural network” that can reconstruct data after
and feedback connections.” Feed forward neural net- being fed with corrupt versions of the same data. It
works provide the dominant model of how the brain usually works by first learning several binary patterns
performs visual object recognition. However, these and then returning the one that is the most similar to a
24 Applied Biomedical Engineering Using Artificial Intelligence and Cognitive Models

given input. It can be described as a network of nodes, happening in the system being studied [42]. Like
representing neurons that are connected by links; each other kinds of neural networks, “liquid state
unit has one of two states at any point in time and the machines and similar builds are based around the
vector represents the state of each node. The links rep- neurobiology of the human brain.” “LSM” has appli-
resent the connections between nodes, and they are cations such as speech and audio recognition, image
symmetric. pattern recognition, music classification, robot path
planning, fingerprint scanners, facial emotion recog-
nition, and others [43].
The “HN” is studied in more detail in Section 6.2.6. Note*: Spiking neural networks (SNNs) are artifi-
cial neural networks that more closely mimic natural
neural networks. In addition to neuronal and synaptic
G “Boltzmann Machine (BM)” is a type of “stochastic state, SNNs incorporate the concept of time into their
recurrent neural network” and Markov random field.” operating model.
“BM” is a generative net because it does not expect
input data. It generates data as a “unsupervised
model,” which involves learning a “probability distri- The “LSM” is studied in more detail in Section 6.2.9.
bution” from an original dataset and using it to make
inferences about never before seen data. “BM” has
G “Echo State Network (ESN)” is another type of “recur-
an input visible layers and one or several hidden
layers, where everything is connected to everything. rent neural network (RNN)” using “supervised learn-
Connections are bidirectional, visible neurons con- ing.” An “ESN” is not organized in a standard set of
nected to each other and hidden neurons also con- layers, it has random connections between the neurons
nected to each other. and the training is different: instead of feeding the
input and calculate the weight and the backpropagat-
ing error used at typical RNN, the input is feed, calcu-
The “BM” is studied in more detail in Section 6.2.7. late the weight and update the neurons value for a
while to observe the output that change over time in a
special a “dynamic reservoir” [44].
G “Restricted Boltzmann Machine (RBM)” is a variant
of “BM.” “RBM” is a generative “stochastic artificial neu-
ral network” that can “learn a probability distribution” The “ESN” is” studied in more detail in Section 6.2.10.
over its set of inputs. It can be trained in either “super-
vised or unsupervised” ways, depending on the task.
G “Korhonen Network (KN), also known as Self
Organizing Map (SOM),” is a type of “artificial neural
The “RBM is” studied in more detail in Section 6.2.8.
network (ANN)” used as “unsupervised learning” for
classification. Input is presented to the network, after
which the network assesses which of its neurons most
G “Liquid State Machine (LSM)” consists of a large closely match that input. They use a neighborhood
collection of nodes or neurons from “Spiking Neural function to preserve the topological properties of the
Networks*.” Each node receives time varying input input space. These neurons are then adjusted to match
from external sources as inputs, and from other the input even better, dragging along their neighbors
nodes, where nodes are randomly connected to each in the process. How much the neighbors are moved
other. The recurrent nature of the connections turns depends on the distance of the neighbors to the best
the time varying input into a “spatiotemporal pattern matching units [45]. It seems to be the most natural
of activations” in the network nodes. The “spatiotem- way of learning, which is used in our brains, where no
poral patterns” of activation are read out by linear patterns are defined.
discriminant units. The word “liquid” comes from
the analogy drawn to dropping a stone in water or
other liquid to generate ripples in it. The input simu- The “KN” is studied in more detail in Section 6.2.11.
lates the motion of the falling stone, which is con-
verted into a spatiotemporal pattern of liquid
displacement representing the ripples, then the G And many others that use “Recurrent neural networks
ripples can be evaluated to understand what is architecture.”
Another random document with
no related content on Scribd:
row around the island to the other side. Do you suppose we can do
so without fear of being seen?”
“I think our pursuers have given up the hope of finding us, for they
seemed to be going back the way they came. I think we are safe, but
it will not do to take any needless risk.”
“It was a party of Cockburn’s men from Kent Island, I suppose. They
are raiding around in every direction. At St. Michael’s they have not
dared to use any lights, except such as they must have, for months,
and it is the same everywhere about. We live in constant dread of
them.” She shuddered and hid her face in her hands, but in a
moment she looked up. “Mr. Baldwin,” she said, “I have brought you
into great danger which I might have spared you if I had consented
to do as my brother wished. I must seem disloyal, as well as
obstinate and over impulsive.”
“None of those things. You have been brave, and true to your
compassionate nature. As for me, save that you were in great
danger, the experience is one that I might meet at any time. I am not
seriously hurt; a cut or two; no bones broken. I have come off well.
Pray do not distress yourself on my account. My sole concern is for
you.”
“Shall we try to get across now? It must be very late.”
“I think it is, and growing cloudier all the time. Did you say the boat
was this way? Sit still. Please do not make any more effort than you
need. Those little feet have been too sorely tried already.”
The boat was found in its place, and they embarked upon the little
creek, by degrees making their way around the island, and then
across to the opposite shore.
“I trust it is not far, for your sake,” said Mr. Baldwin, seeing how
utterly exhausted the girl was.
“No, it is but a little way.” Yet every step was torture to the already
bruised feet, and tears were running down the girl’s cheeks when at
last they stopped at the door of old Hagar’s little hut.
Mr. Baldwin rapped sharply. “Who dar?” came a startled response.
“It is I, Aunt Hagar; Lettice, Mars Jeems’s Lettice.”
“What yuh doin’ hyar dis time o’ night?”
“Law, chile! Fo’ de Lawd!” came the reply, and in an instant there
was a withdrawal of bolts and bars, and the old woman’s head was
thrust out.
“What yuh doin’ hyar dis time o’ night, honey chile?” she asked,
peering out into the darkness. “Huccome yuh lookin’ up ole Hagar? I
specs yuh in lub,” she chuckled; but when Lettice and her
companion stepped into the cabin and Aunt Hagar had struck a light,
she looked at the two in astonishment. “Law, chile,” she exclaimed,
“yuh look lak ole rag-bag. What got yuh? Mos’ bar’ footy, an’ all yo’
clo’es tattered an’ to’n; an’ who dis?” She peered up into Mr.
Baldwin’s face. “I knows him. He one o’ de Bald’in tribe. Dat a Bald’in
nose. I know dat ef I see it in Jericho. What yuh doin’ wif mah young
miss out in de worl’ dis time o’ night?” she asked suspiciously.
“We were at Uncle Tom’s, and were attacked by a party of Britishers
on our way home,” Lettice told her.
“Some o’ dat mizzible gang from Kent Island, I reckons.”
“Yes, we suppose so. Well, we had a desperate time getting away
from them. Mr. Baldwin fought—oh, how he fought!”
“And you, Miss Hopkins, how well you did your part.”
“It was life or death, and we at last did escape, but we have lost our
horses, and are too footsore and bruised and scared to go farther.”
“Ole Hagar fix yuh up. I has ’intment, yuh knows I has; an’ I has
yarbs; but, fo’ de Lawd, I’ll cunjur dem Britishers, ef dey is a way to
do it, dat I will. Dere now, honey, let me wrop up dem po’ litty footies.
Hm! Hm! dey is stone bruise, an’ dey is scratch, an’ dey is strain an’
sprain, an’ what ain’ dey? But dis cyo’ ’em. Now lemme see what
young marster a-needin’. Hm! Hm! he slash an’ slit; swo’d cut on he
shoulder. Huccome he fight an’ swim an’ row, I dunno, wif all dese
yer slashes, an’ t’ars, an’ all dat. Yuh bofe has sholy been froo de
mill. I say yuh has.” And talking all the time, the old woman managed
to make her visitors really comfortable, as she ministered to them
with deft, experienced fingers.
“Now, Aunt Hagar,” said Mr. Baldwin, when she had put on her last
bandage, “I will leave Miss Lettice in your care, and I will go to her
home and report that she is safe. They will be very anxious.”
“Oh, but you are not fit to go any farther,” Lettice protested.
“Oh, yes, I am. You do not know what a charm Aunt Hagar has put
into these ointments. Your family will be in great distress of mind,
and I think it would be best that I should go and reassure them.”
“Yes, honey, he better go,” said Aunt Hagar, from the corner where
she was busying herself with some mysterious mixture. “Mars
Bald’in, drink dis, honey, hit give yuh stren’th, an’ mek yuh git over
de groun’ lak a rabbit. Jess follow de paf to de spring, den strike off
to de lef’, an’ whenst yuh come to de hayricks by de right side de
road, yuh is jes back o’ Mars William’s barn. Hit a roun’erbout way,
but hit’s better dan crossin’ de water. I’ll look out fo’ Miss Letty. Yuh
tell ’em Aunt Hagar got her, an’ dey satify she all right. An’ tell ’em,”
she went to the door and spoke in a whisper, “tell ’em not to raise a
cry all roun’ de neighborhood dat she out dis-a-way. Dey is folks dat
love to talk, an’ I don’ want de chile’s name to be made free wif, an’
have ’em say she traipsin roun’ de country wif young men all hours
of de night. Yuh hyar me?”
“I agree with you, certainly, Aunt Hagar, and I shall do my part in
keeping the matter quiet. A young lady’s name is too delicate a thing
to be bandied about by those who are merely curious. I will see you
again soon, Aunt Hagar. I haven’t thanked you half as I should for
your kindness.”
Aunt Hagar beamed, and as she reëntered the room and stood over
Lettice, where she sat in a low splint-bottomed chair, she said: “He
blue blood. I knows dat. Some folkses has money but dey hasn’t
nothin’ e’s. He got de name an’ de manners of a gent’man.” She
stroked Lettice’s hair with her withered old hand. “Now, honey,” she
went on, “I gwine give yuh a drink o’ sumpin’ to put yuh to sleep, an’
yuh ain’ gwine wake up no mo’ twel de sun three hours high; an’ I
gwine put a name in dis cup so yuh dreams gwine be sweet an’
pleasant. Yuh is had a bad ’sperience, an’ yuh might have turr’ble
dreams ef yuh didn’t have no chawm ter stop ’em. Drink dis, honey,
hit tas’ es sweet an’ good, an’ won’ hu’t a kitten. I mek yo’ baid up
nice an’ clean, an’ yuh sleep lak a baby.”
“But where will you sleep?” Lettice asked.
“I sleep whar I sleep. Yuh reckon I uses dat baid? I sleeps whar I
sleeps; in dis cheer, on de flo’, anywhar I lak. Yuh don’ reckon I
sleeps in dat baid dese hot nights? No, ma’am, I sleeps whar I
sleeps.” And despite Lettice’s protests she would have her take
possession of the high four-posted bed with its bright patchwork
quilt, and its fresh white sheets; and in a few minutes the exhausted
girl was fast asleep.
She awakened the next morning to hear the patter of rain on the
roof, and to see Aunt Hagar crouching over a fire, giving her
attention to a fine pone browning in the bake kettle. There was an
odor of sizzling bacon, of coffee, and of some herby mess which
Lettice could not identify. She sat up in bed, and called, “Aunt
Hagar.”
The old woman arose with alacrity. “I ’lows hit mos’ time fo’ yuh to
wek up. I has yo’ brekfus mos’ done, an’ yo’ clo’es is dry an’ ready
fo’ yuh. Yo’ stockings is too raggety fo’ yuh to w’ar, an’ yo’ purty frock
ain’ nothin’ but strips an’ strings. Yuh has to w’ar hit though; hit
clean. An’ ’tain’ no matter ’bout de stockin’s, yuh ain’ gwine put yo’
footies to de groun’ fo’ a week; dat I say.”
“But they feel much better; so much. And, oh, Aunt Hagar, you must
have been up very early to have washed and ironed all my things.”
“I gits up when I ready. I nuvver has no rug’lar time fo’ gittin’ up an’
gwine to baid,” she explained; and then she helped Lettice on with
her clothes, after bringing her warm water in a tin basin, and
attending to her wants. Then she made ready the breakfast on a
deal table to which Lettice was assisted, after having been made to
drink a copious draught of herb tea.
“Mek yuh eat hearty, chile. Mek yuh feel nice, an’ keep off de chills,
an’ mek yuh rosy an’ purty. Yuh doan’ want dem pale cheeks when
Mars Bald’in’ aroun’,” coaxingly said Aunt Hagar.
Lettice laughed, and, with a wry face, swallowed the draught, and, to
her surprise, she found herself ready for a hearty breakfast, which
seemed to taste uncommonly good, for Aunt Hagar was a famous
cook and nurse, as she was a noted “conjur woman.”
The girl had hardly finished her meal when “rap-rap” came at the
door, and the latch was lifted to disclose her brother and her sister
Betty, with the carriage, pillows, wraps, and all such paraphernalia.
Sister Betty fell on Lettice’s neck, kissing and compassionating her.
“Oh, you dear child, I was afraid you would be in a raging fever this
morning. Oh, you poor little thing, what a dreadful, dreadful time you
have had! Naughty girl, to run away from your home. Come, William,
pick her up and carry her out to the carriage. It is not raining so hard,
but her poor little tootsie-wootsies are all bound up, and she must be
in a sorry plight, in spite of her brave looks.”
“Aunt Hagar has been so good to me,” Lettice told them. “She has
made a new girl of me. I am in rags, but they are clean ones, thanks
to Aunt Hagar. I feel wonderfully peart this morning, after my woful
adventures. And how is Mr. Baldwin? I judge he reached you safely.”
“Yes, but in rather a sorry plight, for it was raining hard when he
arrived, and the extra effort was none too good for him; but we have
kept him in bed, and we will cosset him, and he will soon be well, I
hope. He has come off worse than you, for he has a high fever, and I
was loath to leave him; but Mammy is a good nurse, and I thought
she could do better for him than I.”
“He is a brave fellow,” William put in. “He made little of his part in
your affair, and much of yours, but his condition shows that he fought
manfully. Ah, little sister, if you had but stayed at home.”
“Now, William, you shall not scold,” Betty interrupted. “The child has
suffered enough, and she did what she thought was right, no doubt.”
“I did hope I could get the papers,” said Lettice, wistfully, “and I
thought the matter would be most easily settled so, and I was afraid
that it would be too late if I waited till morning, so I went, and it was
no use after all.”
“Yet, perhaps it was,” her brother said gravely, “for the papers have
come to light.”
Lettice opened her eyes wide. “And how were they found?”
“There is the mystery. Lutie brought them to me with a marvellous
tale of their being handed to her to be placed in my hands, and she
either pretended or she did not know who brought them. I questioned
her, but she stuttered and stammered, and told about some one in a
great cloak, and whose face she did not see, and she declared she
was so mortal scared that she couldn’t have told who it was, anyhow,
and a lot of stuff from which we could make neither head nor tail. But
the papers are safe, although no one knows but that they have been
copied. I would like to get at the bottom of the matter.”
“Perhaps I can,” replied Lettice, thoughtfully. “At all events, I am glad
they have been returned. And now we will go home.” So she was
bundled into the carriage, and reached home with a thankful heart.
But Aunt Hagar’s predictions came true, for it was a week before she
could put her feet to the ground.
CHAPTER XIII.
Confidences.
The rôle of patient which was enforced upon both Lettice and Mr.
Baldwin was not altogether disagreeable to the pair. A couple of
days was all the time that Mr. Baldwin would consent to remain in
bed, and by that Lettice, too, was downstairs, looking, it is true, very
pale and with blue shadows under her eyes, but quite herself
otherwise. The knowledge of her night’s doings was kept a profound
secret from all but her immediate family, although Aunt Martha and
Rhoda were considered sufficiently discreet to be intrusted with an
account of her adventures.
It was James who told Rhoda about it, when he went over to make
his farewells before going to join Barney’s flotilla, for he declared that
he was in no mood for land service. “We can’t have every Tom, Dick,
and Harry discussing Letty’s doings,” he said. “There are those just
waiting for a chance to call her light and unmaidenly, travelling
around alone in these times; although we, who know her, can impute
it to nothing but pity and bravery. Besides, Cockburn and his men
have such a name, that but to mention the fact of her having fallen
into their hands, would give rise to exaggerated reports.”
Rhoda nodded. “Yes, we who know her and love her would best say
nothing about it. Lettice is a brave girl and a tender-hearted one,
even if she is a bit too impulsive.”
Jamie’s eyes beamed at this praise of his dearly loved sister from
one who was always chary of her compliments; and when Rhoda
expressed her determination to go at once to see Lettice, he gladly
offered to be her escort. “I wish you were well out of here and safe in
Boston,” he said. “With that terrible beast of a Cockburn infesting our
shores, and every man feeling it his duty to be off with the militia, our
homes are illy protected. Your father should not allow you to remain
here.”
Rhoda frowned, and half shut her eyes in a little haughty way that
she had. “My father does what he thinks best. I do not dispute his
judgment. He does not know, or is not willing to believe, the state of
affairs down here.”
Jamie made no response although he thought, “Nothing to his credit
that it is so.”
Lettice greeted Rhoda warmly. “It is good of you to come over to see
this battered-up piece of humanity,” she said. “Am I not a decrepit?”
She thrust out one bandaged foot as she stood holding to a chair.
“Are you then so lame?” Rhoda asked with concern.
“Yes, I am rather used up by sprains and bruises, but it is nothing
serious, after all, and only demands that I keep quiet.”
“Tell me about it,” Rhoda said abruptly, as she motioned Lettice to
her place on the couch. And Lettice gave her a detailed account of
her adventures, ending with, “And it was my very prettiest scarf, the
silk one with many colored stripes that Uncle Tom brought me from
Paris.”
“How can you think of such slight things when it was all so serious?”
Rhoda asked, in a puzzled tone.
Lettice laughed. “Because I am so shallow, I suppose. I remember
being thankful that I had that particular piece of finery, because it
was so strong, and not like some of my others made of a lighter and
more gauzy material. You see how I could let my thoughts run on
dress, even in that desperate hour. I tell you I am only a butterfly.”
“But you are not. You weep like a baby over the smallest thing, when
it is weak and silly to do so, and you prink and coquet and parade
your dress, but at heart you are brave and loyal, and have the
greatest amount of endurance. I cannot make you out.”
“No more can I you. I am a piece of vanity, and when there is
anything to be gained by showing a brave front I can do it well
enough; at other times I simply let myself go, and if I feel like crying I
cry, when there is anybody around to pet me and make much of me,
even if it is only Mammy.” Then she suddenly became grave. “Did
you know that the papers were found? Or rather, they have been
returned.”
Rhoda started. “You don’t mean it!”
“I do.”
“Who returned them?”
“My maid, Lutie.”
“Was she the thief?”
“No, I think,—I am quite positive, she was not. She says they were
given to her to deliver to my brother.”
“By whom?”
“She does not tell. By the way, I promised my brother William that I
would try to fathom the matter. Rhoda, where is Mr. Clinton?”
Rhoda did not answer for a moment; then she said: “You still suspect
him? Do you mean me to infer that you believe it was he who gave
Lutie the papers?”
“I don’t know what to think. I would rather fasten my suspicions on
some one else, for more reasons than one.”
“What reasons?”
“I would rather be sure the papers had not been copied.”
“You believe he would do such a thing as that? I do not. I have more
faith in him than you, Lettice.”
“Yet you do not love him.”
“Have I said I do not?”
“No, but I know it. I know one cannot love two men at the same
time.”
“Lettice, you presume.”
“Do I? I don’t mean to; but—Ah well, Rhoda, we are but girls, and we
are on the lookout for signs that escape others whose thoughts are
not on romances.”
“And you think you have read signs in me? Am I such a telltale,
then?”
“Far from it. You are unusually wary. But Rhoda, do you know that
Jamie leaves us to-day?”
The color mounted slowly to Rhoda’s face, tingeing even her ears
with red.
Lettice leaned over and said mockingly, as she possessed herself of
Rhoda’s hand, “A sign, Rhoda! A sign! What does that blush mean?”
Rhoda bit her lip, but did not raise her eyes.
“Our bonny Jamie,” sighed Lettice. “Ah me, I hope God will spare
him. I hope, O I hope—Oh, Rhoda, what if he should be going, never
to return.”
“Don’t!” cried Rhoda, in a sharp, quick voice. And then she snatched
her hand from Lettice and, covering her face, sobbed in a
convulsive, tearless way.
“Rhoda, dear Rhoda,” cried Lettice. “What a wicked girl I am! I did
not mean to be cruel to you. I should have had more consideration
for your feelings and have kept my fears to myself.” She essayed to
rise, but Rhoda motioned her back. “Come here, then, and sit by me
that I may know that you forgive me,” she begged, and Rhoda came.
Lettice caressed and soothed her so that in a few minutes she had
regained her composure.
“You asked about Robert,” she said. “He has gone to Washington
and vows he will never return. He left his address, should any one
wish to know of his whereabouts.”
“I am glad. I think that is best.”
Rhoda in her turn began to catechize. “Do you love him, Lettice?”
“No, I can say truthfully that I do not. I was beginning to, I think; but
now, I am so racked by doubt and mistrust that I have no room for
any other feeling. I do not want to love him. This cloud would ever be
rising between us. I would grieve to have harm come to him, and yet
—”
“You would denounce him to his enemies?”
“If it would serve my country, yes. I could not tell a lie for him.”
“Then you do not love him.”
“Could you tell an untruth for one you loved?”
Rhoda reflected. “I would not tell an untruth, but I would believe in
him though no one else did, and I would not give up my belief while
there was a shadow of a chance that he was innocent. And, in any
event, I would be very sure before I declared a person guilty who
might be proved innocent.”
“That is why I went to you the other night,” replied Lettice. “And I did
not denounce him before any one but Mr. Baldwin, and that was in
the heat of my surprise and anger.”
“I know that. But we have been over this subject before. He is gone
and will not return. Let us talk of something else. Your Mr. Baldwin,
where is he?”
“My Mr. Baldwin, as you are pleased to call him, is here in the room
across the hall. Would you like to call on him?”
“Not I.”
“He is a brave young gentleman, and good to look at.”
“Ah, that is why you are not sure of your feeling for Robert.”
“No, it is not,” returned Lettice, quickly. “And that brings us back to
the question we were discussing a few minutes ago. Could a girl love
two men at once?”
Rhoda did not answer. She arose and said: “I am staying too long. I
must go back to Aunt Martha. I promised her I would be back soon.
Your brother William has returned to his company?”
“Yes; he was at home but one day and could remain no longer. With
the British such near neighbors, the militia must not be caught
napping. The plantations are suffering for lack of attention, but the
men must fight though the crops fail in consequence. Will you send
Lutie to me, if you see her on your way down? And do come soon
again.”
Rhoda promised and took her leave. In a few minutes Lutie
appeared. She had not shown her usual devotion to her mistress
during the last day or two, and seemed anxious to efface herself, a
proceeding strictly the opposite to her usual one.
“You want me, Miss Letty?” she said as she came in.
“Yes, I do. I don’t want to be left up here all alone. It seems to me,
Lutie, you have a precious lot of work downstairs, for you try to slip
out every chance you get.”
“Miss Rhoda, she hyar,” Lutie began protestingly.
“I know she was here, but she is not now. I never thought you would
neglect your own Miss Letty, Lutie; especially when she is half sick,
and cannot get around without some one’s help. Haven’t I always
been good to you?”
“Yass, miss, yuh has indeed.”
“Then look here; tell me the truth. Now don’t look so scared; I am not
going to have you whipped. You know you never had a whipping in
your life, except from your own mammy. I want you to tell me who
gave you those papers to give to your Marster William.”
Lutie began to sniffle. “’Deed, Miss Letty, I didn’t see him. He have a
cloak over him, an’ he hide his face, an’ he a gre’t big man.”
“With fiery eyes like Napoleon Bonaparte that you’re so afraid of?
Now look here, is it any one I know?”
“Yass, miss.” Lutie spoke in a tremulous voice.
“Was it—now speak the truth—was it—” Lettice looked cautiously
around and lowered her voice—“Mr. Clinton?”
Lutie writhed, and twisted, and looked every way but at her mistress.
“Remember, you’ll be sorry if you don’t tell.”
“Miss Letty, what yuh gwine do ef I don’t tell?” at last Lutie inquired in
desperation.
“What am I going to do? Don’t you know that old Aunt Hagar comes
here every day to see me? You know she is a cunjure woman, she’ll
do anything I ask her. You’d better look out.”
“’Deed an’ ’deed, Miss Letty,” wailed Lutie, dropping on her knees,
and rocking back and forth, “I so skeered.”
“Of the Poly Bonypart man or the cunjure woman? Which?”
“Bofe of ’em. An’ I skeered o’ dat Cockbu’n. Jubal say he mos’
wuss’n Poly Bonypart.”
“Jubal does?”
“Yass’m. Oh, Miss Letty, don’ mek me tell.”
“Humph!” Lettice rested her chin in her hand and thoughtfully
regarded the girl sobbing at her feet. “Lutie,” she said after a pause,
“what did Jubal tell you about Cockburn and his men?”
“He say,” Lutie replied, weeping copiously, “he say ef I tells, ole
Cockbu’n git me an’ mek me dance er breakdown on hot coals; an’
he t’ar out mah white teef an’ give ’em to he men to shoot out o’ dey
guns lak bullets; and he snatch uvver scrap o’ wool off mah haid, fo’
to mek gun wads outen; an’ he brek uvver bone in mah body, an’ de
Britishers rattle ’em when dey play dey chunes ter march by.” Jubal
could display a delightfully vivid imagination when it served his
purpose.
“That certainly would be something terrible,” Lettice commented
gravely. “I don’t wonder you are scared; but you know it would be
nearly as bad if you wasted away,—hungry, and couldn’t eat; thirsty,
and couldn’t drink; and if your teeth were to drop out one by one, and
if your eyes were to roll up into your head and never come down
again; and if those you love wouldn’t love you, and if some one gave
Jubal a charm so he’d hate you. You know what a cunjure woman
can do.”
Lutie burst into loud wails. “Oh, Miss Letty! Spare me, Lawd! Spare
me! I a po’ mizzible sinner. What shall I do? What shall I do? Oh,
Miss Letty, don’ let Aunt Hagar chawm Jubal, please, miss. I die fo’
yuh. I serve yuh han’ an’ foot.”
“There, Lutie, there,” said Lettice, feeling that in her application of
Jubal’s methods she had gone too far, “come here. Sit down there.”
She put her hand on the girl’s shoulder. “You want to marry Jubal, I
suppose. I knew he had been philandering about you for some time.
Are you really fond of him?”
Lutie’s wails subsided into a sniffle. “Yass, miss,” she answered
meekly.
“Well, then, I promise you that I will not let any harm come to him or
you through anything you may tell me, if you tell the truth. And,
moreover, I’ll get Aunt Hagar to make you a luck-ball, and I will not
tell a living soul who it was that gave you the papers, as long as
there is any danger coming to either of you from it. But if you don’t
tell me the truth—then—”
Lutie’s sobs were again on the increase. “Oh-h, Miss Letty, I sholy is
hard pressed. I is skeert one way by ole Cockbu’n an’ turrer by de
cunjurin’. I mos’ mo’ skeerter by de cunjurin’.”
“But you won’t tell your mistress, who has always been good and
kind to you, when you know it would save her a great deal of
trouble? You won’t tell unless she threatens to punish you? Ah, Lutie,
think what I might do to make you tell, if I were a hard mistress.”
“Miss Letty, Miss Letty, ’deed, ma’am, I don’t want to do yuh so
mean. Yuh won’t let Jubal come to no ha’m, will yuh, Miss Letty?”
“No, I promised you, so far as I have any voice in it, I will not. Don’t
make me repeat it, you disrespectful girl.”
“Miss Letty, I so bothered in mah haid I fergits mah manners,” said
Lutie, humbly. “I knows a lady lak yuh ain’ gwine tell me no story, an’
when yuh says nobody know, nobody ain’ gwine know. Miss Letty,—
hit were Jubal hisse’f.” And again the girl lapsed into violent weeping,
and the rocking back and forth continued.
Lettice was very quiet for a moment. “There, Lutie,” she then said,
“you needn’t cry any more. You are as safe as can be, and so is
Jubal. I will not tell on him, but I want you to tell me all you know
about it. Did any one give him the papers to give to your Marster
William?”
“No, ma’am, Miss Letty, he peepin’ froo de bushes when yuh puts de
box in de groun’, an’ he say he think dey is gol’ an’ silver derein, an’
he want git me one o’ dem carneely rings, an’ he jes think he tek a
little an’ nobody miss hit, an’ ef dey do, dey’ll think de Britishers done
git hit; den when he open de box an’ fin’ nothin’ but dem papers in
hit, he lay out fur to put hit back agin, but he ain’ had no chanst lak
he mean ter do, an’ so he give hit ter me, an’ say I is ter give hit ter
Mars William an’ do lak he say, an’ I so do; an’ he say ef I tells, de
Britishers is sho’ to come after me, ’cause dey want dem papers.”
“How did he know that?”
“He heahs yuh-alls talkin’ ’bout hit dat night he waitin’ on de gin’ral in
de gre’t hall. Yass, miss, he say all dat.” Lutie was very quiet now,
and only her wet eyes showed recent weeping.
“Very good,” said Lettice. “Of course Jubal ought to be punished. He
has caused more mischief than he knows, and he is not half good
enough for you, Lutie; although, poor ignorant boy, it was a
temptation,” she added, half to herself. “Now dry your eyes, Lutie,
and go get that pink muslin out of the closet. I am going to give that
to you because you told the truth. I’m sorry I haven’t a ‘carneely’ ring,
but there is a string of blue beads in that box; you may have those.”
Lutie fell on her knees and kissed her mistress’s bandaged feet in
her ecstasy at this deliverance from despair and this elevation to
heights of bliss, and in a minute she was bearing off her treasures,
every white tooth gleaming, as she viewed these darling
possessions.
“I am bound to make no explanations,” said Lettice to herself. “What
a complication it is, and how badly I have treated poor Robert. No
wonder he was so hurt and angry and indignant. Alas, if I tell any one
that he is innocent, I will have to prove it, and that I have promised
not to do. I shall have to wait events, I suppose. Brother William is
away, and there is no one else who will press inquiries. Yet, am I not
bound to clear Robert to Mr. Baldwin, and I can do nothing else than
write to Washington to Robert himself. Dear, dear, what a scrape I
am in!”
At this moment Lutie reappeared with the message: “Miss Letty, Miss
Betty say is yuh able to come down to supper? Mr. Bald’in, he
comin’, an’ she say she wisht yuo’d mek yose’f ready, is yuh able.”
“I am able, but some one will have to help me to hobble. Go tell Miss
Betty, and then come back and dress me.” She felt a little flutter of
excitement at again meeting the companion of her late adventures,
and selected her dress with some care. Yet she sighed once or
twice. She had been very unjust to Robert, and of course he could
never forgive her. Yes, it was as he had said; that dream was over.
Nevertheless, she had a little feeling of resentment toward him
because he had not assured her of his innocence. “If he had not
reproached me, but had told me, I would have believed him,” she
told herself. She had been too hasty, she admitted, but like many
other persons, she did not feel willing to exculpate the supposed
offender from all blame and to acknowledge herself in the wrong,
and her feeling of resentment in consequence almost overcame her
regrets.
CHAPTER XIV.
“Sorrow an’ Trouble.”
The two who had lately been companions in misery met each other,
at the supper table, for the first time since the evening of their
perilous experience. “This is but our third meeting,” said Mr. Baldwin,
“and how various the circumstances.”
“There is a mighty big difference between a ball-room, Aunt Hagar’s
cabin, and our present surroundings,” Lettice returned. “We cannot
complain of monotony. How are you, Mr. Baldwin? Mammy tells me
your fever ran high, and no wonder; I have felt like a rag, myself.”
“Thanks to good nursing I am much better, and shall be able to
proceed to Washington to-morrow, I trust.”
“You are not well enough,” Mrs. Betty protested. “We cannot let you
go when you are but half mended.”
“Ah, but there is no word but duty to those who have promised to
serve their country,” replied the young man.
“Yes, but one owes a duty to one’s self as well as to one’s country,”
Betty returned.
“Every man is needed. With so little success on the frontier, reverses
at sea, and this vandal, Cockburn, ready to destroy and pillage along
these shores, it is every man’s duty to be at his post, if he is able to
get there.”
“Yes, I suppose so,” Betty sighed. “That is what William says. With
his father and uncle on the frontier, his brother gone to join Barney,
and with the plantations running to waste down here, they all have
no word but duty.”
“And that is right,” Lettice spoke up. “It is to protect their women and
their homes that they go.”
Mr. Baldwin nodded with a pleased smile. “After all that you have
suffered, to hear you say that, Miss Lettice, proves that you are very
loyal.”
“I am the more so that I have suffered. The worse we are treated the
more eager we are for the war to go on.”
“That is beginning to be the prevailing spirit. But I wish I could know
you safe in Baltimore. I think it is very unsafe for ladies to be left
unprotected when the enemy is so near.”
“And such an enemy!” cried Betty. “Then don’t you think you ought to
stay and protect us, Mr. Baldwin?”
He laughed. “You make me choose my words, and put me in the
position of seeming very ungallant. I must go. I cannot do otherwise.”
“Yes, I agree with you,” Lettice gave her opinion, “and if I were a man
I would go too.” And Betty arising from the table, they adjourned to
another room, Lettice being carefully assisted by the young man.
“Each moment I remain is dangerous,” he whispered, “for each
moment it becomes less my desire to leave.” Lettice blushed, and
while Betty went to her baby, they two sat in a corner of the wide hall
and had a long talk. They had not many friends in common, but they
loved their country, and they had struggled with a common foe; then
no wonder they were not long strangers.
“I have never asked you where your home is,” said Lettice, to her
companion. “You do not talk like a Southerner, and yet you are
Tyler’s cousin. I do not seem to distinguish your native place by your
speech.”
“I am from Massachusetts,” he told her, “but I am something of a
cosmopolitan, as every one who follows the sea must be.”
“From Massachusetts? I thought every one in that state was dead
set against the war.”
“Oh, no, not every one. To be sure, New Englanders, as a rule, are
against it; but if you should investigate, you would find many gallant
soldiers and sailors hailing from our part of the country.”

You might also like