niarules

Numerical Association Rule Mining using Population-Based Nature-Inspired Algorithms

https://github.com/firefly-cpp/niarules

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 11 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org, acm.org, joss.theoj.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.4%) to scientific vocabulary

Keywords

association-rules metaheuristics optimization
Last synced: 4 months ago · JSON representation

Repository

Numerical Association Rule Mining using Population-Based Nature-Inspired Algorithms

Basic Info
  • Host: GitHub
  • Owner: firefly-cpp
  • License: other
  • Language: R
  • Default Branch: main
  • Homepage:
  • Size: 1.13 MB
Statistics
  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • Open Issues: 3
  • Releases: 1
Topics
association-rules metaheuristics optimization
Created almost 2 years ago · Last pushed 4 months ago
Metadata Files
Readme License

README.md

logo

niarules - Numerical Association Rule Mining using Population-Based Nature-Inspired Algorithms

R build status CRAN version CRAN downloads DOI

📋 About✨ Detailed insights📦 Installation🚀 Usage📄 Reference papers🔑 License

📋 About

niarules is an R framework designed for mining numerical association rules through the utilization of nature-inspired algorithms for optimization. Drawing inspiration from both the NiaARM Python package and NiaARM.jl package, this repository introduces the capability to perform numerical association rule mining in the R programming language.

The current version of niarules included in this framework offers seamless functionality for automatic dataset loading and preprocessing. It facilitates the exploration of numerical association rules through the application of nature-inspired algorithms, ultimately presenting a comprehensive output that includes identified association rules. Aligning with the principles of the original NiaARM implementation, the process of numerical association rule mining is conceptualized as an optimization problem, and the solution is achieved using population-based nature-inspired algorithms integrated within this framework. Besides the conventional numerical association rule mining, the current version also adds support for Segmented Interval Time Series Numerical Association Rule Mining as proposed in NiaARMTS.

✨ Detailed insights

The current version includes (but is not limited to) the following functions:

  • loading datasets in CSV format 📂
  • preprocessing of data 🔄
  • searching for association rules 🔍
  • providing an output of mined association rules 📝
  • generating statistics about mined association rules 📊
  • providing the implementation of several state-of-the-art nature-inspired algorithms for optimization 🧬
  • supporting the time series numerical association rule mining

📦 Installation

Install CRAN release version:

R install.packages("niarules")

🚀 Usage

Basic run example (conventional datasets)

```R library("niarules")

Define the dataset file

dataset <- "Abalone.csv"

Read dataset

data <- read_dataset(dataset)

Extract feature information

features <- extractfeatureinfo(data)

Determine problem dimension

dim <- problemdimension(features, istime_series = FALSE)

Run Differential Evolution Algorithm

de <- differentialevolution( d = dim, np = 30, f = 0.5, cr = 0.9, nfes = 1000, features = features, data = data, istime_series = FALSE )

Print identified association rules

printassociationrules(de$arules, istimeseries = FALSE)

Save association rules to a CSV file

writeassociationrulestocsv(de$arules, "Rules.csv", istimeseries = FALSE)

```

Basic run example (time series datasets)

```R library("niarules")

Define the dataset file (Ensure you have a time series dataset in CSV format)

dataset <- "ts2.csv"

Read dataset

data <- readdataset(dataset, timestampcol = "timestamp")

Extract feature information

features <- extractfeatureinfo(data)

Determine problem dimension

dim <- problemdimension(features, istime_series = TRUE)

Run Differential Evolution Algorithm for time series data

de <- differentialevolution( d = dim, np = 30, f = 0.5, cr = 0.9, nfes = 1000, features = features, data = data, istime_series = TRUE )

Print identified association rules

printassociationrules(de$arules, istimeseries = TRUE, timestamps = data[["timestamp"]])

Save association rules to a CSV file

writeassociationrulestocsv(de$arules, "Rules.csv", istimeseries = TRUE, timestamps = data[["timestamp"]]) ```

Basic run example (coral plot rendering)

```R library(niarules)

dataraw <- niarules::readdataset("inst/extdata/Abalone.csv") features <- niarules::extractfeatureinfo(dataraw) d <- niarules::problemdimension(features, istimeseries = FALSE)

de <- niarules::differentialevolution( d = d, np = 30, f = 0.5, cr = 0.9, nfes = 1000, features = features, data = dataraw, istimeseries = FALSE )

parse the output data

parsed = parse_rules(de$arules)

use the parsed data to build the plotting data

layout <- buildcoralplots(parsed)

render the data with rgl

rendercoralrgl( layout$nodes, layout$edges, layout$gridsize, gridcolor = "grey80", legend = FALSE, labelmode = "none", edgewidthmetric = "support", edgewidthrange = c(1, 5), edgewidthtransform = "linear", edgecolormetric = "support", edgegradient = c("#2166AC","#67A9CF","#D1E5F0","#FDDBC7","#EF8A62","#B2182B"), edgecolortransform = "log", nodecolorby = "type", node_gradient = c("#204060","#5B8BB5","#D7E6F2","#F5D0C6","#E57373","#991C1C") ) ```

