Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

Connectionist Temporal Classification (CTC) in Keras with TensorFlow

luc_bartkowskiluc_bartkowski Member Posts: 46 Maven
edited November 2018 in Help

I want to recognize e.g. classify patterns in a time-series. Classification is dependent on the values in multiple timesteps. I tried therefore an LSTM implementation using the Keras extension but results were poor. I suspect the reason is the usage of the Windowing Operator that samples windows of a fixed length. Patterns in my dataset don't have a fixed length of timesteps, it's somewhat equivalent to speech recognition. My current training dataset has 1 to 16 timesteps per pattern/class, in average 3.8 timesteps. After studying the documents listed below I learned that Connectionist Temporal Classification (CTC) could bring me a suitable solution.

 

Questions:

  1. TensorFlow v1.8 offers back-office CTC APIs. My current TensorFlow that I use with Keras/RapidMiner is v1.0x but I could pip/conda to the new version. However, TF's CTC API's have to be implemented in Python. Is such implementation feasible in the Execute Python Operator together with the Keras Operator? Has anyone tried such before in RapidMiner? Is an example process available?
  2. An ensemble of a Hidden Markov Model (HMM) and an LSTM could provide a solution as described in the 1st document. However, I couldn't find HMM in RapidMiner's operators or RapidMiner's MarketPlace. The HTK package from MS/Cambridge University is delivered in C-code and has to be compiled. It needs also data in MFCC format. I prefer not to go this route. Does RapidMiner offer HMM operators in the MarketPlace? Is such HMM/LSTM ensemble feasible in RapidMiner?
  3. Would you advise any other model for my recognition/classification task?

Documents:

Supervised Sequence Labelling with Recurrent Neural Networks

Connectionist Temporal Classification: Labelling Unsegmented Sequence Data with Recurrent Neural Networks

Answers

  • hughesfleming68hughesfleming68 Member Posts: 323 Unicorn

    Just to answer question 2, I am using R for Hidden Markov Models within Rapidminer. There are several packages available with different characteristics. Most are straight forward to setup but I usually start with the DepmixS4 packaged.

     

    Alex

  • WTWT Member Posts: 5 Contributor II
    Hi @hughesfleming68 do you have an example you can share where you have DepmixS4 packaged within Rapidminer? I am new to Rapidminer and struggling to make this work on time series data thank you.
  • hughesfleming68hughesfleming68 Member Posts: 323 Unicorn
    edited May 2019
    Hi WT, do you have DepmixS4 working in R-Studio? Usually any issues tend to come from managing DataFrames. If this is a DepmixS4 problem then contact me by private mail.
Sign In or Register to comment.