Answers.Body: <p>That depends on what type of network you want to use for your second network, instead of feeding the outputs of the first layer, it would be much better if you jointly train both the networks. But that depends on the architecture of the second network ('logic' network).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-02T16:08:01.350Z
Answers.LastActivityDate: 2018-07-02T21:02:21.280Z
Answers.LastEditDate: 2018-07-02T21:02:21.280Z
Answers.UserDisplayName: thecomplexitytheorist
Answers.Body: <p>The underlying abstraction (which is essentially what you'd be using the first network for) is that of reducing the state-space of the raw input via feature extraction/synthesis and/or dimensionality reduction.</p>
  
  <p>At present, there are few definite rules for doing this: practice is more a question of 'informed trial and error'. </p>
  
  <p>If you add some information to your question regarding what has been previously attempted in this area (e.g. on the 
  <a href="https://ai.stackexchange.com/questions/1490/what-are-the-benefits-of-the-vgdl-over-the-ale">ALE</a> platform), this it might be possible to offer some more specific advice.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-10T11:24:13.367Z
Answers.LastActivityDate: 2016-08-10T11:24:13.367Z
Answers.LastEditDate: 2017-04-13T12:53:10.013Z
Answers.UserDisplayName: NietzscheanAI
Body: <p>For example I would like to implement transparent AI in the RTS game which doesn't offer any AI API (like old games), and I'd like to use image recognition algorithm for detecting the objects which can talks to another algorithm which is responsible for the logic.</p>
  
  <p>Given I'd like to use two neural networks, what are the approaches to setup the communication between them? Is it just by exporting result findings of the first algorithm (e.g. using CNN) with list of features which were found on the screen, then use it as input for another network? Or it's more complex than that, or I need to have more than two networks?</p>
  
Tags: <neural-networks><convolutional-neural-networks><gaming>
Title: How to separate image recognition from logic?
UserDisplayName: kenorb
ThreadText: # How to separate image recognition from logic?
  
  (Asked by: username_0 on 2016-08-09)
  
  For example I would like to implement transparent AI in the RTS game which doesn't offer any AI API (like old games), and I'd like to use image recognition algorithm for detecting the objects which can talks to another algorithm which is responsible for the logic.
  
  Given I'd like to use two neural networks, what are the approaches to setup the communication between them? Is it just by exporting result findings of the first algorithm (e.g. using CNN) with list of features which were found on the screen, then use it as input for another network? Or it's more complex than that, or I need to have more than two networks?
  
  **Tags:** neural-networks, convolutional-neural-networks, gaming
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2016-08-10. Score: 4 | Accepted answer
  
  The underlying abstraction (which is essentially what you'd be using the first network for) is that of reducing the state-space of the raw input via feature extraction/synthesis and/or dimensionality reduction.
  
  At present, there are few definite rules for doing this: practice is more a question of 'informed trial and error'.
  
  If you add some information to your question regarding what has been previously attempted in this area (e.g. on the
  [ALE](https://ai.stackexchange.com/questions/1490/what-are-the-benefits-of-the-vgdl-over-the-ale) platform), this it might be possible to offer some more specific advice.
  
  
  ---
  
  ### Answer by username_1 on 2018-07-02. Score: 0
  
  That depends on what type of network you want to use for your second network, instead of feeding the outputs of the first layer, it would be much better if you jointly train both the networks. But that depends on the architecture of the second network ('logic' network).
  
  
  ---
  
  