mat-classification


Namemat-classification JSON
Version 0.1b0 PyPI version JSON
download
home_pagehttps://github.com/mat-analysis/mat-classification
SummaryMAT-classification: Analysis and Classification methods for Multiple Aspect Trajectory Data Mining
upload_time2024-04-12 17:36:36
maintainerNone
docs_urlNone
authorTarlis Tortelli Portela
requires_python>=3.7
licenseGPL Version 3 or superior (see LICENSE file)
keywords data-science machine-learning data-mining trajectory multiple-trajectory trajectory-classification classification
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # MAT-classification: Analysis and Classification methods for Multiple Aspect Trajectory Data Mining \[MAT-Tools Framework\]
---

\[[Publication](#)\] \[[citation.bib](citation.bib)\] \[[GitHub](https://github.com/mat-analysis/mat-classification)\] \[[PyPi](https://pypi.org/project/mat-classification/)\]


The present package offers a tool, to support the user in the task of classification of multiple aspect trajectories. It integrates into a unique framework for multiple aspects trajectories and in general for multidimensional sequence data mining methods.

Created on Dec, 2023
Copyright (C) 2023, License GPL Version 3 or superior (see LICENSE file)


### Installation

Install directly from PyPi repository, or, download from github. (python >= 3.7 required)

```bash
    pip3 install mat-classification
```

### Getting Started

On how to use this package, see [MAT-classification-Tutorial.ipynb](https://github.com/mat-analysis/mat-analysis/blob/main/MAT-classification-Tutorial.ipynb) (or the HTML [MAT-classification-Tutorial.html](https://github.com/mat-analysis/mat-classification/blob/main/MAT-classification-Tutorial.html))

### Available Classifiers (TODO update):

* **MLP (Movelet)**: Multilayer-Perceptron (MLP) with movelets features. The models were implemented using the Python language, with the keras, fully-connected hidden layer of 100 units, Dropout Layer with dropout rate of 0.5, learning rate of 10−3 and softmax activation function in the Output Layer. Adam Optimization is used to avoid the categorical cross entropy loss, with 200 of batch size, and a total of 200 epochs per training. \[[REFERENCE](https://doi.org/10.1007/s10618-020-00676-x)\]
* **RF (Movelet)**: Random Forest (RF) with movelets features, that consists of an ensemble of 300 decision trees. The models were implemented using the Python language, with the keras. \[[REFERENCE](https://doi.org/10.1007/s10618-020-00676-x)\]
* **SVN (Movelet)**: Support Vector Machine (SVM) with movelets features. The models were implemented using the Python language, with the keras, linear kernel and default structure. Other structure details are default settings. \[[REFERENCE](https://doi.org/10.1007/s10618-020-00676-x)\]
* **POI-S**: Frequency-based method to extract features of trajectory datasets (TF-IDF approach), the method runs one dimension at a time (or more if concatenated). The models were implemented using the Python language, with the keras. \[[REFERENCE](https://doi.org/10.1145/3341105.3374045)\]
* **MARC**: Uses word embeddings for trajectory classification. It encapsulates all trajectory dimensions: space, time and semantics, and uses them as input to a neural network classifier, and use the geoHash on the spatial dimension, combined with others. The models were implemented using the Python language, with the keras. \[[REFERENCE](https://doi.org/10.1080/13658816.2019.1707835)\]
* **TRF**: Random Forest for trajectory data (TRF). Find the optimal set of hyperparameters for each model, applying the grid-search technique: varying number of trees (ne), the maximum number of features to consider at every split (mf), the maximum number of levels in a tree (md), the minimum number of samples required to split a node (mss), the minimum number of samples required at each leaf node (msl), and finally, the method of selecting samples for training each tree (bs). \[[REFERENCE](http://dx.doi.org/10.5220/0010227906640671)\]
* **XGBost**: Find the optimal set of hyperparameters for each model, applying the grid-search technique:  number of estimators (ne), the maximum depth of a tree (md), the learning rate (lr), the gamma (gm), the fraction of observations to be randomly samples for each tree (ss), the sub sample ratio of columns when constructing each tree (cst), the regularization parameters (l1) and (l2). \[[REFERENCE](http://dx.doi.org/10.5220/0010227906640671)\]
* **BITULER**: Find the optimal set of hyperparameters for each model, applying the grid-search technique: keeps 64 as the batch size and 0.001 as the learning rate and vary the units (un) of the recurrent layer, the embedding size to each attribute (es) and the dropout (dp). \[[REFERENCE](http://dx.doi.org/10.5220/0010227906640671)\]
* **TULVAE**: Find the optimal set of hyperparameters for each model, applying the grid-search technique: keeps 64 as the batch size and 0.001 as the learning rate and vary the units (un) of the recurrent layer, the embedding size to each attribute (es), the dropout (dp), and latent variable (z). \[[REFERENCE](http://dx.doi.org/10.5220/0010227906640671)\]
* **DEEPEST**: DeepeST employs a Recurrent Neural Network (RNN), both LSTM and Bidirectional LSTM (BLSTM). Find the optimal set of hyperparameters for each model, applying the grid-search technique: keeps 64 as the batch size and 0.001 as the learning rate and vary the units (un) of the recurrent layer, the embedding size to each attribute (es) and the dropout (dp). \[[REFERENCE](http://dx.doi.org/10.5220/0010227906640671)\]

#### Available Scripts (TODO update):

By installing the package the following python scripts will be installed for use in system command line tools:

* `MAT-TC.py`: Script to run classifiers on trajectory datasets, to details type: `MAT-TC.py --help`;
* `MAT-MC.py`: Script to run **movelet-based** classifiers on trajectory datasets, to details type: `MAT-MC.py --help`;
* `POIS-TC.py`: Script to run POI-F/POI-S classifiers on the methods feature matrix, to details type: `POIS-TC.py --help`;
* `MARC.py`: Script to run MARC classifier on trajectory datasets, to details type: `MARC.py --help`.

One script for running the **POI-F/POI-S** method:

* `POIS.py`: Script to run POI-F/POI-S feature extraction methods (`poi`, `npoi`, and `wnpoi`), to details type: `POIS.py --help`.

### Citing

If you use `matclassification` please cite the following paper (this package is fragmented from `automatize` realease):

    Portela, Tarlis Tortelli; Bogorny, Vania; Bernasconi, Anna; Renso, Chiara. AutoMATise: Multiple Aspect Trajectory Data Mining Tool Library. 2022 23rd IEEE International Conference on Mobile Data Management (MDM), 2022, pp. 282-285, doi: 10.1109/MDM55031.2022.00060.

Bibtex:
```bash
@inproceedings{Portela2022automatise,
    title={AutoMATise: Multiple Aspect Trajectory Data Mining Tool Library},
    author={Portela, Tarlis Tortelli and Bogorny, Vania and Bernasconi, Anna and Renso, Chiara},
    booktitle = {2022 23rd IEEE International Conference on Mobile Data Management (MDM)},
    volume={},
    number={},
    address = {Online},
    year={2022},
    pages = {282--285},
    doi={10.1109/MDM55031.2022.00060}
}
```

### Collaborate with us

Any contribution is welcome. This is an active project and if you would like to include your code, feel free to fork the project, open an issue and contact us.

Feel free to contribute in any form, such as scientific publications referencing this package, teaching material and workshop videos.

### Related packages

This package is part of _MAT-Tools Framework_ for Multiple Aspect Trajectory Data Mining, check the guide project:

- **[mat-tools](https://github.com/mat-analysis/mat-tools)**: Reference guide for MAT-Tools Framework repositories

And others:



### Change Log

This is a package under construction, see [CHANGELOG.md](./CHANGELOG.md)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mat-analysis/mat-classification",
    "name": "mat-classification",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "Tarlis Tortelli Portela <tarlis@tarlis.com.br>",
    "keywords": "data-science, machine-learning, data-mining, trajectory, multiple-trajectory, trajectory-classification, classification",
    "author": "Tarlis Tortelli Portela",
    "author_email": "Tarlis Tortelli Portela <tarlis@tarlis.com.br>",
    "download_url": "https://files.pythonhosted.org/packages/af/10/a7ad46161e34af4f02e461d9353f2be625d0bb705150abc3572a7910eee5/mat_classification-0.1b0.tar.gz",
    "platform": null,
    "description": "# MAT-classification: Analysis and Classification methods for Multiple Aspect Trajectory Data Mining \\[MAT-Tools Framework\\]\n---\n\n\\[[Publication](#)\\] \\[[citation.bib](citation.bib)\\] \\[[GitHub](https://github.com/mat-analysis/mat-classification)\\] \\[[PyPi](https://pypi.org/project/mat-classification/)\\]\n\n\nThe present package offers a tool, to support the user in the task of classification of multiple aspect trajectories. It integrates into a unique framework for multiple aspects trajectories and in general for multidimensional sequence data mining methods.\n\nCreated on Dec, 2023\nCopyright (C) 2023, License GPL Version 3 or superior (see LICENSE file)\n\n\n### Installation\n\nInstall directly from PyPi repository, or, download from github. (python >= 3.7 required)\n\n```bash\n    pip3 install mat-classification\n```\n\n### Getting Started\n\nOn how to use this package, see [MAT-classification-Tutorial.ipynb](https://github.com/mat-analysis/mat-analysis/blob/main/MAT-classification-Tutorial.ipynb) (or the HTML [MAT-classification-Tutorial.html](https://github.com/mat-analysis/mat-classification/blob/main/MAT-classification-Tutorial.html))\n\n### Available Classifiers (TODO update):\n\n* **MLP (Movelet)**: Multilayer-Perceptron (MLP) with movelets features. The models were implemented using the Python language, with the keras, fully-connected hidden layer of 100 units, Dropout Layer with dropout rate of 0.5, learning rate of 10\u22123 and softmax activation function in the Output Layer. Adam Optimization is used to avoid the categorical cross entropy loss, with 200 of batch size, and a total of 200 epochs per training. \\[[REFERENCE](https://doi.org/10.1007/s10618-020-00676-x)\\]\n* **RF (Movelet)**: Random Forest (RF) with movelets features, that consists of an ensemble of 300 decision trees. The models were implemented using the Python language, with the keras. \\[[REFERENCE](https://doi.org/10.1007/s10618-020-00676-x)\\]\n* **SVN (Movelet)**: Support Vector Machine (SVM) with movelets features. The models were implemented using the Python language, with the keras, linear kernel and default structure. Other structure details are default settings. \\[[REFERENCE](https://doi.org/10.1007/s10618-020-00676-x)\\]\n* **POI-S**: Frequency-based method to extract features of trajectory datasets (TF-IDF approach), the method runs one dimension at a time (or more if concatenated). The models were implemented using the Python language, with the keras. \\[[REFERENCE](https://doi.org/10.1145/3341105.3374045)\\]\n* **MARC**: Uses word embeddings for trajectory classification. It encapsulates all trajectory dimensions: space, time and semantics, and uses them as input to a neural network classifier, and use the geoHash on the spatial dimension, combined with others. The models were implemented using the Python language, with the keras. \\[[REFERENCE](https://doi.org/10.1080/13658816.2019.1707835)\\]\n* **TRF**: Random Forest for trajectory data (TRF). Find the optimal set of hyperparameters for each model, applying the grid-search technique: varying number of trees (ne), the maximum number of features to consider at every split (mf), the maximum number of levels in a tree (md), the minimum number of samples required to split a node (mss), the minimum number of samples required at each leaf node (msl), and finally, the method of selecting samples for training each tree (bs). \\[[REFERENCE](http://dx.doi.org/10.5220/0010227906640671)\\]\n* **XGBost**: Find the optimal set of hyperparameters for each model, applying the grid-search technique:  number of estimators (ne), the maximum depth of a tree (md), the learning rate (lr), the gamma (gm), the fraction of observations to be randomly samples for each tree (ss), the sub sample ratio of columns when constructing each tree (cst), the regularization parameters (l1) and (l2). \\[[REFERENCE](http://dx.doi.org/10.5220/0010227906640671)\\]\n* **BITULER**: Find the optimal set of hyperparameters for each model, applying the grid-search technique: keeps 64 as the batch size and 0.001 as the learning rate and vary the units (un) of the recurrent layer, the embedding size to each attribute (es) and the dropout (dp). \\[[REFERENCE](http://dx.doi.org/10.5220/0010227906640671)\\]\n* **TULVAE**: Find the optimal set of hyperparameters for each model, applying the grid-search technique: keeps 64 as the batch size and 0.001 as the learning rate and vary the units (un) of the recurrent layer, the embedding size to each attribute (es), the dropout (dp), and latent variable (z). \\[[REFERENCE](http://dx.doi.org/10.5220/0010227906640671)\\]\n* **DEEPEST**: DeepeST employs a Recurrent Neural Network (RNN), both LSTM and Bidirectional LSTM (BLSTM). Find the optimal set of hyperparameters for each model, applying the grid-search technique: keeps 64 as the batch size and 0.001 as the learning rate and vary the units (un) of the recurrent layer, the embedding size to each attribute (es) and the dropout (dp). \\[[REFERENCE](http://dx.doi.org/10.5220/0010227906640671)\\]\n\n#### Available Scripts (TODO update):\n\nBy installing the package the following python scripts will be installed for use in system command line tools:\n\n* `MAT-TC.py`: Script to run classifiers on trajectory datasets, to details type: `MAT-TC.py --help`;\n* `MAT-MC.py`: Script to run **movelet-based** classifiers on trajectory datasets, to details type: `MAT-MC.py --help`;\n* `POIS-TC.py`: Script to run POI-F/POI-S classifiers on the methods feature matrix, to details type: `POIS-TC.py --help`;\n* `MARC.py`: Script to run MARC classifier on trajectory datasets, to details type: `MARC.py --help`.\n\nOne script for running the **POI-F/POI-S** method:\n\n* `POIS.py`: Script to run POI-F/POI-S feature extraction methods (`poi`, `npoi`, and `wnpoi`), to details type: `POIS.py --help`.\n\n### Citing\n\nIf you use `matclassification` please cite the following paper (this package is fragmented from `automatize` realease):\n\n    Portela, Tarlis Tortelli; Bogorny, Vania; Bernasconi, Anna; Renso, Chiara. AutoMATise: Multiple Aspect Trajectory Data Mining Tool Library. 2022 23rd IEEE International Conference on Mobile Data Management (MDM), 2022, pp. 282-285, doi: 10.1109/MDM55031.2022.00060.\n\nBibtex:\n```bash\n@inproceedings{Portela2022automatise,\n    title={AutoMATise: Multiple Aspect Trajectory Data Mining Tool Library},\n    author={Portela, Tarlis Tortelli and Bogorny, Vania and Bernasconi, Anna and Renso, Chiara},\n    booktitle = {2022 23rd IEEE International Conference on Mobile Data Management (MDM)},\n    volume={},\n    number={},\n    address = {Online},\n    year={2022},\n    pages = {282--285},\n    doi={10.1109/MDM55031.2022.00060}\n}\n```\n\n### Collaborate with us\n\nAny contribution is welcome. This is an active project and if you would like to include your code, feel free to fork the project, open an issue and contact us.\n\nFeel free to contribute in any form, such as scientific publications referencing this package, teaching material and workshop videos.\n\n### Related packages\n\nThis package is part of _MAT-Tools Framework_ for Multiple Aspect Trajectory Data Mining, check the guide project:\n\n- **[mat-tools](https://github.com/mat-analysis/mat-tools)**: Reference guide for MAT-Tools Framework repositories\n\nAnd others:\n\n\n\n### Change Log\n\nThis is a package under construction, see [CHANGELOG.md](./CHANGELOG.md)\n",
    "bugtrack_url": null,
    "license": "GPL Version 3 or superior (see LICENSE file)",
    "summary": "MAT-classification: Analysis and Classification methods for Multiple Aspect Trajectory Data Mining",
    "version": "0.1b0",
    "project_urls": {
        "Bug Tracker": "https://github.com/mat-analysis/mat-classification/issues",
        "Documentation": "https://github.com/mat-analysis/mat-classification/blob/main/README.md",
        "Download": "https://pypi.org/project/mat-classification/#files",
        "Homepage": "https://github.com/mat-analysis/mat-classification/",
        "Repository": "https://github.com/mat-analysis/mat-classification"
    },
    "split_keywords": [
        "data-science",
        " machine-learning",
        " data-mining",
        " trajectory",
        " multiple-trajectory",
        " trajectory-classification",
        " classification"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ca858e6a3f82a53054584b1e436240d08e7292f1c21aedf3af5b25cf8ef1f31e",
                "md5": "7f4a32e703fe0637efeabd801d2347cd",
                "sha256": "429467c2bf2e831278fe62fc7b2e3619e19a488276c6f60a59e2e1aac7ae3053"
            },
            "downloads": -1,
            "filename": "mat_classification-0.1b0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7f4a32e703fe0637efeabd801d2347cd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 175674,
            "upload_time": "2024-04-12T17:36:25",
            "upload_time_iso_8601": "2024-04-12T17:36:25.051951Z",
            "url": "https://files.pythonhosted.org/packages/ca/85/8e6a3f82a53054584b1e436240d08e7292f1c21aedf3af5b25cf8ef1f31e/mat_classification-0.1b0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "af10a7ad46161e34af4f02e461d9353f2be625d0bb705150abc3572a7910eee5",
                "md5": "8b027e29ec2e452fee8832a955c73f44",
                "sha256": "160b08f8e4b0bc14ad3e5fcc988dc7ecaa7e80f2e8fa11dfd73358e384447238"
            },
            "downloads": -1,
            "filename": "mat_classification-0.1b0.tar.gz",
            "has_sig": false,
            "md5_digest": "8b027e29ec2e452fee8832a955c73f44",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 30152274,
            "upload_time": "2024-04-12T17:36:36",
            "upload_time_iso_8601": "2024-04-12T17:36:36.020809Z",
            "url": "https://files.pythonhosted.org/packages/af/10/a7ad46161e34af4f02e461d9353f2be625d0bb705150abc3572a7910eee5/mat_classification-0.1b0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-12 17:36:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mat-analysis",
    "github_project": "mat-classification",
    "github_not_found": true,
    "lcname": "mat-classification"
}
        
Elapsed time: 0.23746s