It's quite simple really. All you have to do is pay attention to the actions that just happened in these recent episodes. I wont save you the time by posting the scenes so go look for your self...
As we can see when the SA appeared Madara's confident is still the same, he doesn't even flinch to see so many people. Come on is a huge shinobi army appearing out of nowhere uncensored right....
Then they start their attack by totally immobilizing the juubi.(Yes, keep reading...)
But they did it in such a fashion that it looked liked it was practice. But in the manga it says that he had barely known of the different abilities of the 5 countries shinobis. Yet he managed too pull off a very well performed and very quite to the point to make it seem like nothing. But to be honest that was very impressive to me. Shikaku is so freaking smart, well Kishi is since is his story, he managed to think of a plan so freaking uber fast, and Madara even acknowledged this in the proccess. If you go back and read you can tell that Madara is quite surprise how well pulled off that was. He knows that it takes skills to be able to combine such an attack and effective in such a way. How can so many shinobis do that, using different attacks and combining there ability in such a way to pull this off and to communicate with them and say what was to be done, there were no commands being yelled about the plan and how to attack ect... This villages supposely don't get along remember how can they do this then. Its complicated to do it out of the blues, maybe if thy practice this a bit yeah.. They have to talk about who has what abilities and how they can maneuver them and think out of a plan to stop the juubi ect....
Madara saw this and the supreme uber intelligent being that he is as Kishi apparently makes him appeared. Started to analyze how DaFaq are they pulling this off in such a 1337 way. OMG HAXoor... no jk... but carry on..
So basically at this point the juubi is immobilized why? simple, they can feel how strong the juubi is. So he knows that this attack can hold him down at the juubis current level and when i say current level is because as we know now the juubi is hella stronger now. But Shikaku did not have this 411. So basically he was blind about this new power.
We know Madara was calm the whole time just analyzing the situation with his arm cross with no worries in the world but these mere flies in his way...by flies is in their power comparison to the current knowledge of Madara so far.
Points that Madara took to mind and figuere out about about Shikaku well not him by name but existence at the moment and his contributing to the battle.
1. They are attacking the Juubi's eyes not theres. (They fake to be attacking them so they dont suspect their target is the Juubi.Why? Simple to attack you have to have the element of surprise.
2. Madara then sees that they are being blinded by sight, and blocked from sensing their chakra either, all performed smoothly combining 3 different villages attacks. At this point Madara knows whats up already. He knows theres someone behind all this. He knows how huge this is. But yet he knows this is nothing to him. XD
3. and in the proccess of the cement jutsu...Madara knows that this is big too since they execute this flawless, with shinobis from differrent countries that they dont even get along thats why theres always war in the nations and is the whole point of this story, WAR!. Madara wants a world of peace no wars. Naruto does too Obito, Pein carry on carry on, theres hundreds to be name well 20 plus come to mind but who doesn't want this in the real world they just exploit this issue in the story, so when this point is solved no more Naruto. XD... yeah i explained to much and get sidetrack just bared with me..
4. When they attack once the Juubi is down. He sees that taijutsu users are gonna attack him and that Obito is gonna get attack by attacks that are long effect. I pressume about the long effect i cant really tell what attacks are made but Madara being in the story, can get a clear picture of the attacks

.
So by now Madara knows whats up.
When Naruto attacks with RasenShiri. He then says im gonna attack them since they are the juubis mind. (sticking to the stragedy.)
Madara says attacking the enemies mind is the basics.... he thinks this because he sees what their strategy is. Then he applies it. He is gonna attack the plan.. but Where is it. it must be near by in some village...
pooommm then he starts sending beast bombs at towns an destroying them. He does not know where he is so he destroys all around.
Sorry im getting lazy now... making it short heheheheheh. XD
Shikaku then knew what he was doing and knew he was dealing with someone at his level but has more power...
So then he tells them that Madara is smart he knew about everything as it flowed... and blah blah..
sorry for the lazy attempt of and ending