A time-series classification framework for individual-level absenteeism prediction under severe class imbalance
This paper proposes a time-series classification framework using an LSTM-FCN architecture and optimized loss functions to enable genuinely proactive, individual-level absenteeism prediction in highly imbalanced datasets, overcoming the limitations of existing methods that merely reproduce realized outcomes.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are the manager of a busy hospital or a delivery company. Your biggest headache? Absenteeism. When staff don't show up, everything grinds to a halt. You need to know before they are gone who is likely to call in sick, so you can prepare.
This paper is about building a "crystal ball" for employee attendance, but with a very specific twist: it tries to predict the future based on the past, rather than just looking at what happened right now.
Here is the story of their research, broken down into simple concepts.
1. The Problem: Looking in the Rearview Mirror
Most current computer programs for predicting absences are like driving a car while only looking in the rearview mirror. They take data from "today" (like an employee's age or how far they live) and try to guess if they are absent today.
The authors say this is useless for planning. By the time you know the data for "today," the employee has already made the decision to stay home or come in. You can't fix a staffing shortage that already happened.
The Solution: They propose a Time Series Classification framework. Think of this as looking out the windshield. Instead of asking, "Is John absent right now?" they ask, "Based on John's attendance pattern over the last 40 days, is he likely to be absent in the next 5 days?" This allows managers to be proactive, not reactive.
2. The Data Hurdle: Building a "Digital Twin"
Real employee attendance records are private and sensitive (like medical records). You can't just download them from the internet.
To get around this, the researchers built a simulated dataset. Imagine they took a small, real dataset from a courier company in Brazil and used it as a "seed." They then used math to grow a massive forest of 1,000 "digital employees" who behave statistically exactly like the real ones. This allowed them to test their system without violating anyone's privacy.
3. The "Class Imbalance" Trap
Here is the tricky part. In almost any company, 97% of the time, people show up to work. Only about 3% of the time, they are absent.
In machine learning, this is called severe class imbalance. It's like trying to teach a dog to bark only when it sees a lion, but 99% of the time, you show it a cat. The dog will just learn to stay silent (predict "no lion") because it's right 99% of the time.
In their case, a computer model could achieve 97% accuracy simply by guessing "Everyone is present" every single day. But that's a disaster for a manager who needs to know who is actually missing. The goal isn't just "accuracy"; it's Specificity—the ability to correctly spot the rare "absent" days without crying wolf.
4. The Loss Function Showdown: The "Focusing" vs. The "Self-Correcting"
To fix the imbalance, the researchers tested two different "teachers" (mathematical formulas called loss functions) to train their AI.
Teacher A: Binary Focal Loss (BFL).
- The Metaphor: Imagine a teacher who tries to focus only on the students who are failing. However, this teacher needs a specific instruction manual (a parameter called ) to know how much to focus.
- The Discovery: The standard instruction manual (used by most people) actually made things worse! It told the teacher to focus on the wrong group. The researchers had to rewrite the manual using a specific formula based on how rare the absences were. When they did this, the teacher got much better at spotting absent employees. But, it required the manager to know the exact math beforehand.
Teacher B: Geometric Mean (G-Mean) Loss.
- The Metaphor: This teacher has a self-correcting instinct. If the class starts ignoring the failing students, this teacher automatically shifts attention to them without needing a manual.
- The Discovery: This teacher performed just as well as the perfectly tuned "Focal Loss" teacher, but it didn't need any complex math adjustments. It just worked automatically.
The Winner: Both worked well, but G-Mean was the "plug-and-play" champion because it didn't require the user to calculate complex balancing numbers first.
5. The Best Architecture: The Hybrid Engine
They tested three different "engines" (AI models) to process the data:
- LSTM: Good at remembering long stories (like a diary).
- CNN: Good at spotting patterns in images (or in this case, patterns in time).
- LSTM-FCN: A hybrid that combines both.
The Result: The Hybrid (LSTM-FCN) was the clear winner. It was like having a detective who can both read the whole diary and spot the specific handwriting patterns. It achieved about 80% balanced accuracy, meaning it was very good at predicting absences without making too many false alarms.
6. The Fine-Tuning: How Much History Do We Need?
They also tested how far back the AI should look:
- Too short (5 days): The AI forgets the context.
- Too long (160 days): The AI gets confused by old, irrelevant history.
- The Sweet Spot: Looking back 40 to 80 days was the perfect window. It gave the AI enough history to see patterns (like "John gets sick every time he works a double shift") without getting bogged down in ancient history.
Summary of Findings
- Don't look at the rearview mirror: Predicting future absences based on past sequences is the only way to be truly proactive.
- The "Standard" settings fail: If you use the default settings for handling rare events in AI, you will fail to spot absences. You must adjust the math or use a self-correcting method.
- The Hybrid Model wins: Combining different AI techniques (LSTM-FCN) works best for this specific problem.
- The Magic Window: Looking back 40–80 days gives the best results.
- No Magic Wand: They had to use fake data because real data is private, but they proved their method works on the simulation, which is calibrated to real-world stats.
In short, this paper provides a blueprint for building a system that can look at an employee's recent attendance history and say, "Hey, based on the pattern, this person is likely to be absent next week," allowing managers to fix the problem before it happens.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.