NYC Data Science Academy| Blog
Bootcamps
Lifetime Job Support Available Financing Available
Bootcamps
Data Science with Machine Learning Flagship ๐Ÿ† Data Analytics Bootcamp Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lesson
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories Testimonials Alumni Directory Alumni Exclusive Study Program
Courses
View Bundled Courses
Financing Available
Bootcamp Prep Popular ๐Ÿ”ฅ Data Science Mastery Data Science Launchpad with Python View AI Courses Generative AI for Everyone New ๐ŸŽ‰ Generative AI for Finance New ๐ŸŽ‰ Generative AI for Marketing New ๐ŸŽ‰
Bundle Up
Learn More and Save More
Combination of data science courses.
View Data Science Courses
Beginner
Introductory Python
Intermediate
Data Science Python: Data Analysis and Visualization Popular ๐Ÿ”ฅ Data Science R: Data Analysis and Visualization
Advanced
Data Science Python: Machine Learning Popular ๐Ÿ”ฅ Data Science R: Machine Learning Designing and Implementing Production MLOps New ๐ŸŽ‰ Natural Language Processing for Production (NLP) New ๐ŸŽ‰
Find Inspiration
Get Course Recommendation Must Try ๐Ÿ’Ž An Ultimate Guide to Become a Data Scientist
For Companies
For Companies
Corporate Offerings Hiring Partners Candidate Portfolio Hire Our Graduates
Students Work
Students Work
All Posts Capstone Data Visualization Machine Learning Python Projects R Projects
Tutorials
About
About
About Us Accreditation Contact Us Join Us FAQ Webinars Subscription An Ultimate Guide to
Become a Data Scientist
    Login
NYC Data Science Acedemy
Bootcamps
Courses
Students Work
About
Bootcamps
Bootcamps
Data Science with Machine Learning Flagship
Data Analytics Bootcamp
Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lessons
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook
Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories
Testimonials
Alumni Directory
Alumni Exclusive Study Program
Courses
Bundles
financing available
View All Bundles
Bootcamp Prep
Data Science Mastery
Data Science Launchpad with Python NEW!
View AI Courses
Generative AI for Everyone
Generative AI for Finance
Generative AI for Marketing
View Data Science Courses
View All Professional Development Courses
Beginner
Introductory Python
Intermediate
Python: Data Analysis and Visualization
R: Data Analysis and Visualization
Advanced
Python: Machine Learning
R: Machine Learning
Designing and Implementing Production MLOps
Natural Language Processing for Production (NLP)
For Companies
Corporate Offerings
Hiring Partners
Candidate Portfolio
Hire Our Graduates
Students Work
All Posts
Capstone
Data Visualization
Machine Learning
Python Projects
R Projects
About
Accreditation
About Us
Contact Us
Join Us
FAQ
Webinars
Subscription
An Ultimate Guide to Become a Data Scientist
Tutorials
Data Analytics
  • Learn Pandas
  • Learn NumPy
  • Learn SciPy
  • Learn Matplotlib
Machine Learning
  • Boosting
  • Random Forest
  • Linear Regression
  • Decision Tree
  • PCA
Interview by Companies
  • JPMC
  • Google
  • Facebook
Artificial Intelligence
  • Learn Generative AI
  • Learn ChatGPT-3.5
  • Learn ChatGPT-4
  • Learn Google Bard
Coding
  • Learn Python
  • Learn SQL
  • Learn MySQL
  • Learn NoSQL
  • Learn PySpark
  • Learn PyTorch
Interview Questions
  • Python Hard
  • R Easy
  • R Hard
  • SQL Easy
  • SQL Hard
  • Python Easy
Data Science Blog > Capstone > Predicting Automation from Job Descriptions

Predicting Automation from Job Descriptions

Thomas Kolasa
Posted on Apr 5, 2016

Contributed by Tomas Kolasa. He took the course in the NYC Data Science Academy 12 week full time Data Science Bootcamp program taking place between January 11th to April 1st, 2016. This post is based on his capstone project  (due on the 12th week of the program).

For this project, I applied Frey and Osborne's probabilities of occupation computerization to scraped job description data. Using natural language processing (NLP) and semi-supervised learning, I created a basic model that predicts a job's automatability based on its text description. This model can take in any new job description and return its corresponding probability of automation.

