Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6625617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:47:44+00:00 2026-05-25T21:47:44+00:00

Suppose I have the data as mentioned below. 11AM user1 Brush 11:05AM user1 Prep

  • 0

Suppose I have the data as mentioned below.

11AM user1 Brush

11:05AM user1 Prep Brakfast

11:10AM user1 eat Breakfast

11:15AM user1 Take bath

11:30AM user1 Leave for office

12PM user2 Brush

12:05PM user2 Prep Brakfast

12:10PM user2 eat Breakfast

12:15PM user2 Take bath

12:30PM user2 Leave for office

11AM user3 Take bath

11:05AM user3 Prep Brakfast

11:10AM user3 Brush

11:15AM user3 eat Breakfast

11:30AM user3 Leave for office

12PM user4 Take bath

12:05PM user4 Prep Brakfast

12:10PM user4 Brush

12:15PM user4 eat Breakfast

12:30PM user4 Leave for office

This data tell me about the daily routine of different people. From this data it seems user1 and user2 behave similarly (though there is a difference in time they perform the activity but they are following the same sequence). With the same reason, User3 and User4 behave similarly.
Now I have to group such users into different groups. In this example, group1- user1 and USer2 … followed by group2 including user3 and user4

How should I approach this kind of situation. I am trying to learn data mining and this is an example I thought of as a data mining problem. I am trying to find an approach for the solution, but I can not think of one. I believe this data has the pattern in it. but I am not able to think of the approach which can reveal it.
Also, I have to map this approach on the dataset I have, which is pretty huge but similar to this 🙂 The data is about logs stating occurrence of events at a time. And I want to find the groups representing similar sequence of events.

Any pointers would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:47:45+00:00Added an answer on May 25, 2026 at 9:47 pm

    It looks like clustering on top of associating mining, more precisely Apriori algorithm. Something like this:

    1. Mine all possible associations between actions, i.e. sequences Bush -> Prep Breakfast, Prep Breakfast -> Eat Breakfast, …, Bush -> Prep Breakfast -> Eat Breakfast, etc. Every pair, triplet, quadruple, etc. you can find in your data.
    2. Make separate attribute from each such sequence. For better performance add boost of 2 for pair attributes, 3 for triplets and so on.
    3. At this moment you must have an attribute vector with corresponding boost vector. You can calculate feature vector for each user: set 1 * boost at each position in the vector if this sequence exists in user actions and 0 otherwise). You will get vector representation of each user.
    4. On this vectors use clustering algorithm that fits your needs better. Each found class is the group you use.

    Example:

    Let’s mark all actions as letters:

    a – Brush
    b – Prep Breakfast
    c – East Breakfast
    d – Take Bath
    …

    Your attributes will look like

    a1: a->b
    a2: a->c
    a3: a->d
    …
    a10: b->a
    a11: b->c
    a12: b->d
    …
    a30: a->b->c->d
    a31: a->b->d->c
    …

    User feature vectors in this case will be:

    attributes   = a1, a2, a3, a4, ..., a10, a11, a12, ..., a30, a31, ...
    user1        =  1,  0,  0,  0, ...,   0,   1,   0, ...,   4,   0, ...
    user2        =  1,  0,  0,  0, ...,   0,   1,   0, ...,   4,   0, ...
    user3        =  0,  0,  0,  0, ...,   0,   0,   0, ...,   0,   0, ...
    

    To compare 2 users some distance measure is needed. The simplest one is cosine distance, that is just value of cosine between 2 feature vectors. If 2 users have exactly the same sequence of actions, their similarity will equal 1. If they have nothing common – their similarity will be 0.

    With distance measure use clustering algorithm (say, k-means) to make groups of users.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have any data stored in bytes. For example: 0110001100010101100101110101101 How can I
Suppose I have some per-class data: (AandB.h) class A { public: static Persister* getPersister();
Suppose we have the following table data: ID parent stage submitted 1 1 1
Suppose I have a class named Data . Another class annotates one of its
Suppose I have 500 rows of data, each with a paragraph of text (like
Suppose I have a text file with data separated by whitespace into columns. I
Suppose I have the following types of data: class Customer { String id; //
Suppose I have a class that processes some data: class SomeClass { public: void
Suppose that you have a big Data Entry Web Application Like Microsoft CRM ,
Suppose I have a dataframe like this one: df <- data.frame (id = c(a,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.