Sequence Data Mining is a type of Analysis which aims in extracting patterns sequences of Events. We can also see Sequence Data Mining as an Associations Discovery Analysis with a Temporal Element.
Sequence Data Mining has many potential applications (Web Page Analytics, Complaint Events, Business Processes) but here today we will show an application for Health. I believe that this type of Analysis will become even more important as wearable technology will be used even more and therefore more Data of this kind will be generated.
Consider the following hypothetical scenario :
His Doctor tries to identify what is going on and after the patient takes all necessary Blood work and finds no problems. After thorough evaluation the Doctor believes that his patient suffers from Chronic Fatigue Syndrome. Under the Doctor's supervision the patient will record his symptoms along with different supplements to understand more about his condition. Several events (e.g a Visit to the Gym, a stressful Event) will also be taken under consideration to see if any patterns emerge.
We immediately notice an interesting entry on the first output :
Medication1->Symptom2
and on the second output we see that this particular rule has a lift of 1.4 and 0.8 confidence.
However, as Data Scientists we should always double-check the extracted knowledge and must be aware of pitfalls. Let's see some examples (list not exhaustive) :
1) The algorithm does not account for time as it should : As an example, consider the following entries :
10/09/14,08:00,Medication1
10/09/14,08:05,Symptom2
We assume that Medication1 is taken by mouth and needs 60 minutes to be properly dissolved and that these entries occur frequently enough in that order in our data set. Even though the algorithm might show a statistically significant pattern , it is not logical to hypothesize that Medication1 could be related to Symptom2. The Analyst should first examine each of these entries to see which proportion of the records has a time difference of at least -say- or greater than 60 minutes.
Apart from the example shown above we must consider the opposite effect. Consider this entry :
10/09/14,08:00,Medication1
...
...
...
10/09/14,21:05,Symptom2
In other words : Is it possible that a Medication taken in the morning to generate a Symptom 12 hours later?
2) The algorithm is not able to account for the compounding effect of a Medication. For example, the patient might have low levels of Taurine and for this level to be replenished, an x amount of days of Taurine supplementation is needed. The algorithm cannot account for this possibility.
3) The patient should also input entries of "No Symptoms". It is not clear however when this should be done (e.g at the end of each day? assess every 6 hours and add 2 entries accordingly?)
However, this does not mean that a Sequence Mining algorithm should not be used under these circumstances. This technique can generate several potentially interesting hypotheses which Doctors and/or Researchers may wish to pursue further.


















