A fractal approach for damage detection in concrete and masonry structures by acoustic emission technique