The ability of two different machine learning approaches to map non-linear problems from experimental data is evaluated under controlled experiments. A well-known machine learning algorithm (Artificial Neural Network) is compared against a new computing paradigm (Hierarchical Temporal Memory) under a controlled scenario. The chosen scenario is the detection of impacts in a cantilever beam under vibration instrumented with fiber Bragg gratings. The main characteristics of both of the machine learning approaches are analyzed while varying environmental parameters such as the number of sensing points and their location. From the achieved results some clues can be extracted regarding dealing with noisy or partial data using different machine learning approaches