Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pattern Recognition Algorithms in Node.js or PHP?

Tags:

I would like to begin experimenting with algorithms that recognize patterns in data. I deal with many types of sequences (image pixels, text input, user movement), and it would be fun to make use of Pattern Recognition to try to pull meaningful data out of different datasets. Like the majority of the web, my data is mostly text or integer-key based.

Are their any classes that give the basic framework for checking/creating patterns for PHP or Nodejs?

like image 481
Xeoncross Avatar asked May 16 '12 16:05

Xeoncross


People also ask

In which field pattern recognition is widely used?

Fingerprint identification Fingerprint recognition technology is a dominant technology in the biometric market. A number of recognition methods have been used to perform fingerprint matching out of which pattern recognition approaches are widely used.

Which technique are used in pattern recognition?

On the basis of survey, pattern recognition techniques can be categorized into six parts. These include Statistical Techniques, Structural Techniques, Template Matching, Neural Network Approach, Fuzzy Model and Hybrid Models.

Which machine learning technique is used for pattern recognition?

The trained and tested model developed for recognizing patterns using machine learning algorithms is called a classifier. This classifier is used to make predictions for unseen data/objects.

What is pattern recognition algorithm?

Pattern recognition is a data analysis method that uses machine learning algorithms to automatically recognize patterns and regularities in data. This data can be anything from text and images to sounds or other definable qualities. Pattern recognition systems can recognize familiar patterns quickly and accurately.


2 Answers

I've never found a single library that encapsulates different analysis patterns. You may find specific solutions easily though.

N-Gram analysis for example can be done with this PHP extension: http://pecl.php.net/package/TextCat

There are several bayes implementations as well, even tutorials.

I've never found Kohonen-nets or self-organizing maps implemented in PHP, but multi-layer perceptrons are trivial. IA can do pattern analysis fairily well.

There are projects that bind PHP to OpenCV (a library for realtime image/video analysis). Currently, the only implementation I know is for detecting human faces in pictures. The source is open https://github.com/infusion/PHP-Facedetect, so it should be easy to bind other OpenCV goodness (OpenCV can do a lot of stuff with images).

PHP itself is interpreted, most heavy solutions for pattern analysis won't perform well under this limitation. This is why most solutions for this in PHP are written in C as an extension.

like image 145
alganet Avatar answered Sep 19 '22 01:09

alganet


For machine learning you might consider using a language that is more 'at home' as it'd be easier to express the model..

For example the source code for the new 'Machine Learning for Hackers' book, written in R can be found in Github https://github.com/johnmyleswhite/ML_for_Hackers

And then, there's also the Google Prediction API, which is good for experimenting https://developers.google.com/prediction/docs/developer-guide

like image 27
250R Avatar answered Sep 19 '22 01:09

250R