Automation is no new concept. Whether the automation of hand knitters from the invention of the stocking frame knitting machine in the 16th century or the obsolescence of guilds from the development of new technology, there was always a threat that a worker might lose her livelihood. However, with recent exponential advances in computational power and robotics, the economy faces never before seen threats to employment, including for highly cognitive tasks.

Background Source Paper

In 2013, Carl Benedikt Frey and Michael A. Osborne of Oxford published The Future of Employment: How Susceptible are Jobs to Computerisation?. They studied 702 occupations listed by the US Department of Labor and examined each for nine factors determined by the Occupational Information Network (O*NET) database.

Using this database, labor non-susceptible to automation can be represented by the following:

Where is labor entailing perception and manipulation, is labor entailing creative intelligence, and is labor entailing social intelligence. Each of these factors subdivides in the following table from the paper:

variable_table

The team of machine learning researchers next asked, โ€œCan the tasks of this job be sufficiently specified, conditional on the availability of big data, to be performed by state of the art computer-controlled equipment.โ€ Using O*NET data on each occupation, they subjectively labeled 70 occupations where a label of 1 corresponds to fully automatable occupations and 0 corresponds to a non-automatable occupation. This probability denotes how easy or difficult it is to automate an occupation, not whether macroeconomic forces and policy decisions will actually lead to a specific occupation's automation.

After labeling these 70 occupations, the authors used a Gaussian Process Classifier to estimate the probability of automation for the remaining occupations.

For each of the nine O*NET variables, the authors plotted each occupation's variable score with the estimated probability of automation. As the following scatter plots show, there is a lower probability of computerization for occupations with higher scores for assisting/caring for others, persuasion, negotiation, social perceptiveness, artistry, and originality. The opposite is true for the perception and manipulation variables of manual dexterity, finger dexterity, and cramped work space.

frey-osborne_results_scatter

Scraping Job Descriptions

For each of the 702 occupations, I searched a popular public job listing site. Since many of the Department of Labor occupations use old terminology, I manually checked the results of each search to monitor quality. To distinguish between similar jobs that may come up in results for differing occupations (such as for dentist vs. dental assistant), I set more detailed search criteria such as job title when possible. Even though this process consumed many hours of time, it was necessary to ensure authentic and actionable results.

Of the original occupations, 569 had search results. As shown in the histogram below, most of those occupations had a very high or low probability of computerization.

count_occupations_by_prob

Although some occupations have many results, I limited the number of descriptions to 1,000 per occupation. I thus had a stratified sample of at most the first 1,000 descriptions per occupation, making a total of 260,000 job descriptions.

Natural Language Processing

To analyze the text, I used the Natural Language Toolkit (NLTK) to remove stop words, tokenize, and stem the text corpus's vocabulary.

To compare the different occupations, I calculated the tf-idf (term frequencyโ€“inverse document frequency) of the job descriptions. This metric determines the importance of a word to a document in a collection of documents. To use the scikit-learn's implementation of tf-idf in Python, the corpus size was still too large. To speed up the process, I only calculated it for the first 100 job descriptions for each occupation.

Semi-Supervised Learning

Before modeling, I still had to simplify the problem further. Instead of classifying a job description as belonging to one of the 569 labeled occupations, I first broke down the occupations into clusters based on the tf-idf vectors for each occupation.

Looking at hierarchical clustering of the occupations using the Ward's method, the dendrogram does not exhibit lopsidedness. This is evidence that clustering the occupations is a valid method. Similar occupations exhibit subjective similarities between them, unofficially corroborating agglomerative clustering

Click the dendrogram below to expand in a new tab

dendrogram

Performing k-means clustering over many values of k, there is not a number of clusters that cleanly groups the data, as shown in the following scree plot of the within-cluster sum of squared errors.

within_cluster_sum_square

Nevertheless, the more important measure for modeling prediction is the probability of automation of the occupations within each cluster. For a cluster to to benefit automation prediction, the occupations within it should all have similar probabilities of automation. If so, I can safely assign a new job description to that cluster and simply give the average automation probability of that cluster.

Looking at many different values of k, I measured each cluster's standard deviation of automation probability. I then took the weighted average of all the clusters to give more weight for clusters with more occupations in them than others. In the graph below, the standard deviation decreases as the number of clusters increases.

clusters_std

 

I first examined a k of 10 because that number of clusters or greater covers the most significant drop of within-cluster standard deviations. The clustering results are summarized in the following table:

