32035
32035
https://ebookmeta.com/product/practical-ai-for-healthcare-
professionals-machine-learning-with-numpy-scikit-learn-and-
tensorflow-1st-edition-abhinav-suri/
https://ebookmeta.com/product/ai-for-healthcare-with-keras-and-
tensorflow-2-0-design-develop-and-deploy-machine-learning-models-
using-healthcare-data-1st-edition-anshik/
https://ebookmeta.com/product/hands-on-machine-learning-with-
scikit-learn-keras-and-tensorflow-3rd-edition-aurelien-geron/
https://ebookmeta.com/product/machine-learning-with-pytorch-and-
scikit-learn-1st-edition-sebastian-raschka/
https://ebookmeta.com/product/surgery-for-ovarian-cancer-4th-
edition-robert-e-bristow-beth-y-karlan-dennis-s-chi/
Internal Family Systems Therapy with Children 1st
Edition Lisa Spiegel
https://ebookmeta.com/product/internal-family-systems-therapy-
with-children-1st-edition-lisa-spiegel/
https://ebookmeta.com/product/cost-and-optimization-in-
government-an-introduction-to-cost-accounting-operations-
management-and-quality-control-3rd-edition-aman-khan/
https://ebookmeta.com/product/advanced-platform-development-with-
kubernetes-1st-edition-craig-johnston/
https://ebookmeta.com/product/explaining-wealth-inequality-
property-possession-and-policy-reform-1st-edition-benedict-
atkinson/
https://ebookmeta.com/product/wild-at-the-library-a-curvy-woman-
romance-1st-edition-liz-fox/
The Witch s Curse 1st Edition Tj Lee
https://ebookmeta.com/product/the-witch-s-curse-1st-edition-tj-
lee/
Abhinav Suri
The publisher, the authors and the editors are safe to assume that the
advice and information in this book are believed to be true and accurate
at the date of publication. Neither the publisher nor the authors or the
editors give a warranty, expressed or implied, with respect to the
material contained herein or for any errors or omissions that may have
been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.
—Eric J. Topol, MD
Professor and EVP of Scripps Research
Author, Deep Medicine
La Jolla, California
Any source code or other supplementary material referenced by the
author in this book is available to readers on GitHub via the book’s
product page, located at www.apress.com/978-1-4842-7779-9. For
more detailed information, please visit
http://www.apress.com/source-code.
Table of Contents
Chapter 1:Introduction to AI and Its Use Cases
The Healthcare Information Paradox
AI, ML, Deep Learning, Big Data:What Do the Buzzwords Mean?
AI Considerations
Summary
The Rest of the Book…
Chapter 2:Computational Thinking
How Computers “Think”
What “Can” and “Cannot” Be Solved
Algorithmic Alternatives
Stable Matching
Activity Selection
Analysis of Algorithms and Other Algorithms
Conclusion
Chapter 3:Overview of Programming
But First, What Are Programs?
Getting Started with Python
What Just Happened?
Stepping It Up a Bit
Variables, Methods/Functions, String Operations, Print String
Interpolation Applied
Minor Improvements:If Statements
More Improvements:File Input and For Loops/Iteration
File Output, Dictionaries, List Operations
Cutting This Down with Pandas
Summary
Chapter 4:A Brief Tour of Machine Learning Algorithms
ML Algorithm Fundamentals
Regression
Linear Regression (for Classification Tasks)
Logistic Regression
LASSO, Ridge, and Elastic Net for Regression, the Bias-
Variance Trade-Off
Instance Learning
k-Nearest Neighbors (and Scaling in ML)
Support Vector Machines
Decision Trees and Tree-Based Ensemble Algorithms
Classification and Regression Trees
Tree-Based Ensemble Methods:Bagging, Random Forest,
and XGBoost
Clustering/Dimensionality Reduction
k-Means Clustering
Principal Component Analysis
Artificial Neural Networks and Deep Learning
Fundamentals (Perceptron, Multilayer Perceptron)
Convolutional Neural Networks
Other Networks (RCNNs, LSTMs/RNNs, GANs) and Tasks
(Image Segmentation, Key Point Detection, Image
Generation)
Other Topics
Evaluation Metrics
k-Fold Cross Validation
Next Steps
Chapter 5:Project #1 Machine Learning for Predicting Hospital
Admission
Data Processing and Cleaning
Installing + Importing Libraries
Reading in Data and Isolating Columns
Data Visualization
Cleaning Data
Dealing with Categorical Data/One-Hot Encoding
Starting the ML Pipeline
Training a Decision Tree Classifier
Grid Searching
Evaluation
Visualizing the Tree
This Seems Like a Lot to Do
Moving to PyCaret
Extra:Exporting/Loading a Model
Summary and What’s Next
Chapter 6:Project #2 CNNs and Pneumonia Detection from Chest
X-Rays
Project Setup
Colab Setup
Downloading Data
Splitting Data
Creating Data Generators and Augmenting Images
Your First Convolutional Neural Network:SmallNet
Callbacks:TensorBoard, Early Stopping, Model
Checkpointing, and Reduce Learning Rates
Defining the Fit Method and Fitting Smallnet
Your Second Convolutional Neural Network:Transfer
Learning with VGG16
Visualizing Outputs with Grad-CAM
Evaluating Performance of SmallNet vs.VGG16
Evaluating on “External” Images
Things to Improve
Recap
Chapter 7:The Future of Healthcare and AI
Starting Your Own Projects
Debugging
Considerations
Patient Privacy
Algorithmic Bias
Snake Oil + Creating Trust in the Real World
How to Talk About AI
Wrap Up
Index
About the Author
Abhinav Suri
is a current medical student at the UCLA David Geffen School of
Medicine. He completed his undergraduate degree at the University of
Pennsylvania with majors in Computer Science and Biology. He also
completed a master’s degree in Public Health (MPH in Epidemiology) at
Columbia University Mailman School of Public Health. Abhi has been
dedicated to exploring the intersection between computer science and
medicine. As an undergraduate, he carried out and directed research on
deep learning algorithms for the automated detection of vertebral
deformities and the detection of genetic factors that increase risk of
COPD. His public health research focused on opioid usage trends in NY
State and the development/utilization of geospatial dashboards for
monitoring demographic disease trends in the COVID-19 pandemic.
Outside of classes and research, Abhi is an avid programmer and
has made applications that address healthcare worker access in
Tanzania, aid the discovery process for anti-wage theft cases, and
facilitate access to arts classes in underfunded school districts. He also
developed (and currently maintains) a popular open source repository,
Flask Base, which has over 2,000 stars on GitHub. He also enjoys
teaching (lectured a course on JavaScript) and writing. So far, his
authored articles and videos have reached over 200,000 people across
a variety of platforms.
About the Technical Reviewer
Vishwesh Ravi Shrimali
graduated in 2018 from BITS Pilani, where he studied mechanical
engineering. Since then, he has worked with BigVision LLC on deep
learning and computer vision and was involved in creating official
OpenCV AI courses. Currently, he is working at Mercedes Benz Research
and Development India Pvt. Ltd. He has a keen interest in programming
and AI and has applied that interest in mechanical engineering projects.
He has also written multiple blogs on OpenCV and deep learning on
LearnOpenCV, a leading blog on computer vision. He has also
coauthored Machine Learning for OpenCV 4 (Second Edition) by Packt.
When he is not writing blogs or working on projects, he likes to go on
long walks or play his acoustic guitar.
© Abhinav Suri 2022
A. Suri, Practical AI for Healthcare Professionals
https://doi.org/10.1007/978-1-4842-7780-5_1
In the healthcare world, talk about artificial intelligence (AI) has been
increasing over the past few years. As a result, healthcare professionals
are strongly considering the usage of this remarkable tool in
creating novel solutions that could benefit clinicians and patients alike.
Yet, in the process of developing these applications, individuals are
often confronted with several questions, perhaps the most important of
which is “Do I really need AI?” To answer that question, one has to
understand what AI is beyond the high-level. Unfortunately, the vast
majority of beginner-facing resources on AI stop at the generalized
overview of AI and do not talk about how to implement it. The more
advanced materials suffer from being opaque, are mathematically
dense, and often are addressed to an audience of seasoned
programmers and computer scientists. The purpose of this book is to
give you, the reader, an understanding of what AI actually is, how it
works, and how to code AI-based algorithms in a manner that is
approachable to a beginner (with a background in
healthcare/medicine). But before we can get into the details of AI and
its mechanisms, we need to establish a ground-truth definition of what
AI actually is and establish the logic behind what kinds of problems
would benefit from an AI approach. With that in mind, let’s get started
by talking about a paradox that the world of healthcare is facing: too
much information and no idea what to do with it.
June 30
July 11.
August.
From Ath Cumberland fell back to Lessines and drew out such
British corps as were in garrison in Flanders to replace those which
had suffered most heavily in the action. Meanwhile Tournay, very
shortly after the battle, fell by treachery into the hands of the
French; and Saxe's field-army being thus raised to a force nearly
double that of the Allies, Cumberland was reduced to utter
helplessness. The mischief of Fontenoy lay not in the repulse and
the loss of men, for the British did not consider themselves to have
been beaten, but in the destruction of all confidence in the Dutch
troops. The troubles which had harassed Wade to despair now
reappeared. Cumberland, despite his inferiority in strength, was
expected somehow to defend Flanders, Brabant, and above all
Brussels, and yet simultaneously to keep an active army in the field.
Worse than this, he attempted to fulfil the expectation. Against his
better judgment he weakened his force still further by detaching a
force for the garrison of Mons,[192] and then, instead of taking up a
strong position on the Scheldt to cover Ghent at all hazards, he
yielded to the pressure of the Austrians and crossed the Dender to
cover Brussels.[193] Halting too long between two opinions he at last
sent off a detachment for the defence of Ghent, half of which was
cut off and turned back with heavy loss, while the other half, after
enduring much rough usage on the march, entered Ghent only to
see the town surprised by the French on the following day. Four
British regiments took part in this unlucky enterprise and suffered
heavy loss, while the Royal Scots and the Twenty-third, which had
been despatched to Ghent after Fontenoy, of course became
prisoners.[194] Moreover, a vast quantity of British military stores
were captured in Ghent, although Cumberland had a week before
ordered that they should be removed.[195] After this blow
Cumberland retired to Vilvorde, a little to the north of Brussels, still
hoping to cover both that city and Antwerp, and so to preserve his
communications both with Germany and with the sea. Here again he
sacrificed his better judgment to the clamour of the Austrians, for he
would much have preferred to secure Antwerp only. His position was
in fact most critical, and he was keenly alive to it.[196] Just when his
anxiety was greatest there came a letter from the Secretary of State,
announcing that invasion of England was imminent, and hoping that
troops could be spared from Flanders without prejudice to his
operations. "What!" answered Ligonier indignantly, "Are you aware
that the enemy has seventy thousand men against our thirty
thousand, and that they can place a superior force on the canal
before us and send another army round between us and Antwerp to
cut off our supplies and force us to fight at a disadvantage? This is
our position, and this is the result of providing His Royal Highness
with insufficient troops; and yet you speak of our having a corps to
spare to defend England!"[197]
Walker & Boutall del. To face page 122.
THE CAMPAIGN OF 1743. 16th
DETTINGEN, June 1743.
27th
th
FONTENOY, April 30th 1745.
May 11
Aug. 13.
24
Sept.
Oct.
Saxe's plan for reducing the Allies was in fact uniformly the
same throughout the whole of the war, namely to cut off their
communications with the sea on one side and with Germany on the
other. Even before he began to press Cumberland northward toward
Antwerp he had detached a force to lay siege to Ostend, which was
the English base. Cumberland, on his side, had advised that the
dykes should be broken down and the country inundated in order to
preserve it, and both Dutch and Austrians had promised that this
should be done; but as usual it was not done, and before the end of
August Ostend had surrendered to the French. The English base was
then perforce shifted to Antwerp. But by this time the requests for
the return of troops to England had become urgent and imperative
orders. First ten battalions were recalled, then the rest of the foot,
and at last practically the whole of the army, including Cumberland
himself.[198] It is now time to explain the causes for the alarm in
England.
Authorities.—The official account of Fontenoy was drawn up by Ligonier in
French and translated into English, with some omissions, for publication. The
French version is far the better and will be found in the State Papers. The account
in the Life of the Duke of Cumberland is poor, though valuable as having been
drawn up from the reports of the English Generals. Of the French accounts
Voltaire's is the best known, and, as might be expected from such a hand,
admirably spirited. More valuable are the accounts in the Conquête des Pays Bas,
in the Mémoires du Maréchal de Saxe, where Saxe's own report may be read, in
the Campagnes des Pays Bas, and in Espagnac. The newspapers furnish a few
picturesque incidents of some value.
CHAPTER VI
1745.
Ever since the death of Cardinal Fleury, in January 1743, the hopes
of the Jacobites for French help in an attempt to re-establish the
Stuarts by force of arms had been steadily reviving. Cardinal Tencin,
Fleury's successor, was warmly attached to the cause of the exiled
house; the feeling between France and England was greatly
embittered; the beginning of overt hostilities could be only a matter
of time; and an invasion of Britain was the most powerful diversion
that could be made to divide the forces of the partisans of the
Pragmatic Sanction. In the autumn of 1743 preparations for a
descent upon England from Dunkirk under Marshal Saxe were
matured, and a French fleet, with Saxe and Prince Charles Stuart on
board, actually sailed as far as Dungeness. There, however, it was
dispersed by a storm, which wrecked many of the transports, and for
the present put an effectual end to the enterprise.
July 25
August 5.
August 19.
30
Aug. 30
Sept. 10.
Sept. 4 .
15
Sept. 11.
22
Sept. 16.
27
Sept. 17.
28
The city was in consternation over his approach. The Castle of
Edinburgh was, indeed, provided with an adequate garrison, but the
town was absolutely defenceless; nor were there any regular troops
at hand excepting the Thirteenth and Fourteenth Dragoons, both of
them young regiments, raw and untrained. On the morning of the
16th these two corps, together with a party of the town-guard, were
drawn up at Coltbridge, when their picquets were suddenly driven in
by the pistol-shots of a few mounted gentlemen of the rebel army.
The picquets were seized with inexplicable panic, which presently
communicated itself to the main body; and in a few minutes both
regiments, despite the entreaties of their officers, were off at full
gallop to the south, never stopping until they reached Preston. They
had not been there long before the panic was rekindled. One of the
dragoons, while in search of forage after dark, fell into a disused
coal-pit full of water and shouted lustily for help. Instantly the cry
was raised that the Highlanders were on them, and the men, rushing
to their horses, galloped away once more through the night, and
could not be halted till they reached Dunbar. The "Canter of
Coltbrigg," as this ludicrous but shameful flight was dubbed, was the
source of all the subsequent success of the Pretender. So petty are
the causes that will go near to overset a throne. Probably, if the
truth of the matter could be known, it would be found that a few
raw horses, unbroken to fire-arms, among the picquets were the
cause of the whole disaster.[205] For the moment, however, the panic
was decisive in its results. Charles entered Edinburgh without
resistance on the following day and took up his quarters at
Holyrood; but halting for no more than twenty-four hours in the
capital he pursued his march to the south. His troops by this time
had swelled to twenty-five hundred men, though many of these
were indifferently armed, and the force was absolutely destitute of
artillery. Still happy chance had sent panic in advance of him, and he
wisely followed it with all possible speed.
Sept. 19.
30
Sept. 20
October 1.
Oct. 31
Nov. 11.
Nov. 8 .
19
Nov. 17.
28
Nov. 20
Dec. 1.
Dec. 4.
English troops now began to close in upon the little rebel army
from every side. Wade was moving down upon it from the north;
Cumberland lay before it with eight thousand men at Lichfield, while
a still larger force of militia, stiffened by battalions of the Guards,
was in process of concentration at Finchley Common for the defence
of London. Still the rebels pursued their march southward, the
people staring at them as they passed, amused but indifferent, and
apparently hardly able to take the matter seriously. At Cambridge
sensible middle-aged men talked of taking a chaise to go and see
them on the road;[213] and Hogarth, to the great good fortune of
posterity, could see nothing in the march of the Guards to Finchley
but an admirable subject for the exercise of his pencil and the
indulgence of his satire. Yet there was still a panic in store for
London. From Macclesfield Lord George Murray sent forward a small
force to Congleton, which pushed away a party of horse that lay
there and pursued it for some way along the road to Newcastle-
under-Lyme. Cumberland, thinking that the rebels were about to
advance by that line or turn westward into Wales, turned also
westward to Stone to intercept them, and Murray, making a forced
march eastward, reached Ashbourne and on the following day
entered Derby. By this manœuvre the rebel army had gained two
marches on Cumberland and successfully passed by the most
formidable force interposed between it and London. The capital was
in consternation. Business was suspended, all shops were shut, and
the Bank of England only escaped disaster by making its payments
in sixpences in order to gain time. Cumberland on discovering his
mistake hurried his cavalry by desperate marches to Northampton in
order to regain, if possible, the ground that he had lost, but the only
result was utter exhaustion of the horses; and the Duke of
Richmond, who was in command of this cavalry, frankly confessed
that he did not see how the enemy could be stopped. The rapidity of
the rebels' movements, the difficulty of moving regular troops during
the winter along execrable roads, and above all the want of an
efficient head at Whitehall to replace the timid and incompetent
Newcastle, served to paralyse the whole strength of England.
Dec. 6 .
17
Dec. 18.
29
Dec. 26.
1746.
Jan. 3 .
14
Jan. 17.
28
The rebels so far had made little progress with the siege. The
French engineer with them, who was a coxcomb of little skill, had
chosen wrong sites for his batteries, and General Blakeney, who was
in command of the garrison, had made him sensible of the fact by a
most destructive fire. On the 16th of January Charles, hearing of
Hawley's march upon Falkirk, left a few hundred men to maintain
the blockade of the Castle, and advanced with the remainder to
Bannockburn, where he drew them up, as on a field of good omen,
in order of battle. Hawley, however, declined to move, his artillery
being but just come up: so on the following day Charles determined
to attack him. While he was moving forward Hawley was enjoying
the hospitality of Callendar House from Lady Kilmarnock, wife to one
of the rebel leaders, having left General Huske, an excellent officer,
in command. Manœuvring with a small detachment to distract
Huske's attention to the northward along the road that leads to
Stirling, Charles led his army to the south of the English camp, and
then advanced upon it towards a ridge of rugged upland known as
Falkirk Muir. The English drums promptly beat to arms, and urgent
messages were despatched to Callendar House for Hawley, who
presently galloped up at speed without his hat. Hastily placing
himself at the head of the three regiments of dragoons he hurried
with them in the teeth of a storm of rain and wind to the top of
Falkirk Muir, ordering the foot to follow with bayonets fixed. The
rebels however reached the summit of the ridge before him; and
Hawley then formed his army on the lower ground, drawing up the
infantry in two lines, with the cavalry before them on the left of the
first line. His left was covered by an impassable morass, and thus it
came about that the left of the rebels, who were also formed in two
lines, stood opposite to his centre. The numbers of each army were
about nine thousand men. The formation of the British being
complete, Hawley, who had great faith in the power of cavalry
against the Highlanders, ordered the dragoons to attack. They
advanced accordingly. The Highlanders waited with perfect coolness
until they were within ten yards of them, and then poured in an
effective volley. Therewith the evil tradition of panic seized at once
upon the Thirteenth and Fourteenth Dragoons, which turned about
and galloped off in disorder. The Ninth Dragoons showed more
firmness, but the Highlanders throwing themselves on the ground
thrust at the bellies of the horses with their dirks, and they also
were beaten back. Then the Highlanders advanced, and the foot,
shaken by the defeat of the horse and blinded by wind and rain,
fired an irregular volley. One-fourth of the muskets missed fire owing
to the rain, and every regiment excepting two at once turned and
fled. No efforts of their officers, who behaved with the greatest
gallantry, had the least effect in stopping them, though many were
regiments of famous reputation; and the Highlanders pursuing with
the claymore made not a little havoc among the fugitives. On the
right of the first line, however, the Fourth and Forty-eighth stood
firm, their front ranks kneeling with bayonets fixed while the middle
and rear ranks fired, and repulsed the left wing of the rebels: the
Fourteenth soon rallied and joined them, the Royal Scots and Buffs
rallied also, and these troops keeping up a steady fire made, with
the Ninth Dragoons, an orderly retreat. The losses did not exceed
two hundred and eighty of all ranks, killed, wounded or missing, the
two regiments that stood firm coming off with little hurt, the Forty-
eighth indeed without injury to a man.
The action cannot be called a great defeat if a defeat at all, but
it was a disgrace, and Hawley felt it to be so. "My heart is broke," he
wrote to Cumberland, "I can't say we are quite beat, but our left is
beat and their left is beat.... Such scandalous cowardice I never saw
before. The whole second line of foot ran away without firing a
shot." It may well be that Hawley's absence during the preliminary
manœuvres of the rebel army and his hurried arrival immediately
before the action contributed to make the troops unsteady, but in
reality there was nothing to excuse their precipitate flight except
that, as Hawley had himself written from Edinburgh, they were little
better than militia. The truth was, that by constant talk of the
desperate prowess of the Highlanders and by endless gloating, such
as the ignorant delight in, over the horrors of the field of
Prestonpans, the men had worked themselves into a state of almost
superstitious terror.[217] Such a thing is not rare in military history
and has, unless I am mistaken, been seen again in our own army
within our own time.[218]
Hawley was soon able to report that the whole of his force had
recovered itself with the exception of the Thirteenth and Fourteenth
Dragoons, which appear to have been hopelessly demoralised. Nor
can it be denied that the General's remedies were stern enough.
"There are fourteen deserters taken," he wrote, a fortnight after the
action, "shall they be hanged? Thirty-one of Hamilton's dragoons are
to be hanged for deserting to the rebels, and thirty-two of the foot
to be shot for cowardice."[219] Still it was felt that there was but one
way thoroughly to restore the spirit of the troops, namely that the
Duke of Cumberland should take command of them in person. The
Duke no sooner received his orders than he hurried to Edinburgh,
travelling night and day with such speed that he accomplished the
journey from London in less than six days. Neither he nor the King
blamed Hawley. Indiscipline was in his opinion the reason for the
failure, and he came up to Scotland fully resolved to put an end to it.
He seems in fact to have joined the army, asking in scornful and
indignant surprise what was the meaning of this foolish flight of
English infantry before wild Highlanders: and this attitude was
almost sufficient in itself to put the soldiers upon their mettle.
Feb. 1 .
12
Feb. 18
March 1.
April 15.
26
At length on the 8th of April the Duke was able to advance from
Aberdeen, and having crossed the Spey successfully on the 12th,
pushed forward by forced marches upon Nairn. On the evening of
the 14th his advanced parties had a brush with the rebels' rear-
guard, and he knew that his enemy lay at last within his reach.
Charles lodged for that night at Culloden House, some twelve miles
from Nairn, while his troops, now reduced to five thousand starving,
dispirited men, bivouacked on Culloden Moor. On the following day
he drew up his army in order of battle; but the Duke had granted his
troops a halt at Nairn after their exertions, and the more readily
since the 15th was his birthday. Charles therefore formed the bold
design of surprising him in his camp on that same night; but though
his troops were actually set in motion for the purpose, the men were
too weak from privation to traverse the distance within the
appointed time; and they fell back weary and despondent, having
fatigued themselves to no purpose. Charles's officers were now for
moving to some stronger position, but the young Prince's head
seems to have been turned by his previous successes, and he
resolved to accept battle where he stood.
April 16.
27
Between four and five in the morning of the next day the Duke
broke up from Nairn, and after a march of eight miles received
intelligence from his advanced parties that the rebels were in his
front. He at once formed in order of battle, but finding that the
enemy did not come forward, continued his march. The rebels were
formed in two lines, their right resting on some straggling park walls
and huts, their left extending towards Culloden House. The Duke's
army was disposed in three lines, the two first consisting each of six
battalions of infantry and two regiments of dragoons, while the
Highland irregulars formed the third line. The entire force numbered
about ten thousand men with ten guns, which were stationed in
pairs between the battalions of the first line. "Now," said the Duke,
turning to his men when all was in order, "I don't suppose that there
are any men here who are disinclined to fight, but if there be, I beg
them in God's name to go, for I would rather face the Highlanders
with a thousand resolute men at my back than with ten thousand
half-hearted." The men answered with cheers, and there could be
little doubt as to the issue of the battle. Hawley and the dragoons
were then sent forward to break down the enclosures on the
enemy's right, and at ten o'clock the rebels opened the action with a
discharge from their artillery.
The Duke's cannon instantly took up the challenge; but the duel
could not last long, for Charles's guns were ill-aimed and ill-served,
whereas the British fire was most accurate and destructive. The right
and centre of the Highlanders, unable to endure the grape, presently
rushed forward, swept round the left of the British line upon the
flank and rear of the Fourth and Twenty-seventh Regiments, and for
a short time threw them into some confusion. At every other point,
however, they were speedily driven back by a crushing fire, and the
Fourth and Twenty-seventh, recovering themselves, turned bayonet
against claymore and target for the first time with success. In utter
rage at this repulse the rebels for a few minutes flung stones at the
hated red-coats; but by this time Hawley had broken through the
enclosures and turned four guns upon Charles's second line. On the
left of the rebels the Macdonalds, sulking because they had not the
place of honour, refused to move, and now the English dragoons
burst in upon the Highlanders from both flanks, and, charging
through them till they met in the middle, shivered them to
fragments. The rout of the enemy was complete and the dragoons
galloped on to the pursuit. One thousand of Charles's troops were
killed on the spot, and five hundred prisoners, of whom two hundred
were French, were taken. The remainder fled in all directions. The
loss of the Duke's army was slight, barely reaching three hundred
men killed and wounded, of whom two-thirds were of the Fourth and
Twenty-seventh. The victory was decisive: the rebellion was crushed
at a blow, and all hopes of a restoration of the Stuarts were at last
and for ever extinguished.
The campaign ended, as a victorious campaign against
mountaineers must always end, in the hunting of fugitives, the
burning of villages, and the destruction of crops. To this work the
troops were now let loose, as they had already been in the march to
Perth, though now with encouragement rather than restraint, and
with no attention to "proper precautions." But enough and too much
has been written of the inhumanity which earned for Cumberland
the name of the butcher; his services were far too valuable to be
overlooked, and himself of far too remarkable character to be tossed
aside with the brand of a single hateful epithet. Charles Edward, and
Murray, the ablest of his officers, had turned the gifts which fortune
gave them, and the peculiar powers of their little force in rapidity of
movement and vigour of attack, to an account which entitles them
to very high praise as commanders. It was by such bold actions as
Falkirk and Prestonpans, and by such skilful manœuvres as left
Wade astern at Newcastle and Cumberland at Stone, that our Indian
Empire was won. Thus it was against no unskilful leaders that
Cumberland was matched; and on taking the command he found the
British regular troops in a state of demoralisation, through repeated
panic, which is almost incredible. Whole regiments were running
away on the slightest alarm, in spite of the heroism of their officers;
and even a General, a foreigner and a royal prince, Frederick of
Hesse-Cassel, prepared to retreat at the mere rumour of the
approach of a few score of Highlanders. To all this, Cumberland, by
the prestige of his position and rugged force of character, put an
end. He was called up, young as he was, to a duty from which
almost every General in Europe, of what experience soever, would
have shrunk—a winter campaign in a mountainous country. Ninety-
nine men out of a hundred would have waited for the summer, and
indeed such delay was expected of Cumberland, but he pressed on
to his task at once. He restored the confidence of his troops partly
by the dignity of his station, partly by his own ascendency as a man,
partly by his skill as a soldier, encouraging them not by mere words
only, but also by training them to meet the peculiar tactics of a
peculiar enemy by a new formation and a scientific, if simple,
method of using the bayonet. He pursued his work persistently,
despite endless difficulties, disappointments, and vexations, and did
not rest until he had achieved it completely. Jacobitism, which had
been the curse of the kingdom for three quarters of a century, was
finally slain, and the Highlanders, who had been a plague for as long
and longer, were finally subjugated, for no one's advantage more
than for their own. The methods employed were doubtless harsh,
sometimes even to barbarity, being those generally used by
barbarians towards each other and therefore held inexcusable
among civilised men; but it is not common for half-savage
mountaineers—and the Highlanders were little else—to be brought
to reason without some such harsh lesson. Military execution, as it
was called, was not yet an obsolete practice in war, whether for
injury to the enemy or indulgence of the troops, while Tolpatches,
Pandours, and other irregular bands, whose barbarities were
unspeakable, were esteemed a valuable if not indispensable adjunct
to the armies of the civilised nations of Europe. Moreover, French
regular troops behaved quite as ill in Germany during the Seven
Years' War as any of the irregulars. Still wanton brutality and
outrage, however excused by the custom of war, must remain
unpardoned and unpardonable, on the score not only of humanity
but of discipline. But though the blot upon Cumberland's name must
remain indelible, it should not obscure the fact that, at a time of
extreme national peril, the Duke lifted the army in a few weeks, from
the lowest depth which it has ever touched of demoralisation and
disgrace, to its old height of confidence and self-respect.
Authorities.—The literature of the rebellion of 1745 is of course boundless, but
the military operations and the state of the Army can hardly be better studied than
in the S.P., Dom., Scotland, vols. xxvi.-xxxi., in the Record Office. On the other
side, the Narrative of the Chevalier Johnstone, though frequently inaccurate,
throws useful light on divers points.
CHAPTER VII
1746.
May 20.
31
June 30
July 11.
July 13.
24
July 6 .
17
July 16.
27
July 21
Aug. 1.