Example Image

coral-plot-example.png

📚 Reference Papers

Ideas are based on the following research papers:

[1] Iztok Fister Jr., Dušan Fister, Iztok Fister, Vili Podgorelec, Sancho Salcedo-Sanz. Time series numerical association rule mining variants in smart agriculture. Journal of Ambient Intelligence and Humanized Computing (2023): 1-14.

[2] Iztok Fister Jr., Iztok Fister, Sancho Salcedo-Sanz. Time Series Numerical Association Rule Mining for assisting Smart Agriculture. In: International Conference on Electrical, Computer and Energy Technologies (ICECET). IEEE, 2022.

[3] I. Fister Jr., A. Iglesias, A. Gálvez, J. Del Ser, E. Osaba, I Fister. Differential evolution for association rule mining using categorical and numerical attributes In: Intelligent data engineering and automated learning - IDEAL 2018, pp. 79-88, 2018.

[4] I. Fister Jr., V. Podgorelec, I. Fister. Improved Nature-Inspired Algorithms for Numeric Association Rule Mining. In: Vasant P., Zelinka I., Weber GW. (eds) Intelligent Computing and Optimization. ICO 2020. Advances in Intelligent Systems and Computing, vol 1324. Springer, Cham.

[5] I. Fister Jr., I. Fister A brief overview of swarm intelligence-based algorithms for numerical association rule mining. arXiv preprint arXiv:2010.15524 (2020).

[6] Fister, I. et al. (2020). Visualization of Numerical Association Rules by Hill Slopes. In: Analide, C., Novais, P., Camacho, D., Yin, H. (eds) Intelligent Data Engineering and Automated Learning – IDEAL 2020. IDEAL 2020. Lecture Notes in Computer Science(), vol 12489. Springer, Cham. https://doi.org/10.1007/978-3-030-62362-3_10

[7] I. Fister, S. Deb, I. Fister, Population-based metaheuristics for Association Rule Text Mining, In: Proceedings of the 2020 4th International Conference on Intelligent Systems, Metaheuristics & Swarm Intelligence, New York, NY, USA, mar. 2020, pp. 19–23. doi: 10.1145/3396474.3396493.

[8] I. Fister, I. Fister Jr., D. Novak and D. Verber, Data squashing as preprocessing in association rule mining, 2022 IEEE Symposium Series on Computational Intelligence (SSCI), Singapore, Singapore, 2022, pp. 1720-1725, doi: 10.1109/SSCI51031.2022.10022240.

[9] Stupan, Ž., & Fister Jr., I. (2022). NiaARM: A minimalistic framework for Numerical Association Rule Mining. Journal of Open Source Software, 7(77), 4448.

See also

[1] NiaARM.jl: Numerical Association Rule Mining in Julia

[2] NiaARM: Numerical Association Rule Mining in Python

[3] arm-preprocessing: Implementation of several preprocessing techniques for Association Rule Mining (ARM)

[4] NiaARMTS: Nature-Inspired Algorithms for Time Series Numerical Association Rule Mining

🔑 License

This package is distributed under the MIT License. This license can be found online at http://www.opensource.org/licenses/MIT.

Disclaimer

This framework is provided as-is, and there are no guarantees that it fits your purposes or that it is bug-free. Use it at your own risk!

Owner

  • Name: Iztok Fister Jr.
  • Login: firefly-cpp
  • Kind: user
  • Location: Slovenia

GitHub Events

Total
  • Create event: 4
  • Issues event: 1
  • Release event: 1
  • Watch event: 2
  • Delete event: 2
  • Member event: 1
  • Push event: 51
  • Pull request event: 3
  • Pull request review event: 2
  • Fork event: 1
Last Year
  • Create event: 4
  • Issues event: 1
  • Release event: 1
  • Watch event: 2
  • Delete event: 2
  • Member event: 1
  • Push event: 51
  • Pull request event: 3
  • Pull request review event: 2
  • Fork event: 1

Issues and Pull Requests

Last synced: 4 months ago

All Time
  • Total issues: 2
  • Total pull requests: 3
  • Average time to close issues: N/A
  • Average time to close pull requests: about 2 hours
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 1.0
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 3
  • Average time to close issues: N/A
  • Average time to close pull requests: about 2 hours
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 1.0
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • firefly-cpp (3)
Pull Request Authors
  • lahovniktadej (4)
  • JanHendrikPluemer (2)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 90 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 1
cran.r-project.org: niarules

Numerical Association Rule Mining using Population-Based Nature-Inspired Algorithms

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 90 Last month
Rankings
Dependent packages count: 28.1%
Dependent repos count: 36.1%
Average: 49.7%
Downloads: 84.9%
Maintainers (1)
Last synced: 4 months ago

Dependencies

DESCRIPTION cran