> For the complete documentation index, see [llms.txt](https://apphp.gitbook.io/artificial-intelligence-with-php/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apphp.gitbook.io/artificial-intelligence-with-php/machine-learning/ml-algorithms/unsupervised-learning.md).

# Unsupervised Learning

Unsupervised learning works with unlabeled data, meaning the algorithm must find patterns or structures in the data without any explicit guidance on what the output should be. This approach is typically used for clustering, anomaly detection, and association tasks.

<div align="left"><figure><img src="https://3534497751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHBhflVf91jxK4ccRhKqv%2Fuploads%2Fgit-blob-0d7c39829d686a351b06cc51a2165429bdb54d51%2Fml-unsupervised-learining-min.png?alt=media" alt="" width="375"><figcaption><p>Unsupervised Learning</p></figcaption></figure></div>

### Unsupervised Learning

Algorithms that work with unlabeled data to identify structures and hidden patterns.

* TASK (Clustering):
  * k-Means
  * Hierarchical Clustering
  * DBSCAN (Density-Based Spatial Clustering of Applications with Noise)
  * Gaussian Mixture Models (GMM)
* TASK (Dimensionality Reduction):
  * Principal Component Analysis (PCA)
  * Linear Discriminant Analysis (LDA)
  * t-SNE (t-distributed Stochastic Neighbor Embedding)
  * Autoencoders
* TASK (Search and Optimization)
  * **Heuristic Methods**

    Methods that use approximations to find solutions for complex problems.

    • Genetic Algorithms

    • Ant Colony Optimization

    • Particle Swarm Optimization