Cluster Key Words Sample Predicted Occupations Automation
Probability
Stand. Dev.
0 sale, marketing, clients, design, retail  Fashion Designers, Real Estate Brokers, Theatrical and Performance, Marketing Managers, Insurance Sales Agents, Telemarketers  0.26  0.30
1 machines, tools, machines, manufacturing, materials Machinists, Rolling Machine Setters, Coremaking, Underground Mining, Tool & Die Makers, Sawing Machine Setters/Operators, Computer-Controlled Machine Tool Operators 0.73  0.17
2 student, volunteer, classroom, volunteer, provided Teachers, Teacher Assistants, Sociologists, Librarians, Coaches and Scouts, Referees  0.28  0.33
3 assemble, manufacturing, metal, tools, fabrication  Metal/Plastic Engine/Machine Assemblers, Electromechanical Equipment Assemblers, Furnace/Kiln/Oven/Drier Operators/Tenders, Welding/Soldering/Brazing Machine Setters  0.69  0.30
4 guests, clean, food  Baggage Porters and Bellhops, Gaming Managers, Cooks, Massage Therapists, Hotel Desk Clerks  0.13  0.22
5 safety, driver, clean, materials, vehicle Locomotive Engineers, Flight Attendants, Embalmers, Truck Drivers, Refuse and Recyclable Material Collectors, Log Graders and Scalers, Janitors and Cleaners  0.70  0.25
6 engineers, projects, design, data, technical Mechanical Drafters, Petroleum Engineers, Environmental Engineers, Economists, Geoscientists,  Logisticians, Nuclear Engineers, Civil Engineering Technicians, Actuaries  0.84  0.22
7 care, medical, health, treatments, physician  Physical Therapists, Orthodontists, Social Workers, Pharmacy Aides, Physicists, Dental Laboratory Technicians, Psychologists, Physicians and Surgeons  0.31  0.36
8 office, accounting, process, documents, clients  Judges, Judicial Law Clerks, Tax Examiners and Collectors, Claims Adjusters/Examiners/Investigators, Probation Officers and Correctional Treatment Specialists  0.53  0.39
9 repair, maintenance, installation, electrical, technician  Plant and System Operators, Environmental Science and Protection Technicians, Plumbers/Pipefitters/Steamfitters, Boilermakers, Bus and Truck Mechanics 0.83 0.17

Although some clusters, especially clusters 4 and 9, do a good job of grouping occupations with similar probabilities of automation, others make some mistakes. For example, there is a 0.99 probability that employers can automate telemarketers when the clustering groups telemarketers into cluster 0 with a 0.26 probability of computerization.

This is partially due to the nature of clustering along probabilities between 0 to 1. For clusters with average probabilities near 0 or 1, the observations of a cluster have a smaller variance of automation probabilities because a single occupation's probability cannot be less than 0 or greater than 1. This relationship is shown in the following graphs for 10, 20, and 50 clusters. This means clusters with very low or very high probability of automation have more exact predictions.

std_vs_mean_10cluster

std_vs_mean_20cluster std_vs_mean_50cluster

 

Fitting a Model and Making Predictions

To fit job descriptions, I used a Naรฏve Bayes Classifier. Since the main assumption of Naรฏve Bayes is independence of features, the model assumes the occurrence of any two words is independent and that the location of a word is independent of its occurrence in the document. The model classifies a job in a cluster and I assign that cluster's probability of automation to that job.

To run the model on a new job description, I first must calculate its tf-idf vector. I then use my classification model to find the most appropriate cluster for the new job description. I then take that cluster's probability of automation and return it as the predicted probability of automation of the new job description. I made it into the final function below:

def job_automation_predictor(description):
    features_test = tfidf_vectorizer.transform([description])
    cluster = clf.predict(features_test.toarray())[0]
    print ('Cluster', cluster)
    print ('Probability of automation:', groupedc10.mean()[cluster])
    print ('Automation standard deviation:', groupedc10.std()[cluster])
    print ('Key words:',key_words['Cluster ' + str(cluster)])

 

For example, the following new job description of a Facility Maintenance Technician has its corresponding function output below:

Commercial and residential property management company is currently looking for mid level facility maintenance technicians. Candidates will be responsible for: Keeping grounds clean. Basic janitorial duties. Keeping exterior areaโ€™s trimmed and mowed. Hanging seasonal decorations and lighting. Operating forklifts. Basic HVAC experience required. Desired Skills and Experience Must have a valid drivers license. Pre-employment drug screen and background check required.

Cluster 9
Probability of automation: 0.826296296296
Automation standard deviation: 0.171808321193
Key words:repair, maintenance, installation, electrical, technician

While the model gives a logical classification for this job, others descriptions do not always fare so well. There is still plenty of room for improving the model, especially by tuning the tf-idf parameters. Running the models with more data will be more time-consuming, but will hopefully gather more accurate insights for prediction. After tuning the model in the coming weeks, I plan to build a web application where a user can input any job description to better understand its risk of automation.

Although I would like to conclude on an optimistic note about how artificial intelligence will greatly improve overall economic productivity, that would not do justice to the millions of citizens who will face threats to their livelihoods unless governments work to greatly overhaul labor education and training.

 

About Author

Thomas Kolasa

After working in econometric consulting, Thomas began learning programming in order to pursue data science: the perfect combination of his interests in computer science, statistics, and business strategy. Thomas earned his B.A. in economics from Harvard University where...
View all posts by Thomas Kolasa >

Leave a Comment

Cancel reply

You must be logged in to post a comment.

No comments found.

View Posts by Categories

All Posts 2399 posts
AI 7 posts
AI Agent 2 posts
AI-based hotel recommendation 1 posts
AIForGood 1 posts
Alumni 60 posts
Animated Maps 1 posts
APIs 41 posts
Artificial Intelligence 2 posts
Artificial Intelligence 2 posts
AWS 13 posts
Banking 1 posts
Big Data 50 posts
Branch Analysis 1 posts
Capstone 206 posts
Career Education 7 posts
CLIP 1 posts
Community 72 posts
Congestion Zone 1 posts
Content Recommendation 1 posts
Cosine SImilarity 1 posts
Data Analysis 5 posts
Data Engineering 1 posts
Data Engineering 3 posts
Data Science 7 posts
Data Science News and Sharing 73 posts
Data Visualization 324 posts
Events 5 posts
Featured 37 posts
Function calling 1 posts
FutureTech 1 posts
Generative AI 5 posts
Hadoop 13 posts
Image Classification 1 posts
Innovation 2 posts
Kmeans Cluster 1 posts
LLM 6 posts
Machine Learning 364 posts
Marketing 1 posts
Meetup 144 posts
MLOPs 1 posts
Model Deployment 1 posts
Nagamas69 1 posts
NLP 1 posts
OpenAI 5 posts
OpenNYC Data 1 posts
pySpark 1 posts
Python 16 posts
Python 458 posts
Python data analysis 4 posts
Python Shiny 2 posts
R 404 posts
R Data Analysis 1 posts
R Shiny 560 posts
R Visualization 445 posts
RAG 1 posts
RoBERTa 1 posts
semantic rearch 2 posts
Spark 17 posts
SQL 1 posts
Streamlit 2 posts
Student Works 1687 posts
Tableau 12 posts
TensorFlow 3 posts
Traffic 1 posts
User Preference Modeling 1 posts
Vector database 2 posts
Web Scraping 483 posts
wukong138 1 posts

Our Recent Popular Posts

AI 4 AI: ChatGPT Unifies My Blog Posts
by Vinod Chugani
Dec 18, 2022
Meet Your Machine Learning Mentors: Kyle Gallatin
by Vivian Zhang
Nov 4, 2020
NICU Admissions and CCHD: Predicting Based on Data Analysis
by Paul Lee, Aron Berke, Bee Kim, Bettina Meier and Ira Villar
Jan 7, 2020

View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day ChatGPT citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay football gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income industry Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI

NYC Data Science Academy

NYC Data Science Academy teaches data science, trains companies and their employees to better profit from data, excels at big data project consulting, and connects trained Data Scientists to our industry.

NYC Data Science Academy is licensed by New York State Education Department.

Get detailed curriculum information about our
amazing bootcamp!

Please enter a valid email address
Sign up completed. Thank you!

Offerings

  • HOME
  • DATA SCIENCE BOOTCAMP
  • ONLINE DATA SCIENCE BOOTCAMP
  • Professional Development Courses
  • CORPORATE OFFERINGS
  • HIRING PARTNERS
  • About

  • About Us
  • Alumni
  • Blog
  • FAQ
  • Contact Us
  • Refund Policy
  • Join Us
  • SOCIAL MEDIA

    ยฉ 2025 NYC Data Science Academy
    All rights reserved. | Site Map
    Privacy Policy | Terms of Service
    Bootcamp Application